GE Lua Documentation

Press F to search!

InputFloat4

Definition


-- @/lua/common/extensions/ui/imgui_gen_luaintf.lua:638
function M.InputFloat4(string_label, floatPtr_v, string_format, ImGuiInputTextFlags_flags)
  if string_format == nil then string_format = "%.3f" end
  if ImGuiInputTextFlags_flags == nil then ImGuiInputTextFlags_flags = 0 end
  if string_label == nil then log("E", "", "Parameter 'string_label' of function 'InputFloat4' cannot be nil, as the c type is 'const char *'") ; return end
  return imgui.InputFloat4(string_label, floatPtr_v, string_format, ImGuiInputTextFlags_flags)
end

Callers

@/lua/common/extensions/ui/flowgraph/editor.lua
    imVal[3] = im.Float(val[4])
    if im.InputFloat4("##input" .. name, imVal, nil, im.InputTextFlags_EnterReturnsTrue) then
      local tbl = { imVal[0], imVal[1], imVal[2], imVal[3] }
@/lua/ge/extensions/editor/api/gui.lua
local function uiInputFloat4(label, v, format, extra_flags, editEnded)
  local res =  imgui.InputFloat4(label, v, format, extra_flags)
  if editEnded then
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
  if string_label == nil then log("E", "", "Parameter 'string_label' of function 'InputFloat4' cannot be nil, as the c type is 'const char *'") ; return end
  return imgui.InputFloat4(string_label, floatPtr_v, string_format, ImGuiInputTextFlags_flags)
end
@/lua/ge/extensions/editor/util/transformUtil.lua
    im.PushItemWidth(width - (im.GetCursorPosX() - startPosX))
    if im.InputFloat4("##Rot", self.inputRot, "%0." .. editor.getPreference("ui.general.floatDigitCount") .. "f") then
      self.rot = quat(self.inputRot[0], self.inputRot[1], self.inputRot[2], self.inputRot[3]):normalized()
    if self.allowRotate then
      if im.InputFloat4(self.objectName .. " Rotation", self.inputRot, "%0." .. editor.getPreference("ui.general.floatDigitCount") .. "f", im.InputTextFlags_EnterReturnsTrue) then
        self.rot = quat(self.inputRot[0], self.inputRot[1], self.inputRot[2], self.inputRot[3])
    if self.allowRotate then
      if im.InputFloat4("Rot", self.inputRot, "%0." .. editor.getPreference("ui.general.floatDigitCount") .. "f", im.InputTextFlags_EnterReturnsTrue) then
        self.rot = quat(self.inputRot[0], self.inputRot[1], self.inputRot[2], self.inputRot[3])