GetWindowWidth
Definition
-- @/=[C]:-1
function GetWindowWidth(...)
Callers
@/lua/ge/extensions/editor/shapeEditor.lua
im.PushStyleColor2(im.Col_ChildBg, im.ImColorByRGB(0,0,0,64).Value)
im.BeginChild1("shapeEditorMenu", menuSize(im.GetWindowWidth(),im.GetWindowHeight()), true )
im.PopStyleColor()
@/lua/ge/extensions/editor/materialEditor.lua
if hover == 1 then y1 = y1 - ts.y - 2 end
local x2 = (smol == 1) and (x1 + ts.x + 3) or (x1 + im.GetWindowWidth())
local y2 = y1 + ts.y + ((smol == 1) and 4 or 1)
@/lua/ge/extensions/editor/api/gui.lua
local clipRectMin = imgui.ImVec2(winPos.x, winPos.y)
local clipRectMax = imgui.ImVec2(winPos.x + imgui.GetWindowWidth(), winPos.y + imgui.GetWindowHeight())
if imgui.GetScrollMaxY() > 0 then -- Doesn't highlight the area under the scrollbar
@/lua/ge/extensions/editor/inspector.lua
end
imgui.SameLine(imgui.GetWindowWidth() - 40 * editor.getPreference("ui.general.scale"));
imgui.SetItemAllowOverlap()
@/lua/ge/extensions/editor/gen/ui.lua
im.Columns(2, 'right_'..width, border)
im.SetColumnWidth(0, im.GetWindowWidth() - width)
im.SetColumnWidth(1, width)
im.Columns(3, 'right_'..100, false)
-- im.SetColumnWidth(0, im.GetWindowWidth() - (24 + bsize*nbut))
im.Columns(nbut+1, 'right_'..bsize, false)
im.SetColumnWidth(0, im.GetWindowWidth() - (24 + bsize*nbut))
for i=1,nbut do
-- im.Columns(2, 'rScope', false)
-- im.SetColumnWidth(0, im.GetWindowWidth() - rightPanelWidth)
-- im.SetColumnWidth(1, rightPanelWidth)
-- local roofTypeWidth = 400
-- im.SetColumnWidth(0, 00) --im.GetWindowWidth() - roofTypeWidth)
-- im.SetColumnWidth(1, 400) -- roofTypeWidth)
im.Columns(2, 'rLabels', false) -- U._PRD == 0 and true or false)
im.SetColumnWidth(0, im.GetWindowWidth() - (rightPanelWidth+10))
im.SetColumnWidth(1, rightPanelWidth-dw)
im.SetColumnWidth(0, im.GetWindowWidth() - (rightPanelWidth))
-- im.SetColumnWidth(1, 60)
-- 320
im.BeginChild1('CONTROLS', im.ImVec2(im.GetWindowWidth(), im.GetWindowHeight() - vspace), false)
-- im.Indent(8)
im.Columns(3, 'rSpacing', false)
local margin = im.GetWindowWidth()/6
local marginInCol = 12
im.SetColumnWidth(0, margin)
im.SetColumnWidth(1, im.GetWindowWidth() - 2*margin)
im.SetColumnWidth(2, margin)
-- if im.InputFloat("Spacing###", v_spacing, 0.1, 20.0) then
im.PushItemWidth(im.GetWindowWidth() - 2*(margin + marginInCol + 40))
if im.SliderFloat('Spacing', v_spacing, 0.1, 20.0, '%.1f') then
-- im.Columns(2, 'right_'..200, true)
-- im.SetColumnWidth(0, im.GetWindowWidth() - width)
-- im.SetColumnWidth(1, width)
im.Columns(2) --, 'right_'..width)
im.SetColumnWidth(0, im.GetWindowWidth()/2)
im.SetColumnWidth(1, im.GetWindowWidth()/2)
im.SetColumnWidth(0, im.GetWindowWidth()/2)
im.SetColumnWidth(1, im.GetWindowWidth()/2)
@/lua/ge/extensions/editor/resourceChecker.lua
end
local window = im.GetWindowWidth()
local rightB
@/lua/ge/extensions/editor/crawlEditor.lua
im.Separator()
if im.BeginChild1("LeftPanel", im.ImVec2(im.GetWindowWidth() * 0.4, 0), true) then
@/lua/ge/extensions/editor/multiSpawnManager.lua
comboWidth = im.GetWindowWidth() * 0.6
inputWidth = 100 * im.uiscale[0]
@/lua/ge/extensions/editor/dynamicDecals/docs.lua
if setColumnWidth then
im.SetColumnWidth(0, im.GetWindowWidth() / 4)
setColumnWidth = false
@/lua/ge/extensions/trackbuilder/trackBuilder.lua
local function navigationRow()
local piecePositions = partitionWidth(im.GetWindowWidth(), 46, 5)
im.SetCursorPosX(piecePositions[1]+10)
local function smallSetButtons(name, values, size, relative, displayNames)
local pos = partitionWidth(im.GetWindowWidth(), size.x, #values)
local old
im.Separator()
local size = im.ImVec2(im.GetWindowWidth()-2,24)
if im.Button(translateLanguage("ui.trackBuilder.trackSettings.alignTrackToCam", "Align Track to Camera"),size) then
im.SameLine()
im.SetCursorPosX(im.GetWindowWidth()-25)
if editor.uiIconImageButton(editor.icons.undo, size or im.ImVec2(20,20), style.colorGreen) then
im.SameLine()
im.SetCursorPosX(im.GetWindowWidth()-25)
if editor.uiIconImageButton(editor.icons.undo, size or im.ImVec2(20,20), style.colorGreen) then
im.SetColumnWidth(1, 50)
im.SetColumnWidth(2, im.GetWindowWidth() - 85)
im.Text("#")
local p = pieceInfo.free.curve
local xPositions = partitionWidth(im.GetWindowWidth(),48,includeSplit and 5 or 4)
local side = p.direction[0] == -1 and "left" or "right"
local function straightParameters(includeSplit)
local xPositions = partitionWidth(im.GetWindowWidth(),48,includeSplit and 3 or 2)
local p = pieceInfo.free.forward
local p = pieceInfo.free.spiral
local xPositions = partitionWidth(im.GetWindowWidth(),48,4)
local side = p.direction[0] == -1 and "left" or "right"
local p = pieceInfo.free.scurve
local xPositions = partitionWidth(im.GetWindowWidth(),48,4)
im.SetCursorPosX(xPositions[1])
local p = pieceInfo.free.loop
local xPositions = partitionWidth(im.GetWindowWidth(),48,4)
im.SetCursorPosX(xPositions[1])
local p = pieceInfo.free.bezier
local xPositions = partitionWidth(im.GetWindowWidth(),50,4)
local piecePositions = partitionWidth(im.GetWindowWidth(), 48, 5)
-- first row
if not menuItems.advancedPieces.isOpen[0] or not menuSettings.hidePieces.value[0] then
local piecePositions = partitionWidth(im.GetWindowWidth(), 48, 5)
im.SetCursorPosX(piecePositions[1]+1)
im.Spacing()
im.SetCursorPosX(im.GetWindowWidth()/2 - 100)
if im.Button(translateLanguage("ui.trackbuilder.menus.openAdvancedPieces","Open Advanced Pieces"),im.ImVec2(200,50)) then
local selectorPositions = partitionWidth(im.GetWindowWidth(), 100, 2)
im.SetCursorPosX(selectorPositions[1])
@/lua/ge/extensions/editor/gen/lib/ui.lua
im.Columns(2, 'right_'..width, border)
im.SetColumnWidth(0, im.GetWindowWidth() - width)
im.SetColumnWidth(1, width)
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
function M.GetWindowSize() return imgui.GetWindowSize() end
function M.GetWindowWidth() return imgui.GetWindowWidth() end
function M.GetWindowHeight() return imgui.GetWindowHeight() end
function M.GetWindowSize() return imgui.GetWindowSize() end
function M.GetWindowWidth() return imgui.GetWindowWidth() end
function M.GetWindowHeight() return imgui.GetWindowHeight() end
@/lua/ge/extensions/editor/flowgraph/properties.lua
im.TextUnformatted('( Repeat )')
im.SameLine(im.GetWindowWidth() - 110)
if im.Button("Set Once", im.ImVec2(90, 22)) then
im.TextUnformatted('( Once )')
im.SameLine(im.GetWindowWidth() - 110)
if im.Button("Set Repeat", im.ImVec2(90, 22)) then
@/lua/ge/extensions/editor/sceneTree.lua
local mousePos = imgui.GetMousePos()
if mousePos.x < imgui.GetWindowPos().x + imgui.GetWindowWidth() - 16 then
instance.mouseDragStartPos = mousePos
@/lua/ge/extensions/editor/camPathEditor.lua
if im.BeginPopupModal('Load new replay') then
local window_width = im.GetWindowWidth()
local text
@/lua/ge/extensions/editor/gen/exp_meshexplorer.lua
im.Columns(2, "geoPanel", true)
im.SetColumnWidth(0, (im.GetWindowWidth()-0)*(env.ui['model_on'] and 4/7 or 3/5))
if #daedata.alod > 0 then
im.SetColumnWidth(0, flipwidth)
im.SetColumnWidth(1, (im.GetWindowWidth()-(butwidth+flipwidth))/2)
im.SetColumnWidth(2, (im.GetWindowWidth()-(butwidth+flipwidth))/2)
im.SetColumnWidth(1, (im.GetWindowWidth()-(butwidth+flipwidth))/2)
im.SetColumnWidth(2, (im.GetWindowWidth()-(butwidth+flipwidth))/2)
-- im.Text('FLIP')