From d231b730f72356f81ba2cf3e5c2ccccc26a1ab16 Mon Sep 17 00:00:00 2001 From: Max Litruv Boonzaayer Date: Sat, 19 Jul 2025 22:16:40 +1000 Subject: [PATCH] Add experimental mic loudness UI toggle to settings --- ui_scenes/settings/settings_menu.gd | 1 + ui_scenes/settings/settings_menu.tscn | 36 +++++++++++++++++++++++---- 2 files changed, 32 insertions(+), 5 deletions(-) diff --git a/ui_scenes/settings/settings_menu.gd b/ui_scenes/settings/settings_menu.gd index 331169f..3034eed 100644 --- a/ui_scenes/settings/settings_menu.gd +++ b/ui_scenes/settings/settings_menu.gd @@ -213,6 +213,7 @@ func _on_stream_deck_check_toggled(button_pressed): func _on_experimental_mic_loudness_toggle(checked): Global.experimentalMicLoudness = checked Saving.settings["experimentalMicLoudness"] = checked + print("Experimental mic loudness: ", checked) func _process(delta): diff --git a/ui_scenes/settings/settings_menu.tscn b/ui_scenes/settings/settings_menu.tscn index 2678a02..f98a483 100644 --- a/ui_scenes/settings/settings_menu.tscn +++ b/ui_scenes/settings/settings_menu.tscn @@ -14289,46 +14289,67 @@ offset_bottom = 28.0 text = "confirm" [node name="StreamDeck" type="Node2D" parent="."] -position = Vector2(16, 373) +position = Vector2(16, 337) [node name="Label" type="Label" parent="StreamDeck"] offset_right = 138.0 offset_bottom = 34.0 text = "use streamdeck" +metadata/_edit_use_anchors_ = true [node name="streamDeckCheck" type="CheckBox" parent="StreamDeck"] offset_left = 130.0 offset_top = 1.0 offset_right = 154.0 offset_bottom = 25.0 +metadata/_edit_use_anchors_ = true + +[node name="experimentalMicLoudness" type="Node2D" parent="."] +position = Vector2(16, 369) + +[node name="Label" type="Label" parent="experimentalMicLoudness"] +offset_right = 200.0 +offset_bottom = 34.0 +text = "mic loudness" + +[node name="checkmark" type="CheckBox" parent="experimentalMicLoudness"] +offset_left = 130.0 +offset_top = 1.0 +offset_right = 154.0 +offset_bottom = 25.0 +metadata/_edit_use_anchors_ = true [node name="AntiAliasing" type="Node2D" parent="."] -position = Vector2(16, 405) +position = Vector2(16, 401) [node name="Label" type="Label" parent="AntiAliasing"] offset_right = 138.0 offset_bottom = 34.0 text = "texture filtering" +metadata/_edit_use_anchors_ = true [node name="CheckBox" type="CheckBox" parent="AntiAliasing"] offset_left = 130.0 offset_top = 1.0 offset_right = 154.0 offset_bottom = 25.0 +metadata/_edit_use_anchors_ = true [node name="bounceOnCostume" type="Node2D" parent="."] -position = Vector2(17, 341) +position = Vector2(17, 305) [node name="Label" type="Label" parent="bounceOnCostume"] offset_right = 138.0 offset_bottom = 34.0 text = "costume bounce" +metadata/_edit_use_anchors_ = true [node name="costumeCheck" type="CheckBox" parent="bounceOnCostume"] offset_left = 130.0 offset_top = 1.0 offset_right = 154.0 offset_bottom = 25.0 +metadata/_edit_use_anchors_ = true [node name="BounceForce" type="Node2D" parent="."] position = Vector2(22, 115) @@ -14832,7 +14853,7 @@ offset_bottom = -75.0 text = "costume hotkeys" [node name="BlinkSpeed" type="Node2D" parent="."] -position = Vector2(17, 283) +position = Vector2(17, 253) [node name="Label" type="Label" parent="BlinkSpeed"] offset_left = -10.0 @@ -14841,6 +14862,7 @@ offset_right = 158.0 offset_bottom = 27.0 text = "blink speed: 1" horizontal_alignment = 1 +metadata/_edit_use_anchors_ = true [node name="blinkSpeed" type="HSlider" parent="BlinkSpeed"] offset_left = -9.0 @@ -14851,9 +14873,10 @@ theme = SubResource("Theme_e6tc4") max_value = 20.0 value = 1.0 scrollable = false +metadata/_edit_use_anchors_ = true [node name="BlinkChance" type="Node2D" parent="."] -position = Vector2(17, 235) +position = Vector2(17, 205) [node name="Label" type="Label" parent="BlinkChance"] offset_left = -10.0 @@ -14862,6 +14885,7 @@ offset_right = 160.0 offset_bottom = 27.0 text = "blink chance: 1 in 200" horizontal_alignment = 1 +metadata/_edit_use_anchors_ = true [node name="blinkChance" type="HSlider" parent="BlinkChance"] offset_left = -8.0 @@ -14873,6 +14897,7 @@ min_value = 1.0 max_value = 300.0 value = 200.0 scrollable = false +metadata/_edit_use_anchors_ = true [connection signal="pressed" from="Background/Transparent/Button" to="." method="_on_button_pressed"] [connection signal="pressed" from="Background/Green/greenButton" to="." method="_on_green_button_pressed"] @@ -14883,6 +14908,7 @@ scrollable = false [connection signal="value_changed" from="MaxFPS/fpsDrag" to="." method="_on_fps_drag_value_changed"] [connection signal="pressed" from="MaxFPS/confirm" to="." method="_on_confirm_pressed"] [connection signal="toggled" from="StreamDeck/streamDeckCheck" to="." method="_on_stream_deck_check_toggled"] +[connection signal="toggled" from="experimentalMicLoudness/checkmark" to="." method="_on_experimental_mic_loudness_toggle"] [connection signal="toggled" from="AntiAliasing/CheckBox" to="." method="_on_check_box_toggled"] [connection signal="toggled" from="bounceOnCostume/costumeCheck" to="." method="_on_costume_check_toggled"] [connection signal="value_changed" from="BounceForce/bounceForce" to="." method="_on_bounce_force_value_changed"]