TriggerHotspot¶
Extends: TextureButton
Description¶
A hotspot that reacts to inventory items and features a special mouse cursor when no item is selected
Property Descriptions¶
visibility_state¶
export var visibility_state: String = ""
Show this hotspot depending on the boolean value of this state variable
valid_inventory_items¶
export var valid_inventory_items: Array = []
The list of valid inventory items that can be used on this hotspot
show_indicator¶
export var show_indicator = true
Whether to show the hotspot indicator or not
Method Descriptions¶
on_mouse_entered¶
func on_mouse_entered()
If an inventory item was selected and it is in the list of valid inventory items, show it as active
Signals¶
signal item_used(item): Emitted when a validitem was used on the hotspot