diff --git a/fonts/LICENSE.OFL b/fonts/LICENSE.OFL new file mode 100644 index 0000000..307d1c3 --- /dev/null +++ b/fonts/LICENSE.OFL @@ -0,0 +1,93 @@ +Copyright (c) 2014,2015 by (URW)++ Design & Development + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/fonts/URWGothic-Book.otf b/fonts/URWGothic-Book.otf new file mode 100644 index 0000000..8d2216f Binary files /dev/null and b/fonts/URWGothic-Book.otf differ diff --git a/fonts/URWGothic-Book.otf.import b/fonts/URWGothic-Book.otf.import new file mode 100644 index 0000000..921b90e --- /dev/null +++ b/fonts/URWGothic-Book.otf.import @@ -0,0 +1,33 @@ +[remap] + +importer="font_data_dynamic" +type="FontFile" +uid="uid://rpftn4kwpcpr" +path="res://.godot/imported/URWGothic-Book.otf-88cfa9b7bc32a08748748420b6ec488c.fontdata" + +[deps] + +source_file="res://fonts/URWGothic-Book.otf" +dest_files=["res://.godot/imported/URWGothic-Book.otf-88cfa9b7bc32a08748748420b6ec488c.fontdata"] + +[params] + +Rendering=null +antialiasing=1 +generate_mipmaps=false +multichannel_signed_distance_field=false +msdf_pixel_range=8 +msdf_size=48 +allow_system_fallback=true +force_autohinter=false +hinting=1 +subpixel_positioning=1 +oversampling=0.0 +Fallbacks=null +fallbacks=[] +Compress=null +compress=true +preload=[] +language_support={} +script_support={} +opentype_features={} diff --git a/main_theme.tres b/main_theme.tres new file mode 100644 index 0000000..0df0d89 --- /dev/null +++ b/main_theme.tres @@ -0,0 +1,7 @@ +[gd_resource type="Theme" load_steps=2 format=3 uid="uid://dmb8bcdghdjd"] + +[ext_resource type="FontFile" uid="uid://rpftn4kwpcpr" path="res://fonts/URWGothic-Book.otf" id="1_jim6v"] + +[resource] +default_font = ExtResource("1_jim6v") +default_font_size = 20 diff --git a/scenes/Base/base_menu.tscn b/scenes/Base/base_menu.tscn index 53e3a8a..5320e5e 100644 --- a/scenes/Base/base_menu.tscn +++ b/scenes/Base/base_menu.tscn @@ -66,6 +66,26 @@ patch_margin_top = 2 patch_margin_right = 2 patch_margin_bottom = 2 +[node name="RichTextLabel" type="RichTextLabel" parent="MenuBackground/DialogueBackground"] +layout_mode = 1 +anchors_preset = -1 +anchor_left = 0.001 +anchor_top = 0.003 +anchor_right = 0.999 +anchor_bottom = 0.997 +offset_left = 0.127 +offset_top = 0.034 +offset_right = -0.127075 +offset_bottom = -0.0340271 +grow_horizontal = 2 +grow_vertical = 2 +size_flags_horizontal = 4 +size_flags_vertical = 8 +focus_mode = 2 +bbcode_enabled = true +scroll_following = true +selection_enabled = true + [node name="ActionsBackground" type="NinePatchRect" parent="MenuBackground"] layout_mode = 0 offset_left = 325.0 diff --git a/scenes/Ships/player_ship.tscn b/scenes/Ships/player_ship.tscn index 5194917..079e791 100644 --- a/scenes/Ships/player_ship.tscn +++ b/scenes/Ships/player_ship.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=14 format=3 uid="uid://dok3i8u5t1ka4"] +[gd_scene load_steps=15 format=3 uid="uid://dok3i8u5t1ka4"] [ext_resource type="Script" path="res://scripts/Ship/player_ship.gd" id="2_oqdd7"] [ext_resource type="Script" path="res://scripts/Ship/player_input_controller.gd" id="3_0e84a"] @@ -8,6 +8,7 @@ [ext_resource type="Script" path="res://scripts/Ship/player_camera.gd" id="5_rclap"] [ext_resource type="Script" path="res://scripts/Ship/weapons.gd" id="6_f6fm2"] [ext_resource type="PackedScene" uid="uid://bf10g066l8grd" path="res://scenes/Ships/Modules/Weapons/laser.tscn" id="7_0ss0b"] +[ext_resource type="Theme" uid="uid://dmb8bcdghdjd" path="res://main_theme.tres" id="8_8lpnq"] [sub_resource type="GDScript" id="GDScript_ry4sc"] resource_name = "money_counter" @@ -118,6 +119,7 @@ offset_left = 7.0 offset_top = 611.0 offset_right = 92.0 offset_bottom = 634.0 +theme = ExtResource("8_8lpnq") text = "Money: %d" script = SubResource("GDScript_ry4sc") @@ -126,6 +128,7 @@ offset_left = 7.0 offset_top = 688.0 offset_right = 137.0 offset_bottom = 711.0 +theme = ExtResource("8_8lpnq") text = "Velocity: %d px/s" script = SubResource("GDScript_vko7a") @@ -134,6 +137,7 @@ offset_left = 7.0 offset_top = 663.0 offset_right = 168.0 offset_bottom = 686.0 +theme = ExtResource("8_8lpnq") text = "Health: {0} / {1} units" script = SubResource("GDScript_uoaip") @@ -142,6 +146,7 @@ offset_left = 8.0 offset_top = 638.0 offset_right = 164.0 offset_bottom = 661.0 +theme = ExtResource("8_8lpnq") text = "Shield: {0} / {1} units" script = SubResource("GDScript_q1sx2") @@ -150,6 +155,7 @@ offset_left = 1060.0 offset_top = 638.0 offset_right = 1273.0 offset_bottom = 713.0 +theme = ExtResource("8_8lpnq") text = "Ammunition: Laser Energy: {0} / {1} Rockets: {2} / {3}" diff --git a/scenes/Star System/star_system_template.tscn b/scenes/Star System/star_system_template.tscn index b462f95..0407720 100644 --- a/scenes/Star System/star_system_template.tscn +++ b/scenes/Star System/star_system_template.tscn @@ -1,9 +1,10 @@ -[gd_scene load_steps=10 format=3 uid="uid://bsnrcw64qr2hr"] +[gd_scene load_steps=11 format=3 uid="uid://bsnrcw64qr2hr"] [ext_resource type="Script" path="res://scripts/Star System/star_system.gd" id="1_xx8w2"] [ext_resource type="PackedScene" uid="uid://dpggye27ln436" path="res://scenes/Star System/Required Scenes/star_generator.tscn" id="2_iqrn0"] [ext_resource type="Script" path="res://scripts/Star System/projectile_container.gd" id="3_h5cm3"] [ext_resource type="Material" uid="uid://bawhivm5cr2w" path="res://shaders/materials/nebula_shader.tres" id="4_o0ld7"] +[ext_resource type="Theme" uid="uid://dmb8bcdghdjd" path="res://main_theme.tres" id="5_ag247"] [ext_resource type="Script" path="res://scripts/Star System/nebula.gd" id="5_la84n"] [ext_resource type="PackedScene" uid="uid://c7is7y341f6wa" path="res://scenes/Star System/Required Scenes/pause_controller.tscn" id="6_61vq5"] [ext_resource type="Script" path="res://scripts/Star System/faction.gd" id="7_wm3vi"] @@ -58,6 +59,7 @@ z_as_relative = false offset_top = 6.0 offset_right = 1280.0 offset_bottom = 29.0 +theme = ExtResource("5_ag247") text = "GammaCosmicRays version Ifre 1.0" horizontal_alignment = 1 script = SubResource("GDScript_4yoh5")