From 68fc5535c70857061e24a7180b2fcd114c45a5de Mon Sep 17 00:00:00 2001 From: mago Date: Sun, 11 Apr 2021 16:10:44 +0200 Subject: [PATCH] turn off debug for 0.5 tag --- Src/HUD/HUD.gd | 3 ++- Src/HUD/HUD.tscn | 6 +++++- Src/Menu/Menu.tscn | 15 +++++++++------ Src/_Autoloads/Global.gd | 2 +- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/Src/HUD/HUD.gd b/Src/HUD/HUD.gd index f530dec..228a6a9 100644 --- a/Src/HUD/HUD.gd +++ b/Src/HUD/HUD.gd @@ -47,7 +47,8 @@ func _ready(): Debug.addOption(cat, "HudToggle", funcref(self, "debugHudToggle"), null) Debug.addOption(cat, "LightningToggle", funcref(self, "debugLightToggle"), null) else: - $IngameMenu/DebugPromo.hide() + if $IngameMenu/DebugPromo: + $IngameMenu/DebugPromo.hide() $HUDLayer/Display/GUI.visible = true detected_value = Global.game_manager.getCurrentLevel().allowed_detections diff --git a/Src/HUD/HUD.tscn b/Src/HUD/HUD.tscn index 7655872..144cdf6 100644 --- a/Src/HUD/HUD.tscn +++ b/Src/HUD/HUD.tscn @@ -359,7 +359,6 @@ __meta__ = { [node name="UpgradeButton0" parent="HUDLayer/Display/Upgrades/Grid" instance=ExtResource( 5 )] group = SubResource( 8 ) -skill = 0 [node name="UpgradeButton1" parent="HUDLayer/Display/Upgrades/Grid" instance=ExtResource( 5 )] margin_left = 43.0 @@ -564,24 +563,28 @@ __meta__ = { } [node name="NoBranchButton" parent="HUDLayer/Display/Dialog/vbox" instance=ExtResource( 16 )] +label = "Button" [node name="Option0Button" parent="HUDLayer/Display/Dialog/vbox" instance=ExtResource( 16 )] margin_top = 28.0 margin_bottom = 52.0 focus_neighbour_left = NodePath("../Option2Button") focus_neighbour_right = NodePath("../Option1Button") +label = "Button" [node name="Option1Button" parent="HUDLayer/Display/Dialog/vbox" instance=ExtResource( 16 )] margin_top = 56.0 margin_bottom = 80.0 focus_neighbour_left = NodePath("../Option0Button") focus_neighbour_right = NodePath("../Option2Button") +label = "Button" [node name="Option2Button" parent="HUDLayer/Display/Dialog/vbox" instance=ExtResource( 16 )] margin_top = 84.0 margin_bottom = 108.0 focus_neighbour_left = NodePath("../Option1Button") focus_neighbour_right = NodePath("../Option0Button") +label = "Button" [node name="Sprite" type="Sprite" parent="HUDLayer/Display/Dialog"] position = Vector2( -40, 24 ) @@ -666,6 +669,7 @@ custom_fonts/font = ExtResource( 10 ) text = "Sound" [node name="DebugPromo" type="Button" parent="HUDLayer/Display/IngameMenu"] +visible = false margin_left = 272.0 margin_top = 56.0 margin_right = 371.0 diff --git a/Src/Menu/Menu.tscn b/Src/Menu/Menu.tscn index 72d8cae..ae7ca35 100644 --- a/Src/Menu/Menu.tscn +++ b/Src/Menu/Menu.tscn @@ -463,9 +463,9 @@ anchor_bottom = 1.0 margin_top = -16.0 custom_fonts/normal_font = ExtResource( 7 ) bbcode_enabled = true -bbcode_text = "[center]©2020 by NimbleBeasts [url=https://twitter.com/nimblebeasts][color=#63c2c9]`[/color]NimbleBeasts[/url] [url=https://nimblebeastscollective.itch.io/][color=#c93038]¥[/color]NimbleBeasts[/url][/center]" +bbcode_text = "[center]©2021 by NimbleBeasts [url=https://twitter.com/nimblebeasts][color=#63c2c9]`[/color]NimbleBeasts[/url] [url=https://nimblebeastscollective.itch.io/][color=#c93038]¥[/color]NimbleBeasts[/url][/center]" meta_underlined = false -text = "©2020 by NimbleBeasts `NimbleBeasts ¥NimbleBeasts" +text = "©2021 by NimbleBeasts `NimbleBeasts ¥NimbleBeasts" __meta__ = { "_edit_use_anchors_": false } @@ -482,11 +482,14 @@ bbcode_text = "[right]Version[/right]" text = "Version" [node name="SteamTest" type="Button" parent="."] -margin_left = 496.0 -margin_top = 44.0 -margin_right = 632.0 -margin_bottom = 64.0 +margin_left = 648.0 +margin_top = 40.0 +margin_right = 784.0 +margin_bottom = 60.0 text = "GetAchievement" +__meta__ = { +"_edit_use_anchors_": false +} [connection signal="button_up" from="Main/LevelSelect/DebugButton" to="." method="_on_DebugButton_button_up"] [connection signal="button_up" from="Main/ButtonPlay" to="." method="_on_ButtonPlay_button_up"] [connection signal="button_up" from="Main/ButtonLoad" to="." method="_on_ButtonLoad_button_up"] diff --git a/Src/_Autoloads/Global.gd b/Src/_Autoloads/Global.gd index 52d311c..3b38dad 100644 --- a/Src/_Autoloads/Global.gd +++ b/Src/_Autoloads/Global.gd @@ -27,7 +27,7 @@ const GAME_VERSION = 0.5 const CONFIG_VERSION = 1 # Used for config migration # Debug Options -const DEBUG = true +const DEBUG = false # Nb Plugin Config