This commit is contained in:
2025-12-10 23:11:59 +08:00
parent 7ad20497d8
commit a04be19af5
31 changed files with 985 additions and 389 deletions
+5 -6
View File
@@ -664,12 +664,11 @@ func remote_set_position(authority_position):
@rpc("any_peer", "call_local")
func display_message(message):
$Bubble.show()
$Bubble/Message.show()
$Bubble/Message.text = str(message)
await get_tree().create_timer(3).timeout
$Bubble.hide()
$Bubble/Message.hide()
# Send message to the main scene's message bar instead of player bubble
var main = get_tree().get_root().get_node_or_null("Main")
if main and main.has_method("add_message_to_bar"):
var player_name = $Name.text.split("\n")[0] if $Name else str(name)
main.add_message_to_bar(player_name, message)
func initialize_random_goals(_size: int, min_value: int, max_value: int, null_count: float) -> Array[int]:
goals.clear()