API ReferenceGE Extensionsflowgraphnodesdebug
Category Test (Test Dynamic)
- **File:** `extensions/flowgraph/nodes/debug/testDynamic.lua`
Overview
- File:
extensions/flowgraph/nodes/debug/testDynamic.lua - Name:
Category Test - Category:
once_f_duration - Description: Tests the
once_f_durationcategory behavior with a 5-second timer.
Pin Schema
Input Pins
None (uses implicit flow from category).
Output Pins
None (uses duration state system).
Behavior
- init(): Resets timer to 0, sets duration state to
'inactive'. - _executionStarted() / onNodeReset(): Resets timer and duration state.
- workOnce(): Resets timer to 0 and sets duration state to
'started'. - work(): While in
'started'state, increments timer bymgr.dtReal. When timer reaches 5 seconds, sets duration state to'finished'.
Node Display
- Shows a progress bar (50px wide) representing the timer progress from 0 to 5 seconds.
Duration States
| State | Meaning |
|---|---|
inactive | Node has not been triggered. |
started | Timer is running (0–5 seconds). |
finished | Timer completed (5 seconds elapsed). |
Notes
- This is a test/debug node for validating the
once_f_durationflowgraph category pattern. - Uses real (unscaled) delta time via
mgr.dtReal.
Tags
#flowgraph #node #ge #debug #test #duration
Additional Exports
drawMiddle(builder, style)
-
builder -
any -
style -
any -
name-string- (see source) -
description-string- (see source)
See Also
- AI Debug Display - Related reference
- Camera Mouse Raycast - Related reference
- Comment - Related reference
- FlowGraph Guide - Guide