getGraphTypes
Definition
-- @/lua/common/extensions/ui/flowgraph/editor.lua:186
local function getGraphTypes()
return graphTypes
end
Callers
@/lua/ge/extensions/editor/flowgraph/main.lua
stopped = im.ImVec4(0,0,0,0),
macro = ui_flowgraph_editor.getGraphTypes().macro.color
}
local graph = gr
local gridColor = ui_flowgraph_editor.getGraphTypes().graph.gridColor
if gr.type == 'instance' then
graph = gr:getMacro()
gridColor = ui_flowgraph_editor.getGraphTypes().macro.gridColor
else
else
gridColor = ui_flowgraph_editor.getGraphTypes().instance.gridColor
end
if graph.isStateGraph then
gridColor = ui_flowgraph_editor.getGraphTypes().state.gridColor
end
if self.mgr.runningState == 'running' then
gridColor = ui_flowgraph_editor.getGraphTypes().instance.gridColor
if self.mgr.transient then
local prettyInfo = ui_flowgraph_editor.getGraphTypes()[gr.type]
local tabColors = nil
if gr.isStateGraph then tabColors = ui_flowgraph_editor.getGraphTypes()['state'] end
if tabColors then
@/lua/ge/extensions/flowgraph/nodes/macro/integrated.lua
self.name = ui_flowgraph_editor.getGraphTypes()[self.targetGraph.type].abbreviation .. " " .. self.targetGraph.name
end
@/lua/ge/extensions/editor/flowgraph/overview.lua
im.SameLine()
local graphTypeStr = ui_flowgraph_editor.getGraphTypes()[graph.type].name
if graph.type == 'graph' and graph.parentId then
end
im.TextColored(ui_flowgraph_editor.getGraphTypes()[graph.type].color, "[" .. graphTypeStr .. "]")
selectThisGraph = selectThisGraph or im.IsItemClicked()