feat: Add Tekton character model, implement in-game message bar, global match timer UI, and camera context manager.

This commit is contained in:
Yogi Wiguna
2026-02-12 14:56:57 +08:00
parent 5275c4acd8
commit a05e3123b4
15 changed files with 324 additions and 30 deletions
+33
View File
@@ -1577,6 +1577,39 @@ func _get_ordinal(n: int) -> String:
func _input(event):
if event.is_action_pressed("ui_cancel"):
_toggle_pause_menu()
# DEBUG: check all floors
if event is InputEventKey and event.pressed and event.keycode == KEY_F9:
check_all_floors()
func check_all_floors():
print("--- CHECKING ALL FLOORS (Debug F9) ---")
var enhanced_gridmap = get_node_or_null("EnhancedGridMap")
if not enhanced_gridmap:
print("Error: EnhancedGridMap not found.")
return
var missing_count = 0
var total_checked = 0
# Assuming standard 14x14 board (0-13)
for x in range(14):
for y in range(14):
total_checked += 1
var cell_3d = Vector3i(x, 0, y)
var item = enhanced_gridmap.get_cell_item(cell_3d)
if item == -1:
print("MISSING FLOOR at [%d, %d]! (Item: -1)" % [x, y])
missing_count += 1
# Optional: Auto-fix?
# enhanced_gridmap.set_cell_item(cell_3d, 1)
elif item == 6:
print("ICE/CRACK FLOOR at [%d, %d] (Item: 6)" % [x, y])
print("--- CHECK COMPLETE: Found %d missing floors out of %d checked. ---" % [missing_count, total_checked])
var msg_type = NotificationManager.MessageType.WARNING if missing_count > 0 else NotificationManager.MessageType.NORMAL
NotificationManager.send_message(GameStateManager.local_player_character, "Checked Floors: %d Missing" % missing_count, msg_type)
func _toggle_pause_menu():
var pause_menu = get_node_or_null("PauseMenu")