API ReferenceGE Extensionsflowgraphnodesui
Show Apps (Flowgraph Node)
- **Node Name:** `Show Apps`
Overview
- Node Name:
Show Apps - Category:
once_instant - File:
extensions/flowgraph/nodes/ui/showApps.lua - Author: BeamNG
Shows or hides the UI apps overlay. Simple toggle node that fires guihooks.trigger('ShowApps', bool).
Pin Schema
Input Pins
| Pin | Type | Description |
|---|---|---|
value | bool | Whether apps should be visible (true) or hidden (false) |
Internals
| Field | Purpose |
|---|---|
self._doHide | Deferred trigger flag - set in workOnce, consumed in _afterTrigger |
How It Works
_executionStarted()- Resets_doHideto nil.workOnce()- Sets_doHideto the currentvaluepin._afterTrigger()- If_doHideis not nil, triggersguihooks.trigger('ShowApps', value)and resets the flag.
The deferred pattern (set in workOnce, trigger in _afterTrigger) ensures the guihook fires at the correct point in the flowgraph execution cycle.
Lua Code Example
-- Show all UI apps:
guihooks.trigger('ShowApps', true)
-- Hide all UI apps:
guihooks.trigger('ShowApps', false)Key Dependencies
guihooks.trigger('ShowApps', bool)- Controls global UI app visibility
See Also
- Medal / Auto Medal (Flowgraph Node) - Related reference
- Clear Messages (Flowgraph Node) - Related reference
- Context Translation (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide