new abnormal special WIP
This commit is contained in:
@@ -8,9 +8,9 @@ extends Control
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
#Resets to initial state
|
||||
reset()
|
||||
|
||||
|
||||
#Reveals the game over screen
|
||||
func reveal():
|
||||
|
||||
|
||||
+1
-1
@@ -19,6 +19,6 @@ func _ready() -> void:
|
||||
)
|
||||
|
||||
#Sets up save_slot array
|
||||
for i in range(1, Globals.save_slot_count + 1): #Goes from 1 to 4
|
||||
for i in range(Globals.save_slot_count + 1): #Goes from 0 to 4
|
||||
var slot_path = "MarginContainer/VBoxContainer/LoadSlot" + str(i)
|
||||
load_slot[i] = get_node(slot_path)
|
||||
|
||||
@@ -33,9 +33,10 @@ func _ready() -> void:
|
||||
submenu.main_menu.pressed.connect(self._on_main_menu_pressed)
|
||||
submenu.quit.pressed.connect(func(): get_tree().quit())
|
||||
|
||||
for i in range(1, Globals.save_slot_count + 1):
|
||||
for i in range(1, Globals.save_slot_count + 1): #From 1 to 4, excludes the autosaveslot
|
||||
save.save_slot[i].pressed.connect(self._on_save_slot_pressed.bind(i))
|
||||
load.load_slot[i].pressed.connect(self._on_load_slot_pressed.bind(i))
|
||||
load.load_slot[0].pressed.connect(self._on_load_slot_pressed.bind(0)) #Autosaveslot can be loaded but not saved upon
|
||||
|
||||
|
||||
#Emits save_slot signal
|
||||
|
||||
+1
-1
@@ -15,6 +15,6 @@ func _ready() -> void:
|
||||
back.pressed.connect(func(): self.hide())
|
||||
|
||||
#Sets up save_slot array
|
||||
for i in range(1, Globals.save_slot_count + 1): #Goes from 1 to 4
|
||||
for i in range(Globals.save_slot_count + 1): #Goes from 0 to 4
|
||||
var slot_path = "MarginContainer/VBoxContainer/SaveSlot" + str(i)
|
||||
save_slot[i] = get_node(slot_path)
|
||||
|
||||
+49
-8
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=32 format=3 uid="uid://dy40jygog8t3k"]
|
||||
[gd_scene load_steps=33 format=3 uid="uid://dy40jygog8t3k"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c0q67t6m1i4dl" path="res://Scenes/UI/ui.gd" id="1_mg12k"]
|
||||
[ext_resource type="FontFile" uid="uid://dv8ppra5tgn1t" path="res://Art/Fonts/PixelatedEleganceRegular-ovyAA.ttf" id="2_vb7na"]
|
||||
@@ -76,6 +76,9 @@ border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_fevae"]
|
||||
border_width_top = 2
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_h6tq4"]
|
||||
bg_color = Color(0.39215687, 0.39215687, 0.39215687, 1)
|
||||
border_width_left = 4
|
||||
@@ -376,18 +379,36 @@ layout_mode = 2
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/normal_font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/normal_font_size = 30
|
||||
theme_override_font_sizes/normal_font_size = 35
|
||||
bbcode_enabled = true
|
||||
text = "
|
||||
[center]SAVE GAME[/center]"
|
||||
|
||||
[node name="AutoSaveSlot" type="Button" parent="PauseMenu/Save/MarginContainer/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(0, 200)
|
||||
[node name="SeparationLine" type="PanelContainer" parent="PauseMenu/Save/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_fevae")
|
||||
|
||||
[node name="AutoSaveLabel" type="RichTextLabel" parent="PauseMenu/Save/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/normal_font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/normal_font_size = 27
|
||||
bbcode_enabled = true
|
||||
text = "
|
||||
[center]AUTOSAVE[/center]"
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="SaveSlot0" type="Button" parent="PauseMenu/Save/MarginContainer/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(0, 75)
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/font_size = 27
|
||||
text = "EMPTY"
|
||||
|
||||
[node name="SeparationLine2" type="PanelContainer" parent="PauseMenu/Save/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_fevae")
|
||||
|
||||
[node name="SaveSlot1" type="Button" parent="PauseMenu/Save/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
@@ -457,23 +478,42 @@ theme_override_constants/margin_bottom = 0
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="PauseMenu/Load/MarginContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 4
|
||||
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="PauseMenu/Load/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/normal_font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/normal_font_size = 30
|
||||
theme_override_font_sizes/normal_font_size = 35
|
||||
bbcode_enabled = true
|
||||
text = "
|
||||
[center]LOAD GAME[/center]"
|
||||
[center]SAVE GAME[/center]"
|
||||
|
||||
[node name="AutoSaveSlot" type="Button" parent="PauseMenu/Load/MarginContainer/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(0, 200)
|
||||
[node name="SeparationLine" type="PanelContainer" parent="PauseMenu/Load/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_fevae")
|
||||
|
||||
[node name="AutoSaveLabel" type="RichTextLabel" parent="PauseMenu/Load/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/normal_font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/normal_font_size = 27
|
||||
bbcode_enabled = true
|
||||
text = "
|
||||
[center]AUTOSAVE[/center]"
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="LoadSlot0" type="Button" parent="PauseMenu/Load/MarginContainer/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(0, 75)
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/font_size = 27
|
||||
text = "EMPTY"
|
||||
|
||||
[node name="SeparationLine2" type="PanelContainer" parent="PauseMenu/Load/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_fevae")
|
||||
|
||||
[node name="LoadSlot1" type="Button" parent="PauseMenu/Load/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
@@ -512,6 +552,7 @@ theme_override_font_sizes/font_size = 20
|
||||
text = "BACK"
|
||||
|
||||
[node name="Settings" type="PanelContainer" parent="PauseMenu" node_paths=PackedStringArray("text_slider", "auto_slider", "text_counter", "auto_counter", "autoplay", "auto_mask", "display_button", "resolution_button")]
|
||||
visible = false
|
||||
z_index = 1
|
||||
custom_minimum_size = Vector2(1600, 600)
|
||||
layout_mode = 1
|
||||
|
||||
Reference in New Issue
Block a user