Audio: mood music, ambience, sound effects and creature voices (Kenney CC0 + synthesised); protocol 13
This commit is contained in:
@@ -144,12 +144,15 @@ func open(chest: Node) -> void:
|
||||
container.inventory.changed.connect(_refresh)
|
||||
visible = true
|
||||
player.ui_open = true
|
||||
Sfx.ui("ui_open")
|
||||
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
|
||||
_pick_tab()
|
||||
_rebuild_chest()
|
||||
_refresh()
|
||||
|
||||
func close() -> void:
|
||||
if visible:
|
||||
Sfx.ui("ui_close")
|
||||
if WorldNet.is_client():
|
||||
PlayerNet.ask("close") # the server puts the cursor back in our bag
|
||||
_cursor = null
|
||||
|
||||
Reference in New Issue
Block a user