diff options
Diffstat (limited to 'client/player/player.gd')
| -rw-r--r-- | client/player/player.gd | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/client/player/player.gd b/client/player/player.gd index 254ec020..43d7dd7f 100644 --- a/client/player/player.gd +++ b/client/player/player.gd @@ -54,7 +54,8 @@ func _init(_id: int, new_name: String, pos: Vector2, new_character_idx: int, new movement_base.add_child(character) position_ = pos position_anim = pos - name = new_name + if new_name != "": + name = new_name game = new_game username = new_name @@ -150,8 +151,8 @@ func clear_message(): chat_bubble.remove_text() effect.clear_effect() -func item_message(item_name: String, _timeout_initial: float, timeout_remaining: float): - item_bubble.set_item(item_name) +func item_message(item_name: String, timeout_initial: float, timeout_remaining: float): + item_bubble.set_item(item_name, timeout_initial, timeout_remaining) clear_timer.start(timeout_remaining) func text_message(m: String, _timeout_initial: float, timeout_remaining: float): |