Shop confines improrperly

This commit is contained in:
Rendo 2025-12-12 16:56:47 +05:00
commit faa7745257
2 changed files with 15 additions and 4 deletions

View file

@ -12,7 +12,10 @@ func _input(event: InputEvent) -> void:
if event.is_action_pressed("plr_buy"):
if Session.round_state == Session.ROUND_STATES.BUY:
visible = not visible
MouseConfiner.borrow()
if visible:
MouseConfiner.borrow()
else:
MouseConfiner.stop_borrow()
elif visible:
visible = false
MouseConfiner.stop_borrow()

View file

@ -102,12 +102,12 @@ value = 2.0
rounded = true
allow_greater = true
[node name="FoldableContainer" type="FoldableContainer" parent="."]
[node name="Gameplay" type="FoldableContainer" parent="."]
layout_mode = 2
folded = true
title = "Геймплей"
[node name="AllowMultipleAbilityButton" type="CheckButton" parent="FoldableContainer"]
[node name="AllowMultipleAbilityButton" type="CheckButton" parent="Gameplay"]
unique_name_in_owner = true
visible = false
custom_minimum_size = Vector2(200, 0)
@ -139,10 +139,18 @@ layout_mode = 2
editable = false
script = ExtResource("3_f5ibf")
[node name="Teams" type="FoldableContainer" parent="."]
layout_mode = 2
title = "Команды"
[node name="Shuffle" type="Button" parent="Teams"]
layout_mode = 2
text = "Перемешать"
[connection signal="value_changed" from="Time/VBoxContainer/RoundTime/RoundTimeBox" to="." method="_on_round_time_box_value_changed"]
[connection signal="value_changed" from="Time/VBoxContainer/BombTime/BombTimeBox" to="." method="_on_bomb_time_box_value_changed"]
[connection signal="value_changed" from="Time/VBoxContainer/BuyTime/BuyTimeBox" to="." method="_on_buy_time_box_value_changed"]
[connection signal="value_changed" from="Round/VBoxContainer/RoundAmount/RoundBox" to="." method="_on_round_box_value_changed"]
[connection signal="value_changed" from="Round/VBoxContainer/TeamSwitchAmount/TeamSwitchBox" to="." method="_on_team_switch_box_value_changed"]
[connection signal="toggled" from="FoldableContainer/AllowMultipleAbilityButton" to="." method="_on_allow_multiple_ability_button_toggled"]
[connection signal="toggled" from="Gameplay/AllowMultipleAbilityButton" to="." method="_on_allow_multiple_ability_button_toggled"]
[connection signal="update_ip" from="PortForward/PortForwardContainer/ForwardPortButton" to="PortForward/PortForwardContainer/PublicIP" method="on_update_ip"]