GE Lua Documentation

Press F to search!

TableToArrayFloat

Definition


-- @/lua/common/extensions/ui/imgui_custom_luaintf.lua:210

  -- HELPER
  function M.TableToArrayFloat(tbl) return tbl end

Callers

@/lua/ge/extensions/editor/perfProfiler.lua
            local clr = rainbowColor(5.5, (f-1)%5.5, 1)
            file.clr = im.TableToArrayFloat({clr[1], clr[2], clr[3], clr[4]})
          end
@/lua/ge/extensions/editor/biomeTool.lua
    if not editingPos then
      range = imgui.TableToArrayFloat(slopeRange)
    end
@/lua/ge/extensions/editor/suspensionAudioDebug.lua
              imguiUtils.SampleFloatDisplay('impulse' ..i, val.impulse, 0.05, 3)
              local impulseArr = im.TableToArrayFloat(beamSounds[bi].impulseTbl)--not actually stress, things are named poorly in sounds.lua
              im.PlotLines1("", impulseArr, im.GetLengthArrayFloat(impulseArr), counter, "maxStress: " ..tostring(val.maxStress), 0, val.maxStress, im.ImVec2(400, 80))
              imguiUtils.SampleFloatDisplay('pitch' ..i, val.pitch, 0.05, 3)
              local pitchArr = im.TableToArrayFloat(beamSounds[bi].pitchTbl)
              im.PlotLines1("", pitchArr, im.GetLengthArrayFloat(pitchArr), counter, "pitchFactor: " ..tostring(val.pitchFactor), 0, val.pitchFactor, im.ImVec2(400, 80))
              imguiUtils.SampleFloatDisplay('volume' ..i, val.volume, 0.05, 3)
              local volumeArr = im.TableToArrayFloat(beamSounds[bi].volumeTbl)
              im.PlotLines1("", volumeArr, im.GetLengthArrayFloat(volumeArr), counter, "volumeFactor: " ..tostring(val.volumeFactor), 0, 1, im.ImVec2(400, 80))