changed round timer to be set in minutes, not seconds
This commit is contained in:
parent
580d0a75fc
commit
355a7a2228
2 changed files with 5 additions and 9 deletions
|
@ -254,7 +254,7 @@ offset_left = 724.0
|
|||
offset_top = 463.0
|
||||
offset_right = 792.0
|
||||
offset_bottom = 494.0
|
||||
text = "300"
|
||||
text = "5"
|
||||
placeholder_text = "Duration"
|
||||
|
||||
[node name="timeLabel" type="Label" parent="."]
|
||||
|
@ -263,7 +263,7 @@ offset_left = 627.0
|
|||
offset_top = 467.0
|
||||
offset_right = 725.0
|
||||
offset_bottom = 493.0
|
||||
text = "Time (secs):"
|
||||
text = "Time (mins):"
|
||||
|
||||
[node name="toyfactoryButton" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
|
@ -286,6 +286,5 @@ text = "Toy Factory"
|
|||
[connection signal="button_down" from="GamemodeDeathmatch" to="." method="_on_gamemode_deathmatch_button_down"]
|
||||
[connection signal="button_down" from="GamemodeRunner" to="." method="_on_gamemode_runner_button_down"]
|
||||
[connection signal="button_down" from="GamemodeTTT" to="." method="_on_gamemode_ttt_button_down"]
|
||||
[connection signal="ready" from="roundTimer" to="." method="_on_round_timer_ready"]
|
||||
[connection signal="text_changed" from="roundTimer" to="." method="_on_round_timer_text_changed"]
|
||||
[connection signal="pressed" from="toyfactoryButton" to="." method="_on_toyfactory_button_pressed"]
|
||||
|
|
|
@ -121,12 +121,9 @@ func _on_gamemode_ttt_button_down():
|
|||
|
||||
|
||||
func _on_round_timer_text_changed(new_text):
|
||||
Global.roundTimer = int(new_text)
|
||||
|
||||
|
||||
func _on_round_timer_ready():
|
||||
Global.roundTimer = 300
|
||||
|
||||
var minutes = int(new_text)
|
||||
var seconds = minutes * 60
|
||||
Global.roundTimer = int(seconds)
|
||||
|
||||
|
||||
func _on_toyfactory_button_pressed():
|
||||
|
|
Loading…
Reference in a new issue