online multiplayer chess game (note server currently down)
Diffstat (limited to 'ui/menus/lobby/GameConfig.gd')
-rw-r--r--ui/menus/lobby/GameConfig.gd16
1 files changed, 2 insertions, 14 deletions
diff --git a/ui/menus/lobby/GameConfig.gd b/ui/menus/lobby/GameConfig.gd
index f1ab473..19dd770 100644
--- a/ui/menus/lobby/GameConfig.gd
+++ b/ui/menus/lobby/GameConfig.gd
@@ -1,19 +1,15 @@
-extends TabContainer
+extends Control
+class_name GameConfig
var moves := PoolStringArray()
var color := true
-export(bool) var color_config := true
-
signal back
-signal done(color, moves)
export(ButtonGroup) var button_group: ButtonGroup
func _ready():
- if not color_config:
- $"".queue_free()
button_group.connect("pressed", self, "_button_pressed")
@@ -21,14 +17,6 @@ func _button_pressed(button: BarTextureButton) -> void:
color = button.name == "White"
-func _on_Continue_pressed():
- if color_config:
- emit_signal("done", color, moves)
- else:
- emit_signal("done", moves)
- reset()
-
-
func _on_Stop_pressed():
emit_signal("back")
reset()
d2cf40df9794ad40d27fc1c1432" class="hover:text-[#73D0FF] hover:underline"> .gitmodules
-rw-r--r--
5245
CHANGELOG.md
-rw-r--r--
8653
Cargo.lock
-rw-r--r--
28788
Cargo.toml
-rw-r--r--
319
LICENSE
-rw-r--r--
16725
README.md
-rw-r--r--
3368
TODO.md
-rw-r--r--
1047
book
d---------
contrib
d---------
docs
d---------
flake.lock
-rw-r--r--
2558
flake.nix
-rw-r--r--
3377
helix-core
d---------
helix-dap
d---------
helix-lsp
d---------
helix-syntax
d---------
helix-term
d---------
helix-tui
d---------
helix-view
d---------
languages.toml
-rw-r--r--
7858
runtime
d---------
rustfmt.toml
-rw-r--r--
0
screenshot.png
-rw-r--r--
168152
shell.nix
-rw-r--r--
324
theme.toml
-rw-r--r--
2084
README.md