feat(client): resolve OQ-07 — insert-off suppresses verb labels (#522)
Option (a): cursor shape still changes (body orients to targets), but verb labels and interaction prompts are suppressed when insert_active is false. Amends D-056 and D-057 with resolution note. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -13,6 +13,8 @@ extends PanelContainer
|
||||
var _is_showing: bool = false
|
||||
var _active_tween: Tween = null
|
||||
var _current_target_id: int = -1
|
||||
# OQ-07 (#522): when false, prompt is suppressed (z-layer 6 insert overlay only)
|
||||
var _insert_active: bool = true
|
||||
|
||||
const FADE_IN: float = 0.15
|
||||
const FADE_OUT: float = 0.15
|
||||
@@ -23,6 +25,11 @@ func _ready() -> void:
|
||||
_is_showing = false
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
# OQ-07: insert off means no verb labels (z-layer 6 insert overlay suppressed)
|
||||
if not _insert_active:
|
||||
if _is_showing:
|
||||
_hide_prompt()
|
||||
return
|
||||
var interactions: Array = GameState.nearby_interactions
|
||||
if interactions.size() > 0:
|
||||
_show_prompt(interactions[0])
|
||||
@@ -69,6 +76,14 @@ func _hide_prompt() -> void:
|
||||
func get_interaction_target() -> int:
|
||||
return _current_target_id
|
||||
|
||||
## OQ-07 (#522): insert off hides prompt (diegetic: no insert data on z-layer 6).
|
||||
## Cursor shape changes still fire on cursor_renderer.gd.
|
||||
func set_insert_active(active: bool) -> void:
|
||||
_insert_active = active
|
||||
if not active and _is_showing:
|
||||
_hide_prompt()
|
||||
|
||||
|
||||
## Returns the selected verb kind (v0.1: first verb on nearest, v0.2: radial selection).
|
||||
func get_selected_verb() -> String:
|
||||
var interactions: Array = GameState.nearby_interactions
|
||||
|
||||
Reference in New Issue
Block a user