GE Lua Documentation

Press F to search!

ColorPicker4

Definition


-- @/lua/common/extensions/ui/imgui_gen_luaintf.lua:691
function M.ColorPicker4(string_label, floatPtr_col, ImGuiColorEditFlags_flags, float_ref_col)
  if ImGuiColorEditFlags_flags == nil then ImGuiColorEditFlags_flags = 0 end
  -- float_ref_col is optional and can be nil
  if string_label == nil then log("E", "", "Parameter 'string_label' of function 'ColorPicker4' cannot be nil, as the c type is 'const char *'") ; return end
  return imgui.ColorPicker4(string_label, floatPtr_col, ImGuiColorEditFlags_flags, float_ref_col)
end

Callers

@/lua/ge/extensions/editor/dynamicDecals/colorPresets.lua

  -- if im.ColorPicker4(string.format("##NewPresetColor"), editor.getTempFloatArray4_TableTable(newPreset.value), nil, nil) then
  --   newPreset.value = editor.getTempFloatArray4_TableTable()
@/lua/ge/extensions/editor/api/gui.lua
local function uiColorPicker4(label, col, flags, ref_col, editEnded)
  local res = imgui.ColorPicker4(label, col, flags, ref_col)
  if editEnded then
@/lua/ge/extensions/editor/dynamicDecals/widgets.lua
    im.SetNextItemWidth(256)
    if im.ColorPicker4(string.format("%s_Point4FColorPicker", widgetId), editor.getTempFloatArray4_TableTable(value), nil, nil) then
      value = editor.getTempFloatArray4_TableTable()
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
  if string_label == nil then log("E", "", "Parameter 'string_label' of function 'ColorPicker4' cannot be nil, as the c type is 'const char *'") ; return end
  return imgui.ColorPicker4(string_label, floatPtr_col, ImGuiColorEditFlags_flags, float_ref_col)
end