Переглянути джерело

:art: made next phase button more visible

Felix Bytow 10 місяців тому
батько
коміт
9ae3e19ab0
2 змінених файлів з 27 додано та 8 видалено
  1. 2 2
      assets/scenes/demon.tscn
  2. 25 6
      screens/game.tscn

+ 2 - 2
assets/scenes/demon.tscn

@@ -1,7 +1,7 @@
 [gd_scene load_steps=11 format=3 uid="uid://gq6u7iesbchb"]
 
-[ext_resource type="Script" path="res://assets/scenes/demon.gd" id="1_7dbuk"]
 [ext_resource type="Texture2D" uid="uid://dl8yyrdb8o001" path="res://assets/textures/survivors/purple/demon_idle.png" id="1_efcu4"]
+[ext_resource type="Script" path="res://assets/scenes/demon.gd" id="1_q17l5"]
 [ext_resource type="Texture2D" uid="uid://bf3ayj1blr6bk" path="res://assets/textures/survivors/purple/demon_shoot_1.png" id="2_yw5ej"]
 [ext_resource type="Texture2D" uid="uid://c3kee723fcojn" path="res://assets/textures/survivors/purple/demon_shoot_2.png" id="3_nvdqw"]
 [ext_resource type="Texture2D" uid="uid://gg4oygilqclm" path="res://assets/textures/survivors/purple/demon_shoot_3.png" id="4_g3y15"]
@@ -47,7 +47,7 @@ z_as_relative = false
 scale = Vector2(0.17, 0.17)
 collision_layer = 128
 collision_mask = 64
-script = ExtResource("1_7dbuk")
+script = ExtResource("1_q17l5")
 
 [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
 position = Vector2(0, -117.647)

+ 25 - 6
screens/game.tscn

@@ -1,4 +1,4 @@
-[gd_scene load_steps=13 format=3 uid="uid://c483fkssc36s"]
+[gd_scene load_steps=14 format=3 uid="uid://c483fkssc36s"]
 
 [ext_resource type="Script" path="res://screens/game.gd" id="1_4dd0q"]
 [ext_resource type="Texture2D" uid="uid://ceelbowk0q0rl" path="res://assets/textures/room/Light_Overlay.png" id="2_px5xi"]
@@ -14,6 +14,17 @@
 blend_mode = 1
 light_mode = 1
 
+[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_lc6c4"]
+content_margin_left = 3.0
+content_margin_top = 3.0
+content_margin_right = 3.0
+content_margin_bottom = 3.0
+bg_color = Color(0.23697, 0.708244, 0.318218, 1)
+border_width_left = 1
+border_width_top = 1
+border_width_right = 1
+border_width_bottom = 1
+
 [sub_resource type="LabelSettings" id="LabelSettings_hn3kd"]
 font_size = 23
 outline_size = 3
@@ -56,8 +67,10 @@ layout_mode = 1
 anchors_preset = 2
 anchor_top = 1.0
 anchor_bottom = 1.0
-offset_top = -46.0
-offset_right = 224.0
+offset_left = 10.0
+offset_top = -52.0
+offset_right = 234.0
+offset_bottom = -6.0
 grow_vertical = 0
 text = "WAVE: 9999"
 label_settings = ExtResource("5_wbjut")
@@ -71,8 +84,9 @@ anchor_top = 1.0
 anchor_right = 0.5
 anchor_bottom = 1.0
 offset_left = -123.5
-offset_top = -46.0
+offset_top = -52.0
 offset_right = 123.5
+offset_bottom = -6.0
 grow_horizontal = 2
 grow_vertical = 0
 text = "PHASE: SETUP"
@@ -87,11 +101,16 @@ anchor_left = 1.0
 anchor_top = 1.0
 anchor_right = 1.0
 anchor_bottom = 1.0
-offset_left = -103.0
-offset_top = -31.0
+offset_left = -218.0
+offset_top = -58.0
+offset_right = -10.0
+offset_bottom = -5.0
 grow_horizontal = 0
 grow_vertical = 0
 theme_override_font_sizes/font_size = 34
+theme_override_styles/normal = SubResource("StyleBoxFlat_lc6c4")
+theme_override_styles/hover = SubResource("StyleBoxFlat_lc6c4")
+theme_override_styles/focus = SubResource("StyleBoxFlat_lc6c4")
 text = "NEXT PHASE"
 
 [node name="LeftEnemyLabel" type="Label" parent="UI/Root"]