MapRoomο
Inherits: Area2D
Visual node for a room on the overworld map.
Propertiesο
|
|
|
|
Methodsο
void |
|
void |
_on_input_event(_viewport: |
void |
Signalsο
selected(room: Room) π
Emitted after the βselectβ animation finishes.
Constantsο
ICONS = {0: [null, Vector2(1, 1)], 1: [<Object>, Vector2(1, 1)], 2: [<Object>, Vector2(2, 2)], 3: [<Object>, Vector2(1, 1)], 4: [<Object>, Vector2(1, 1)], 5: [<Object>, Vector2(1, 1)]} π
Maps each Room.Type to icon [Texture2D, Vector2 scale].
Property Descriptionsο
bool available = false π
void set_available(value:
bool)
Whether the room is clickable.
Room room π
void set_room(value:
Room)
The Room data object this node represents. Sets position, icon, and line rotation.
Method Descriptionsο
void show_selected() π
Marks the room as already-selected by turning its outline white.
void _on_input_event(_viewport: Node, event: InputEvent, _shape_idx: int) π
On left-click if available: marks room selected and plays βselectβ animation.
void _on_map_node_selected() π
Called by the βselectβ animation. Emits selected.