Skip to content

Commit 32e866b

Browse files
committed
updated btns
1 parent 905752d commit 32e866b

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

game_boards/board_space/game_space.gd

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,13 @@ func on_board_match_multi(match_cnt:int):
3131
if match_cnt >= 2:
3232
animation_player.play("show_msg_amazing")
3333

34-
func _on_newgame_button_pressed():
34+
func _on_btn_newgame_pressed():
3535
game_board.new_game()
3636

37-
func _on_btn_clear_debug_labels_pressed():
37+
func _on_btn_quit_game():
38+
# TODO: 20240515: convert to `signal()` for Main.tscn to hide all boards, etc.
3839
visible = false
3940

40-
func _on_btn_make_vert_pressed():
41+
func _on_btn_checkerboard():
4142
game_board.debug_make_gem_grid()
4243
#game_board.debug_make_match_col()

game_boards/board_space/game_space.tscn

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -417,15 +417,15 @@ text = "Quit"
417417
horizontal_alignment = 1
418418
vertical_alignment = 1
419419

420-
[node name="BtnMatchCol" type="TextureButton" parent="."]
420+
[node name="BtnCheckerboard" type="TextureButton" parent="."]
421421
offset_left = 1656.0
422422
offset_top = 519.0
423423
offset_right = 2815.0
424424
offset_bottom = 877.0
425425
scale = Vector2(0.25, 0.25)
426426
texture_normal = ExtResource("17_oxovp")
427427

428-
[node name="Label" type="Label" parent="BtnMatchCol"]
428+
[node name="Label" type="Label" parent="BtnCheckerboard"]
429429
layout_mode = 1
430430
anchors_preset = 15
431431
anchor_right = 1.0
@@ -512,6 +512,6 @@ scroll_active = false
512512
autowrap_mode = 0
513513
shortcut_keys_enabled = false
514514

515-
[connection signal="pressed" from="BtnNewGame" to="." method="_on_newgame_button_pressed"]
516-
[connection signal="pressed" from="BtnQuitGame" to="." method="_on_btn_clear_debug_labels_pressed"]
517-
[connection signal="pressed" from="BtnMatchCol" to="." method="_on_btn_make_vert_pressed"]
515+
[connection signal="pressed" from="BtnNewGame" to="." method="_on_btn_newgame_pressed"]
516+
[connection signal="pressed" from="BtnQuitGame" to="." method="_on_btn_quit_game"]
517+
[connection signal="pressed" from="BtnCheckerboard" to="." method="_on_btn_checkerboard"]

0 commit comments

Comments
 (0)