Better player tones, back button
This commit is contained in:
parent
bdea597057
commit
d25f7fe0a3
|
@ -54,6 +54,11 @@ layout_mode = 2
|
||||||
size_flags_stretch_ratio = 2.41
|
size_flags_stretch_ratio = 2.41
|
||||||
text = "Create Frequency"
|
text = "Create Frequency"
|
||||||
|
|
||||||
|
[node name="BackButton" type="Button" parent="VBoxContainer/ConnectView/VBoxContainer/HBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 10
|
||||||
|
text = "Back"
|
||||||
|
|
||||||
[node name="RefreshButton" type="Button" parent="VBoxContainer/ConnectView/VBoxContainer"]
|
[node name="RefreshButton" type="Button" parent="VBoxContainer/ConnectView/VBoxContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
text = "Refresh"
|
text = "Refresh"
|
||||||
|
@ -137,6 +142,7 @@ text = "<None>"
|
||||||
autowrap_mode = 2
|
autowrap_mode = 2
|
||||||
|
|
||||||
[connection signal="pressed" from="VBoxContainer/ConnectView/VBoxContainer/HBoxContainer/CreateButton" to="." method="_on_create_button_pressed"]
|
[connection signal="pressed" from="VBoxContainer/ConnectView/VBoxContainer/HBoxContainer/CreateButton" to="." method="_on_create_button_pressed"]
|
||||||
|
[connection signal="pressed" from="VBoxContainer/ConnectView/VBoxContainer/HBoxContainer/BackButton" to="." method="_on_back_button_pressed"]
|
||||||
[connection signal="pressed" from="VBoxContainer/ConnectView/VBoxContainer/RefreshButton" to="." method="_on_refresh_button_pressed"]
|
[connection signal="pressed" from="VBoxContainer/ConnectView/VBoxContainer/RefreshButton" to="." method="_on_refresh_button_pressed"]
|
||||||
[connection signal="item_clicked" from="VBoxContainer/ConnectView/VBoxContainer/FreqList" to="." method="_on_freq_list_join"]
|
[connection signal="item_clicked" from="VBoxContainer/ConnectView/VBoxContainer/FreqList" to="." method="_on_freq_list_join"]
|
||||||
[connection signal="button_down" from="VBoxContainer/MorseView/VBoxContainer/MorseButton" to="." method="_on_morse_button_button_down"]
|
[connection signal="button_down" from="VBoxContainer/MorseView/VBoxContainer/MorseButton" to="." method="_on_morse_button_button_down"]
|
||||||
|
|
|
@ -24,9 +24,11 @@ class PlayerData:
|
||||||
|
|
||||||
var player_data := [
|
var player_data := [
|
||||||
PlayerData.new(0, Color( 0, 255, 0), 880),
|
PlayerData.new(0, Color( 0, 255, 0), 880),
|
||||||
PlayerData.new(1, Color(255, 0, 0), 1200),
|
PlayerData.new(1, Color(255, 0, 0), 1318),
|
||||||
PlayerData.new(2, Color( 0, 0, 255), 600),
|
PlayerData.new(2, Color( 0, 0, 255), 587),
|
||||||
PlayerData.new(3, Color(255, 0, 255), 500),
|
PlayerData.new(3, Color(255, 0, 255), 440),
|
||||||
|
PlayerData.new(3, Color( 0, 255, 255), 783),
|
||||||
|
PlayerData.new(3, Color(255, 255, 0), 1567),
|
||||||
]
|
]
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
|
@ -230,3 +232,7 @@ func _on_leave_button_pressed() -> void:
|
||||||
func _on_error_label_gui_input(event: InputEvent) -> void:
|
func _on_error_label_gui_input(event: InputEvent) -> void:
|
||||||
if event is InputEventMouseButton and event.pressed and event.button_index == 1:
|
if event is InputEventMouseButton and event.pressed and event.button_index == 1:
|
||||||
%ErrorLabel.text = "<cleared>"
|
%ErrorLabel.text = "<cleared>"
|
||||||
|
|
||||||
|
|
||||||
|
func _on_back_button_pressed() -> void:
|
||||||
|
get_tree().change_scene_to_file("res://scenes/main.tscn")
|
||||||
|
|
Loading…
Reference in New Issue