shortDisplay
Definition
-- @/lua/common/extensions/ui/flowgraph/editor.lua:225
local function shortDisplay(value, tpe)
if value == nil then
im.Text("nil")
return
end
if tpe == 'color' then
local clr = im.ImVec4(value[1], value[2], value[3], value[4])
editor.uiIconImageButton(editor.icons.stop, im.ImVec2(20, 20), clr, nil, clr)
im.SameLine()
end
im.Text(M.shortValueString(value, tpe))
end
Callers
@/lua/ge/extensions/flowgraph/nodes/types/getVariable.lua
if v then
ui_flowgraph_editor.shortDisplay(v.value, v.type)
end
@/lua/ge/extensions/flowgraph/nodes/types/setVariable.lua
if v then
ui_flowgraph_editor.shortDisplay(v.value, v.type)
end