Some style fixes

This commit is contained in:
2025-12-24 17:57:23 +03:00
parent 3921eaf2db
commit 5384fa3caa
6 changed files with 16 additions and 13 deletions
@@ -3,13 +3,7 @@ extends AbstractShip
var is_on_screen : bool = false var is_on_screen : bool = false
var weapon_type : AbstractWeapon.Type:
set(value):
pass
get():
var type := AbstractWeapon.Type.NONE
for weapon in _weapons: type = weapon.type
return type
var enemy_data : EnemyData: var enemy_data : EnemyData:
set = _set_enemy_data set = _set_enemy_data
@@ -24,6 +18,10 @@ func _physics_process(delta: float) -> void:
shoot() shoot()
func weapon_type() -> AbstractWeapon.Type:
return AbstractWeapon.Type.NONE if _weapons.is_empty() else _weapons[0].type
func _on_visible_on_screen_notifier_2d_screen_entered() -> void: func _on_visible_on_screen_notifier_2d_screen_entered() -> void:
is_on_screen = true is_on_screen = true
+2 -3
View File
@@ -1,8 +1,7 @@
[gd_scene load_steps=6 format=3 uid="uid://c3q3g2647qc27"] [gd_scene load_steps=5 format=3 uid="uid://c3q3g2647qc27"]
[ext_resource type="Script" uid="uid://dclkpithyykju" path="res://game/menu/common/credits.gd" id="1_wp78b"] [ext_resource type="Script" uid="uid://dclkpithyykju" path="res://game/menu/common/credits.gd" id="1_wp78b"]
[ext_resource type="Theme" uid="uid://dtnd3tqllufey" path="res://styles/menu_button.tres" id="2_nidem"] [ext_resource type="Theme" uid="uid://dtnd3tqllufey" path="res://styles/menu_button.tres" id="2_nidem"]
[ext_resource type="Theme" uid="uid://cigren10ijb75" path="res://styles/label.tres" id="3_x2hwc"]
[sub_resource type="InputEventAction" id="InputEventAction_wp78b"] [sub_resource type="InputEventAction" id="InputEventAction_wp78b"]
action = &"ui_cancel" action = &"ui_cancel"
@@ -36,7 +35,7 @@ offset_top = 360.0
offset_right = 640.0 offset_right = 640.0
offset_bottom = 760.0 offset_bottom = 760.0
grow_horizontal = 2 grow_horizontal = 2
theme = ExtResource("3_x2hwc") theme = ExtResource("2_nidem")
text = "PROGRAMMING text = "PROGRAMMING
+1
View File
@@ -26,6 +26,7 @@ layout_mode = 2
[node name="Label" type="Label" parent="CenterContainer/VBoxContainer"] [node name="Label" type="Label" parent="CenterContainer/VBoxContainer"]
z_index = 100 z_index = 100
layout_mode = 2 layout_mode = 2
theme = ExtResource("2_uh3ar")
text = "Game Over" text = "Game Over"
horizontal_alignment = 1 horizontal_alignment = 1
+1
View File
@@ -26,6 +26,7 @@ layout_mode = 2
[node name="Label" type="Label" parent="CenterContainer/VBoxContainer"] [node name="Label" type="Label" parent="CenterContainer/VBoxContainer"]
z_index = 100 z_index = 100
layout_mode = 2 layout_mode = 2
theme = ExtResource("2_wb4d8")
text = "Victory!" text = "Victory!"
horizontal_alignment = 1 horizontal_alignment = 1
@@ -1,6 +1,7 @@
[gd_scene load_steps=2 format=3 uid="uid://cv122gw47cnun"] [gd_scene load_steps=3 format=3 uid="uid://cv122gw47cnun"]
[ext_resource type="Script" uid="uid://6isk1tmc2ik1" path="res://game/menu/ingame/weapon_selection_screen.gd" id="1_hl2ql"] [ext_resource type="Script" uid="uid://6isk1tmc2ik1" path="res://game/menu/ingame/weapon_selection_screen.gd" id="1_hl2ql"]
[ext_resource type="Theme" uid="uid://dtnd3tqllufey" path="res://styles/menu_button.tres" id="2_mi7cn"]
[node name="WeaponSelectionScreen" type="Control"] [node name="WeaponSelectionScreen" type="Control"]
layout_mode = 3 layout_mode = 3
@@ -28,6 +29,7 @@ alignment = 1
layout_mode = 2 layout_mode = 2
size_flags_horizontal = 4 size_flags_horizontal = 4
size_flags_vertical = 0 size_flags_vertical = 0
theme = ExtResource("2_mi7cn")
text = "Select your first weapon" text = "Select your first weapon"
[node name="WeaponSelectors" type="HBoxContainer" parent="MarginContainer/VBoxContainer"] [node name="WeaponSelectors" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
+4 -2
View File
@@ -35,8 +35,9 @@ columns = 2
[node name="SeedLabel" type="Label" parent="GridContainer"] [node name="SeedLabel" type="Label" parent="GridContainer"]
unique_name_in_owner = true unique_name_in_owner = true
custom_minimum_size = Vector2(200, 0) custom_minimum_size = Vector2(280, 0)
layout_mode = 2 layout_mode = 2
theme = ExtResource("2_s4s14")
horizontal_alignment = 1 horizontal_alignment = 1
[node name="UseRandomButton" type="Button" parent="GridContainer"] [node name="UseRandomButton" type="Button" parent="GridContainer"]
@@ -48,9 +49,10 @@ text = "Use random seed"
[node name="SeedEdit" type="LineEdit" parent="GridContainer"] [node name="SeedEdit" type="LineEdit" parent="GridContainer"]
unique_name_in_owner = true unique_name_in_owner = true
custom_minimum_size = Vector2(200, 0) custom_minimum_size = Vector2(280, 0)
layout_mode = 2 layout_mode = 2
mouse_filter = 2 mouse_filter = 2
theme = ExtResource("2_s4s14")
placeholder_text = "Enter seed" placeholder_text = "Enter seed"
alignment = 1 alignment = 1
max_length = 16 max_length = 16