online multiplayer chess game (note server currently down)
remove the test stuff
| -rw-r--r-- | ui/sandisplay/SanDisplay.gd | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ui/sandisplay/SanDisplay.gd b/ui/sandisplay/SanDisplay.gd index 33713d4..a26413a 100644 --- a/ui/sandisplay/SanDisplay.gd +++ b/ui/sandisplay/SanDisplay.gd @@ -13,9 +13,7 @@ func _ready() -> void: tween = Tween.new() add_child(tween) Utils.connect("newmove", self, "on_new_move") - create_number_label(1) - create_san_label("Qxb4", Label.ALIGN_LEFT) - create_san_label("e4") + func create_number_label(num) -> void: var clr = ColorRect.new() @@ -34,7 +32,7 @@ func create_san_label(text, alignment = Label.ALIGN_RIGHT) -> void: label.text = text label.valign = Label.VALIGN_CENTER label.align = alignment - label.rect_min_size = Vector2((rect_size.x / 2.4), 0) + label.rect_min_size = Vector2(rect_size.x / 2.4, 0) sans.add_child(label) |