API ReferenceGE Extensionsflowgraphnodesui
On Bigmap State Change (Flowgraph Node)
- **Node Name:** `On Bigmap State Change`
Overview
- Node Name:
On Bigmap State Change - Category:
repeat_instant - File:
extensions/flowgraph/nodes/ui/onBigmapStateChange.lua
Detects when the bigmap (map screen) is opened or closed, providing impulse outputs at both the start and end of transitions.
Pin Schema
Output Pins
| Pin | Type | Impulse | Description |
|---|---|---|---|
enteredStart | flow | yes | Fires when bigmap enter transition starts |
enteredEnd | flow | yes | Fires when bigmap enter transition ends (or instant) |
exitedStart | flow | yes | Fires when bigmap exit transition starts |
exitedEnd | flow | yes | Fires when bigmap exit transition ends (or instant) |
Internals
| Field | Purpose |
|---|---|
self.flags | Pending event flags consumed on next work() call |
How It Works
work()- Resets all outputs tofalse, applies pending flags, then clears flags.onBigmapStartTransition(activate, esc)- Hook callback:- If
activateis true, setsenteredStartflag. - If
activateis false, setsexitedStartflag.
- If
onActivateBigMapCallback()- Hook callback: setsenteredEndflag.onDeactivateBigMapCallback()- Hook callback: setsexitedEndflag.
Uses the same flags-based impulse pattern as onBigmapPoiSelected - hooks buffer events, work() emits them for one frame.
Lua Code Example
-- The hooks this node listens to:
-- Fired when map transition begins (opening):
extensions.hook("onBigmapStartTransition", true, false)
-- Fired when map is fully opened:
extensions.hook("onActivateBigMapCallback")
-- Fired when map transition begins (closing):
extensions.hook("onBigmapStartTransition", false, true)
-- Fired when map is fully closed:
extensions.hook("onDeactivateBigMapCallback")Key Dependencies
onBigmapStartTransitionhook - Bigmap open/close transition startonActivateBigMapCallbackhook - Bigmap fully openedonDeactivateBigMapCallbackhook - Bigmap fully closed
See Also
- Medal / Auto Medal (Flowgraph Node) - Related reference
- Clear Messages (Flowgraph Node) - Related reference
- Context Translation (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide