Add inventory and logbook player menu
This commit is contained in:
parent
bd2768b676
commit
ad89c22cca
12 changed files with 719 additions and 50 deletions
|
|
@ -30,6 +30,7 @@ signal showcase_changed(
|
|||
weight_lb: float,
|
||||
visible: bool,
|
||||
)
|
||||
signal bite_activated
|
||||
|
||||
enum FishingState {
|
||||
READY,
|
||||
|
|
@ -125,6 +126,13 @@ func setup(
|
|||
_local_collection_log = local_collection_log
|
||||
|
||||
|
||||
func can_open_player_menu() -> bool:
|
||||
return state in [
|
||||
FishingState.READY,
|
||||
FishingState.WAITING_FOR_BITE,
|
||||
]
|
||||
|
||||
|
||||
func _exit_tree() -> void:
|
||||
_showcase_restore_generation += 1
|
||||
if (
|
||||
|
|
@ -437,6 +445,7 @@ func _activate_bite() -> void:
|
|||
state = FishingState.BITE_ACTIVE
|
||||
_state_time_remaining = bite_window_duration
|
||||
_withdrawal_input_held = false
|
||||
bite_activated.emit()
|
||||
status_changed.emit("Bite! Left click to hook")
|
||||
_presentation.set_line_mode(FishingPresentationType.LineMode.TAUT)
|
||||
_presentation.show_bite()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue