GE Lua Documentation

Press F to search!

isOnceNode

Definition


-- @/lua/common/extensions/ui/flowgraph/editor.lua:848

local function isOnceNode(category)
  return category == 'once_instant'
          or category == 'once_p_duration'
          or category == 'once_f_duration'
end

Callers

@/lua/ge/extensions/editor/flowgraph/references.lua
        -- check if once
        if ui_flowgraph_editor.isOnceNode(category) then
          if not self:pinExists(nodeName,'in','reset') then
@/lua/ge/extensions/flowgraph/graph.lua
  if editor.getPreference and editor.getPreference("flowgraph.general.autoConnectResetPins") -- check if preference is set
          and node.category and ui_flowgraph_editor.isOnceNode(node.category) and node.pinInLocal["reset"] -- check if is once node
          and not forceId                                                      -- don't affect deserialized nodes
@/lua/ge/extensions/flowgraph/basenode.lua
        -- check if once
        if ui_flowgraph_editor.isOnceNode(self.category) then
          local resetPin = self:autoCreatePin('in', 'flow', 'reset', nil, "Resets the node.", nil, true)