feat: Implement initial main scene, player scripts, and core game manager systems for input, actions, playerboard, special tiles, and UI.
This commit is contained in:
@@ -53,7 +53,6 @@ func after_action_completed():
|
||||
if not player.is_bot and not player.is_in_group("Bots"):
|
||||
var main = player.get_tree().get_root().get_node_or_null("Main")
|
||||
if main:
|
||||
main.ui_manager.update_button_states()
|
||||
main.ui_manager.update_playerboard_ui()
|
||||
|
||||
# Add this line to sync all boards
|
||||
@@ -180,9 +179,8 @@ func clear_highlights():
|
||||
if not enhanced_gridmap or not player.is_multiplayer_authority():
|
||||
return
|
||||
|
||||
# Store the current action state before clearing
|
||||
# Clear highlights normally
|
||||
var main = player.get_tree().get_root().get_node_or_null("Main")
|
||||
var current_state = main.ui_manager.current_action_state if main else null
|
||||
|
||||
var hover_id = enhanced_gridmap.hover_item
|
||||
|
||||
@@ -205,9 +203,6 @@ func clear_highlights():
|
||||
for child in slot.get_children():
|
||||
child.hide()
|
||||
|
||||
# Restore highlights based on current action state
|
||||
if main and current_state == main.ui_manager.ActionState.MOVING and player.is_my_turn:
|
||||
player.highlight_movement_range()
|
||||
|
||||
func clear_playerboard_highlights():
|
||||
# Never allow bots to clear highlights for human players
|
||||
|
||||
Reference in New Issue
Block a user