diff options
-rw-r--r-- | scenes/leaderboard.tscn | 374 | ||||
-rw-r--r-- | scenes/mainmenu.tscn | 3 | ||||
-rw-r--r-- | scenes/optionsmenu.tscn | 32 | ||||
-rw-r--r-- | scripts/global_variables.gd | 14 | ||||
-rw-r--r-- | scripts/leaderboard.gd | 66 | ||||
-rw-r--r-- | scripts/mainmenu.gd | 3 | ||||
-rw-r--r-- | scripts/optionsmenu.gd | 8 | ||||
-rw-r--r-- | scripts/pausemenu.gd | 13 | ||||
-rw-r--r-- | theme_data/interface_theme.tres | 51 |
9 files changed, 527 insertions, 37 deletions
diff --git a/scenes/leaderboard.tscn b/scenes/leaderboard.tscn new file mode 100644 index 0000000..e71a790 --- /dev/null +++ b/scenes/leaderboard.tscn @@ -0,0 +1,374 @@ +[gd_scene load_steps=7 format=2] + +[ext_resource path="res://theme_data/interface_theme.tres" type="Theme" id=1] +[ext_resource path="res://scripts/leaderboard.gd" type="Script" id=2] +[ext_resource path="res://textures/retry.png" type="Texture" id=3] +[ext_resource path="res://textures/quit_hover.png" type="Texture" id=4] +[ext_resource path="res://textures/retry_hover.png" type="Texture" id=5] +[ext_resource path="res://textures/quit.png" type="Texture" id=6] + +[node name="Leaderboard" type="Control"] +anchor_right = 1.0 +anchor_bottom = 1.0 +theme = ExtResource( 1 ) +script = ExtResource( 2 ) + +[node name="Panel" type="Panel" parent="."] +anchor_right = 1.0 +anchor_bottom = 1.0 + +[node name="GridContainer" type="GridContainer" parent="."] +anchor_top = 0.5 +anchor_bottom = 0.5 +margin_left = 5.0 +margin_top = -54.0 +margin_right = 125.0 +margin_bottom = 162.0 +rect_scale = Vector2( 0.5, 0.5 ) +columns = 2 + +[node name="NamePanel1" type="PanelContainer" parent="GridContainer"] +margin_right = 90.0 +margin_bottom = 18.0 +rect_min_size = Vector2( 90, 0 ) + +[node name="Name" type="Label" parent="GridContainer/NamePanel1"] +margin_left = 5.0 +margin_right = 85.0 +margin_bottom = 16.0 +custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) +text = "Name" + +[node name="ScorePanel1" type="PanelContainer" parent="GridContainer"] +margin_left = 94.0 +margin_right = 120.0 +margin_bottom = 18.0 + +[node name="Score" type="Label" parent="GridContainer/ScorePanel1"] +margin_left = 5.0 +margin_right = 21.0 +margin_bottom = 16.0 +size_flags_horizontal = 6 +custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) +text = "00" + +[node name="NamePanel2" type="PanelContainer" parent="GridContainer"] +margin_top = 22.0 +margin_right = 90.0 +margin_bottom = 40.0 +rect_min_size = Vector2( 90, 0 ) + +[node name="Name" type="Label" parent="GridContainer/NamePanel2"] +margin_left = 5.0 +margin_right = 85.0 +margin_bottom = 16.0 +custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) +text = "Name" + +[node name="ScorePanel2" type="PanelContainer" parent="GridContainer"] +margin_left = 94.0 +margin_top = 22.0 +margin_right = 120.0 +margin_bottom = 40.0 + +[node name="Score" type="Label" parent="GridContainer/ScorePanel2"] +margin_left = 5.0 +margin_right = 21.0 +margin_bottom = 16.0 +size_flags_horizontal = 6 +custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) +text = "00" + +[node name="NamePanel3" type="PanelContainer" parent="GridContainer"] +margin_top = 44.0 +margin_right = 90.0 +margin_bottom = 62.0 +rect_min_size = Vector2( 90, 0 ) + +[node name="Name" type="Label" parent="GridContainer/NamePanel3"] +margin_left = 5.0 +margin_right = 85.0 +margin_bottom = 16.0 +custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) +text = "Name" + +[node name="ScorePanel3" type="PanelContainer" parent="GridContainer"] +margin_left = 94.0 +margin_top = 44.0 +margin_right = 120.0 +margin_bottom = 62.0 + +[node name="Score" type="Label" parent="GridContainer/ScorePanel3"] +margin_left = 5.0 +margin_right = 21.0 +margin_bottom = 16.0 +size_flags_horizontal = 6 +custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) +text = "00" + +[node name="NamePanel4" type="PanelContainer" parent="GridContainer"] +margin_top = 66.0 +margin_right = 90.0 +margin_bottom = 84.0 +rect_min_size = Vector2( 90, 0 ) + +[node name="Name" type="Label" parent="GridContainer/NamePanel4"] +margin_left = 5.0 +margin_right = 85.0 +margin_bottom = 16.0 +custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) +text = "Name" + +[node name="ScorePanel4" type="PanelContainer" parent="GridContainer"] +margin_left = 94.0 +margin_top = 66.0 +margin_right = 120.0 +margin_bottom = 84.0 + +[node name="Score" type="Label" parent="GridContainer/ScorePanel4"] +margin_left = 5.0 +margin_right = 21.0 +margin_bottom = 16.0 +size_flags_horizontal = 6 +custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) +text = "00" + +[node name="NamePanel5" type="PanelContainer" parent="GridContainer"] +margin_top = 88.0 +margin_right = 90.0 +margin_bottom = 106.0 +rect_min_size = Vector2( 90, 0 ) + +[node name="Name" type="Label" parent="GridContainer/NamePanel5"] +margin_left = 5.0 +margin_right = 85.0 +margin_bottom = 16.0 +custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) +text = "Name" + +[node name="ScorePanel5" type="PanelContainer" parent="GridContainer"] +margin_left = 94.0 +margin_top = 88.0 +margin_right = 120.0 +margin_bottom = 106.0 + +[node name="Score" type="Label" parent="GridContainer/ScorePanel5"] +margin_left = 5.0 +margin_right = 21.0 +margin_bottom = 16.0 +size_flags_horizontal = 6 +custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) +text = "00" + +[node name="NamePanel6" type="PanelContainer" parent="GridContainer"] +margin_top = 110.0 +margin_right = 90.0 +margin_bottom = 128.0 +rect_min_size = Vector2( 90, 0 ) + +[node name="Name" type="Label" parent="GridContainer/NamePanel6"] +margin_left = 5.0 +margin_right = 85.0 +margin_bottom = 16.0 +custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) +text = "Name" + +[node name="ScorePanel6" type="PanelContainer" parent="GridContainer"] +margin_left = 94.0 +margin_top = 110.0 +margin_right = 120.0 +margin_bottom = 128.0 + +[node name="Score" type="Label" parent="GridContainer/ScorePanel6"] +margin_left = 5.0 +margin_right = 21.0 +margin_bottom = 16.0 +size_flags_horizontal = 6 +custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) +text = "00" + +[node name="NamePanel7" type="PanelContainer" parent="GridContainer"] +margin_top = 132.0 +margin_right = 90.0 +margin_bottom = 150.0 +rect_min_size = Vector2( 90, 0 ) + +[node name="Name" type="Label" parent="GridContainer/NamePanel7"] +margin_left = 5.0 +margin_right = 85.0 +margin_bottom = 16.0 +custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) +text = "Name" + +[node name="ScorePanel7" type="PanelContainer" parent="GridContainer"] +margin_left = 94.0 +margin_top = 132.0 +margin_right = 120.0 +margin_bottom = 150.0 + +[node name="Score" type="Label" parent="GridContainer/ScorePanel7"] +margin_left = 5.0 +margin_right = 21.0 +margin_bottom = 16.0 +size_flags_horizontal = 6 +custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) +text = "00" + +[node name="NamePanel8" type="PanelContainer" parent="GridContainer"] +margin_top = 154.0 +margin_right = 90.0 +margin_bottom = 172.0 +rect_min_size = Vector2( 90, 0 ) + +[node name="Name" type="Label" parent="GridContainer/NamePanel8"] +margin_left = 5.0 +margin_right = 85.0 +margin_bottom = 16.0 +custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) +text = "Name" + +[node name="ScorePanel8" type="PanelContainer" parent="GridContainer"] +margin_left = 94.0 +margin_top = 154.0 +margin_right = 120.0 +margin_bottom = 172.0 + +[node name="Score" type="Label" parent="GridContainer/ScorePanel8"] +margin_left = 5.0 +margin_right = 21.0 +margin_bottom = 16.0 +size_flags_horizontal = 6 +custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) +text = "00" + +[node name="NamePanel9" type="PanelContainer" parent="GridContainer"] +margin_top = 176.0 +margin_right = 90.0 +margin_bottom = 194.0 +rect_min_size = Vector2( 90, 0 ) + +[node name="Name" type="Label" parent="GridContainer/NamePanel9"] +margin_left = 5.0 +margin_right = 85.0 +margin_bottom = 16.0 +custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) +text = "Name" + +[node name="ScorePanel9" type="PanelContainer" parent="GridContainer"] +margin_left = 94.0 +margin_top = 176.0 +margin_right = 120.0 +margin_bottom = 194.0 + +[node name="Score" type="Label" parent="GridContainer/ScorePanel9"] +margin_left = 5.0 +margin_right = 21.0 +margin_bottom = 16.0 +size_flags_horizontal = 6 +custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) +text = "00" + +[node name="NamePanel10" type="PanelContainer" parent="GridContainer"] +margin_top = 198.0 +margin_right = 90.0 +margin_bottom = 216.0 +rect_min_size = Vector2( 90, 0 ) + +[node name="Name" type="Label" parent="GridContainer/NamePanel10"] +margin_left = 5.0 +margin_right = 85.0 +margin_bottom = 16.0 +custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) +text = "Name" + +[node name="ScorePanel10" type="PanelContainer" parent="GridContainer"] +margin_left = 94.0 +margin_top = 198.0 +margin_right = 120.0 +margin_bottom = 216.0 + +[node name="Score" type="Label" parent="GridContainer/ScorePanel10"] +margin_left = 5.0 +margin_right = 21.0 +margin_bottom = 16.0 +size_flags_horizontal = 6 +custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) +text = "00" + +[node name="Control" type="Control" parent="."] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_left = -107.0 +margin_top = -60.0 +margin_right = 107.0 +margin_bottom = 60.0 + +[node name="Label" type="Label" parent="Control"] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_left = -13.0 +margin_top = -54.0 +margin_right = 75.0 +margin_bottom = -19.0 +text = "Your Score: +00" +align = 1 + +[node name="HBoxContainer" type="HBoxContainer" parent="Control"] +anchor_left = 1.0 +anchor_top = 0.5 +anchor_right = 1.0 +anchor_bottom = 0.5 +margin_left = -40.0 +margin_top = 40.0 +margin_right = -4.0 +margin_bottom = 56.0 + +[node name="RestartButton" type="TextureButton" parent="Control/HBoxContainer"] +margin_right = 16.0 +margin_bottom = 16.0 +focus_mode = 0 +size_flags_horizontal = 10 +enabled_focus_mode = 0 +texture_normal = ExtResource( 3 ) +texture_hover = ExtResource( 5 ) + +[node name="QuitButton" type="TextureButton" parent="Control/HBoxContainer"] +margin_left = 20.0 +margin_right = 36.0 +margin_bottom = 16.0 +focus_mode = 0 +size_flags_horizontal = 10 +enabled_focus_mode = 0 +texture_normal = ExtResource( 6 ) +texture_hover = ExtResource( 4 ) + +[node name="LineEdit" type="LineEdit" parent="Control"] +margin_left = 100.0 +margin_top = 101.0 +margin_right = 185.0 +margin_bottom = 119.0 +rect_scale = Vector2( 0.8, 0.8 ) +align = 1 +max_length = 10 +context_menu_enabled = false +shortcut_keys_enabled = false +middle_mouse_paste_enabled = false +placeholder_text = "ENTER NAME" + +[node name="Button" type="Button" parent="Control"] +margin_left = 170.0 +margin_top = 101.0 +margin_right = 220.0 +margin_bottom = 119.0 +rect_scale = Vector2( 0.8, 0.8 ) +text = "Submit" + +[connection signal="pressed" from="Control/HBoxContainer/RestartButton" to="." method="_on_RestartButton_pressed"] +[connection signal="pressed" from="Control/HBoxContainer/QuitButton" to="." method="_on_QuitButton_pressed"] +[connection signal="text_entered" from="Control/LineEdit" to="." method="_on_LineEdit_text_entered"] +[connection signal="pressed" from="Control/Button" to="." method="_on_Button_pressed"] diff --git a/scenes/mainmenu.tscn b/scenes/mainmenu.tscn index a5f11aa..49fed43 100644 --- a/scenes/mainmenu.tscn +++ b/scenes/mainmenu.tscn @@ -53,7 +53,6 @@ text = "Start" margin_top = 22.0 margin_right = 100.0 margin_bottom = 40.0 -disabled = true text = "Leaderboard" [node name="HelpButton" type="Button" parent="Control/VBoxContainer"] @@ -84,7 +83,7 @@ text = "Quit" [node name="AnnouncerAudio" type="AudioStreamPlayer" parent="."] stream = ExtResource( 2 ) -volume_db = -20.0 +volume_db = -15.0 autoplay = true [connection signal="pressed" from="Control/VBoxContainer/StartButton" to="." method="_on_StartButton_pressed"] diff --git a/scenes/optionsmenu.tscn b/scenes/optionsmenu.tscn index 76968d7..c9970f6 100644 --- a/scenes/optionsmenu.tscn +++ b/scenes/optionsmenu.tscn @@ -22,26 +22,26 @@ anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 -margin_left = -154.0 +margin_left = -164.0 margin_top = -49.0 -margin_right = 154.0 +margin_right = 164.0 margin_bottom = 49.0 rect_scale = Vector2( 0.5, 0.5 ) -rect_pivot_offset = Vector2( 154, 49 ) +rect_pivot_offset = Vector2( 164, 49 ) [node name="GridContainer" type="GridContainer" parent="Control/VBoxContainer"] -margin_right = 308.0 +margin_right = 328.0 margin_bottom = 76.0 columns = 2 [node name="FullscreenLabel" type="Label" parent="Control/VBoxContainer/GridContainer"] -margin_right = 104.0 +margin_right = 124.0 margin_bottom = 16.0 text = "Fullscreen" [node name="FullscreenCheckButton" type="CheckButton" parent="Control/VBoxContainer/GridContainer"] -margin_left = 276.0 -margin_right = 308.0 +margin_left = 296.0 +margin_right = 328.0 margin_bottom = 16.0 size_flags_horizontal = 10 @@ -53,9 +53,9 @@ size_flags_horizontal = 2 text = "Master Volume" [node name="VolumeMasterContainer" type="HBoxContainer" parent="Control/VBoxContainer/GridContainer"] -margin_left = 108.0 +margin_left = 128.0 margin_top = 20.0 -margin_right = 308.0 +margin_right = 328.0 margin_bottom = 36.0 rect_min_size = Vector2( 200, 0 ) @@ -73,14 +73,14 @@ text = "50%" [node name="VolumeMusicLabel" type="Label" parent="Control/VBoxContainer/GridContainer"] margin_top = 40.0 -margin_right = 104.0 +margin_right = 124.0 margin_bottom = 56.0 text = "Music Volume" [node name="VolumeMusicContainer" type="HBoxContainer" parent="Control/VBoxContainer/GridContainer"] -margin_left = 108.0 +margin_left = 128.0 margin_top = 40.0 -margin_right = 308.0 +margin_right = 328.0 margin_bottom = 56.0 [node name="VolumeMusicSlider" type="HSlider" parent="Control/VBoxContainer/GridContainer/VolumeMusicContainer"] @@ -97,14 +97,14 @@ text = "50%" [node name="VolumeSFXLabel" type="Label" parent="Control/VBoxContainer/GridContainer"] margin_top = 60.0 -margin_right = 104.0 +margin_right = 124.0 margin_bottom = 76.0 text = "SFX Volume" [node name="VolumeSFXContainer" type="HBoxContainer" parent="Control/VBoxContainer/GridContainer"] -margin_left = 108.0 +margin_left = 128.0 margin_top = 60.0 -margin_right = 308.0 +margin_right = 328.0 margin_bottom = 76.0 [node name="VolumeSFXSlider" type="HSlider" parent="Control/VBoxContainer/GridContainer/VolumeSFXContainer"] @@ -121,7 +121,7 @@ text = "50%" [node name="ReturnButton" type="Button" parent="Control/VBoxContainer"] margin_top = 80.0 -margin_right = 308.0 +margin_right = 328.0 margin_bottom = 98.0 text = "Return" diff --git a/scripts/global_variables.gd b/scripts/global_variables.gd index 4d01ff5..3205209 100644 --- a/scripts/global_variables.gd +++ b/scripts/global_variables.gd @@ -3,6 +3,20 @@ extends Node var startup : bool var score = 0 var timer_zero = false +var player_name : String + +var leaderboard = { + 0 : ["Logan", 45], + 1 : ["Finley", 40], + 2 : ["Kieran", 35], + 3 : ["Ben", 30], + 4 : ["Lucas", 25], + 5 : ["Rhys", 20], + 6 : ["Justin", 15], + 7 : ["Tucker", 10], + 8 : ["Chayston", 5], + 9 : ["Owen", 4] +} # Audio Settings var volume_master = 0 diff --git a/scripts/leaderboard.gd b/scripts/leaderboard.gd new file mode 100644 index 0000000..0373e44 --- /dev/null +++ b/scripts/leaderboard.gd @@ -0,0 +1,66 @@ +extends Control + +var viewing : bool + +func _ready(): + if get_parent().name == "Menu": + viewing = true + $Control/HBoxContainer/RestartButton.visible = false + $Control/Label.visible = false + $Control/LineEdit.visible = false + $Control/Button.visible = false + else: + $Control/HBoxContainer.visible = false + $Control/LineEdit.grab_focus() + if !global_variables.player_name.empty(): + $Control/LineEdit.text = global_variables.player_name + $Control/LineEdit.select_all() + $Control/Label.text = "Your score:\n" + str(global_variables.score) + refresh_menu() + +func refresh_menu(): + for i in range(10): + var label_name = "GridContainer/NamePanel" + str(i + 1) + "/Name" + var label_score = "GridContainer/ScorePanel" + str(i + 1) + "/Score" + get_node(label_name).text = global_variables.leaderboard[i][0] + get_node(label_score).text = str(global_variables.leaderboard[i][1]) + +func _on_LineEdit_text_entered(new_text): + if !new_text.empty(): + $Control/LineEdit.release_focus() + $Control/LineEdit.focus_mode = FOCUS_NONE + $Control/LineEdit.editable = false + $Control/Button.visible = false + $Control/HBoxContainer.visible = true + global_variables.player_name = new_text + update_leaderboard() + refresh_menu() + + +func update_leaderboard(): + for i in range(10): + if global_variables.score >= global_variables.leaderboard[i][1]: + for x in range(global_variables.leaderboard.size() - 2, i - 1, -1): + global_variables.leaderboard[x+1][0] = global_variables.leaderboard[x][0] + global_variables.leaderboard[x+1][1] = global_variables.leaderboard[x][1] + global_variables.leaderboard[i][0] = global_variables.player_name + global_variables.leaderboard[i][1] = global_variables.score + break + +func _on_QuitButton_pressed(): + if viewing: + queue_free() + else: + # warning-ignore:return_value_discarded + get_tree().change_scene("res://scenes/mainmenu.tscn") + get_tree().paused = false + global_variables.reset_variables() + +func _on_RestartButton_pressed(): + # warning-ignore:return_value_discarded + get_tree().reload_current_scene() + get_tree().paused = false + global_variables.reset_variables() + +func _on_Button_pressed(): + _on_LineEdit_text_entered($Control/LineEdit.text) diff --git a/scripts/mainmenu.gd b/scripts/mainmenu.gd index 258760f..c317d22 100644 --- a/scripts/mainmenu.gd +++ b/scripts/mainmenu.gd @@ -7,10 +7,11 @@ func _ready(): $"/root/Audio/AudioStreamPlayer".play() func _on_StartButton_pressed(): + # warning-ignore:return_value_discarded get_tree().change_scene("res://scenes/level.tscn") func _on_LeaderboardButton_pressed(): - pass + add_child(load("res://scenes/leaderboard.tscn").instance()) func _on_HelpButton_pressed(): pass diff --git a/scripts/optionsmenu.gd b/scripts/optionsmenu.gd index 5ed17d8..5376e21 100644 --- a/scripts/optionsmenu.gd +++ b/scripts/optionsmenu.gd @@ -12,9 +12,9 @@ onready var SFXSlider = $Control/VBoxContainer/GridContainer/VolumeSFXContainer/ func _ready(): # When scene is instanced, load the settings from singleton - update_menu(global_variables.volume_master, MasterValue, MasterSlider) - update_menu(global_variables.volume_music, MusicValue, MusicSlider) - update_menu(global_variables.volume_sfx, SFXValue, SFXSlider) + refresh_menu(global_variables.volume_master, MasterValue, MasterSlider) + refresh_menu(global_variables.volume_music, MusicValue, MusicSlider) + refresh_menu(global_variables.volume_sfx, SFXValue, SFXSlider) $Control/VBoxContainer/GridContainer/FullscreenCheckButton.set_pressed_no_signal(OS.window_fullscreen) func _input(event): @@ -49,7 +49,7 @@ func update_audio(value, bus, slider, enabled_var, volume_var, valuelabel): AudioServer.set_bus_mute(bus, false) global_variables.set(enabled_var, false) -func update_menu(value, valuelabel, slider): +func refresh_menu(value, valuelabel, slider): # Converts stored range values back into a percentage value var percentage = ((float(value) - min_vol) / (max_vol - min_vol) ) * 100 valuelabel.text = str(percentage) + "%" diff --git a/scripts/pausemenu.gd b/scripts/pausemenu.gd index d31bee8..bc0d577 100644 --- a/scripts/pausemenu.gd +++ b/scripts/pausemenu.gd @@ -1,13 +1,14 @@ extends Control func _input(event): - if !is_instance_valid(get_node_or_null("OptionsMenu")) && event.is_action_pressed("escape"): + if event.is_action_pressed("escape") && !is_instance_valid(get_node_or_null("OptionsMenu")) && !is_instance_valid(get_node_or_null("Leaderboard")): var pause_toggle = !get_tree().paused get_tree().paused = pause_toggle visible = pause_toggle rename_hover_panel("PAUSED") func _on_RestartButton_pressed(): + # warning-ignore:return_value_discarded get_tree().reload_current_scene() get_tree().paused = false global_variables.reset_variables() @@ -20,9 +21,13 @@ func _on_HelpButton_pressed(): pass func _on_QuitButton_pressed(): - get_tree().change_scene("res://scenes/mainmenu.tscn") - get_tree().paused = false - global_variables.reset_variables() + if global_variables.score >= global_variables.leaderboard[9][1]: + add_child(preload("res://scenes/leaderboard.tscn").instance()) + else: + # warning-ignore:return_value_discarded + get_tree().change_scene("res://scenes/mainmenu.tscn") + get_tree().paused = false + global_variables.reset_variables() func _on_RestartButton_mouse_entered(): diff --git a/theme_data/interface_theme.tres b/theme_data/interface_theme.tres index db80033..234d95b 100644 --- a/theme_data/interface_theme.tres +++ b/theme_data/interface_theme.tres @@ -1,8 +1,9 @@ -[gd_resource type="Theme" load_steps=13 format=2] +[gd_resource type="Theme" load_steps=17 format=2] [ext_resource path="res://textures/check_button_off.png" type="Texture" id=1] [ext_resource path="res://textures/check_button_on.png" type="Texture" id=2] [ext_resource path="res://textures/release_indicator.png" type="Texture" id=3] +[ext_resource path="res://theme_data/font.tres" type="DynamicFont" id=4] [sub_resource type="StyleBoxFlat" id=4] bg_color = Color( 0.109804, 0.101961, 0.160784, 1 ) @@ -64,6 +65,22 @@ expand_margin_right = 1.0 expand_margin_top = 1.0 expand_margin_bottom = 1.0 +[sub_resource type="StyleBoxFlat" id=13] +bg_color = Color( 0.392157, 0.466667, 0.615686, 1 ) +border_width_left = 1 +border_width_top = 1 +border_width_right = 1 +border_width_bottom = 1 +border_color = Color( 0.462745, 0.623529, 0.72549, 1 ) + +[sub_resource type="StyleBoxFlat" id=14] +bg_color = Color( 0.109804, 0.101961, 0.160784, 1 ) +border_width_left = 1 +border_width_top = 1 +border_width_right = 1 +border_width_bottom = 1 +border_color = Color( 0.168627, 0.156863, 0.247059, 1 ) + [sub_resource type="StyleBoxFlat" id=1] bg_color = Color( 0.0823529, 0.0745098, 0.117647, 1 ) border_width_left = 2 @@ -72,6 +89,18 @@ border_width_right = 2 border_width_bottom = 2 border_color = Color( 0.203922, 0.227451, 0.384314, 1 ) +[sub_resource type="StyleBoxFlat" id=12] +content_margin_left = 5.0 +content_margin_right = 5.0 +content_margin_top = 0.0 +content_margin_bottom = 2.0 +bg_color = Color( 0.270588, 0.294118, 0.443137, 1 ) +border_width_left = 1 +border_width_top = 1 +border_width_right = 1 +border_width_bottom = 1 +border_color = Color( 0.392157, 0.466667, 0.615686, 1 ) + [resource] Button/colors/font_color = Color( 0.270588, 0.294118, 0.443137, 1 ) Button/colors/font_color_disabled = Color( 0.168627, 0.156863, 0.247059, 1 ) @@ -79,21 +108,12 @@ Button/colors/font_color_focus = Color( 0.270588, 0.294118, 0.443137, 1 ) Button/colors/font_color_hover = Color( 0.733333, 0.835294, 0.898039, 1 ) Button/colors/font_color_pressed = Color( 0.796078, 0.894118, 0.952941, 1 ) Button/constants/hseparation = 0 -Button/fonts/font = null Button/styles/disabled = SubResource( 4 ) Button/styles/focus = SubResource( 5 ) Button/styles/hover = SubResource( 3 ) Button/styles/normal = SubResource( 6 ) Button/styles/pressed = SubResource( 8 ) -CheckButton/colors/font_color = Color( 0, 0, 0, 1 ) -CheckButton/colors/font_color_disabled = Color( 0, 0, 0, 1 ) -CheckButton/colors/font_color_focus = Color( 0, 0, 0, 1 ) -CheckButton/colors/font_color_hover = Color( 0, 0, 0, 1 ) -CheckButton/colors/font_color_hover_pressed = Color( 0, 0, 0, 1 ) -CheckButton/colors/font_color_pressed = Color( 0, 0, 0, 1 ) -CheckButton/constants/check_vadjust = 0 CheckButton/constants/hseparation = 0 -CheckButton/fonts/font = null CheckButton/icons/off = ExtResource( 1 ) CheckButton/icons/off_disabled = null CheckButton/icons/on = ExtResource( 2 ) @@ -112,4 +132,15 @@ HSlider/styles/grabber_area = SubResource( 9 ) HSlider/styles/grabber_area_highlight = SubResource( 9 ) HSlider/styles/slider = SubResource( 11 ) Label/colors/font_color_shadow = Color( 0.270588, 0.294118, 0.443137, 1 ) +Label/fonts/font = ExtResource( 4 ) +LineEdit/colors/cursor_color = Color( 1, 1, 1, 0 ) +LineEdit/colors/font_color = Color( 0.733333, 0.835294, 0.898039, 1 ) +LineEdit/colors/font_color_selected = Color( 0.270588, 0.294118, 0.443137, 1 ) +LineEdit/colors/font_color_uneditable = Color( 0.270588, 0.294118, 0.443137, 1 ) +LineEdit/colors/selection_color = Color( 1, 1, 1, 0 ) +LineEdit/constants/minimum_spaces = 0 +LineEdit/styles/focus = SubResource( 13 ) +LineEdit/styles/normal = SubResource( 14 ) +LineEdit/styles/read_only = SubResource( 14 ) Panel/styles/panel = SubResource( 1 ) +PanelContainer/styles/panel = SubResource( 12 ) |