Add starter RV progression and fishing feedback
This commit is contained in:
parent
eed361681a
commit
d8bf59bca0
47 changed files with 2268 additions and 467 deletions
|
|
@ -130,6 +130,8 @@ func _unhandled_input(event: InputEvent) -> void:
|
|||
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
if _toolbar != null and _toolbar.visible:
|
||||
_toolbar.set_interactive(_can_decorate())
|
||||
if _drag_instance_id.is_empty():
|
||||
return
|
||||
# Menus and other gameplay input handoffs must cancel an active drag before
|
||||
|
|
@ -472,9 +474,20 @@ func _on_home_changed() -> void:
|
|||
func _refresh_toolbar() -> void:
|
||||
if _toolbar == null:
|
||||
return
|
||||
_toolbar.set_active(_can_decorate())
|
||||
var inside_home: bool = _is_inside_home_space()
|
||||
_toolbar.set_active(inside_home)
|
||||
_toolbar.set_interactive(_can_decorate())
|
||||
if not _toolbar.visible:
|
||||
_clear_selection()
|
||||
elif not _can_decorate():
|
||||
_toolbar.report_status("decor tools pause while another menu is open")
|
||||
|
||||
|
||||
func _is_inside_home_space() -> bool:
|
||||
return (
|
||||
_network_home != null
|
||||
and String(_network_home.get_local_space()).begins_with("rv:")
|
||||
)
|
||||
|
||||
|
||||
func _can_decorate() -> bool:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue