GE Lua Documentation

Press F to search!

getSimpleTypes

Definition


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

local function getSimpleTypes()
  return { 'number', 'bool', 'string', 'vec3', 'quat', 'color' }
end

Callers

@/lua/ge/extensions/editor/flowgraph/variables.lua
        im.Separator()
        for _,typename in ipairs(ui_flowgraph_editor.getSimpleTypes()) do
          self.mgr:DrawTypeIcon(typename, false, 1, 20/scale)
@/lua/ge/extensions/editor/flowgraph/properties.lua
            local displayVal = item.pinIn[pin.name] and item.pinIn[pin.name].value
            local allowedTypes = ui_flowgraph_editor.getSimpleTypes()
            if displayVal ~= nil then
              if pin.type == 'any' or type(pin.type) == 'table' then
                local allowedTypes = ui_flowgraph_editor.getSimpleTypes()
                if type(pin.type) == 'table' then allowedTypes = pin.type end
            local displayVal = item.pinIn[pin.name] and item.pinIn[pin.name].value
            local allowedTypes = ui_flowgraph_editor.getSimpleTypes()
            if displayVal ~= nil then
              if pin.type == 'any' or type(pin.type) == 'table' then
                local allowedTypes = ui_flowgraph_editor.getSimpleTypes()
                if type(pin.type) == 'table' then allowedTypes = pin.type end