GetContentRegionAvail
Definition
-- @/=[C]:-1
function GetContentRegionAvail(...)
Callers
@/lua/ge/extensions/editor/driftDataEditor.lua
-- element selector and "New"
im.BeginChild1("element select", im.GetContentRegionAvail(), 1)
im.Text("Drift Stunt Zones:")
-- element detail
im.BeginChild1("element detail", im.GetContentRegionAvail(), 1)
im.BeginChild1("driftSpots", im.GetContentRegionAvail(), 1)
im.TextWrapped("Drift spots in the current level: ")
im.BeginChild1("Drift spots details", im.GetContentRegionAvail(), 1)
if selectedDriftSpotId then
@/lua/ge/extensions/flowgraph/nodes/gameplay/countdown.lua
if self.data.useImgui then
local avail = im.GetContentRegionAvail()
local txt = " - " .. (math.ceil(old)+1) .. " - "
@/lua/common/extensions/ui/flowgraph/editor.lua
if vehSearchResults then
im.BeginChild1("Scroller", im.GetContentRegionAvail())
for _, result in ipairs(vehSearchResults) do
@/lua/ge/extensions/editor/raceEditor/pacenotes.lua
function C:drawPacenoteList()
local avail = im.GetContentRegionAvail()
im.BeginChild1("keynotes", im.ImVec2(125 * im.uiscale[0], 0 ), im.WindowFlags_ChildWindow)
@/lua/ge/extensions/editor/toolUtilities/materialSelectionMgr.lua
-- Scrollable list area.
local listSize = im.ImVec2(0, im.GetContentRegionAvail().y)
im.BeginChild1("MaterialListScrollArea", listSize, false)
@/lua/ge/extensions/editor/materialEditor.lua
local avail = im.GetContentRegionAvail()
im.BeginChild1("##mu_child", im.ImVec2(avail.x, avail.y - 4*im.GetFontSize()), false, im.WindowFlags_ChildWindow + im.WindowFlags_HorizontalScrollbar)
if createMaterialMessage and createMaterialMessage ~= "" and createMaterialError then
im.SetCursorPos(im.ImVec2(im.GetCursorPosX(), im.GetContentRegionAvail().y + im.GetCursorPosY() - im.GetTextLineHeight()))
im.TextColored(im.ImVec4(1, 1, 0, 1), createMaterialMessage)
if not v.style then v.style = im.GetStyle() end
local availableSize = im.GetContentRegionAvail()
availableSize.y = availableSize.y - 28
@/lua/ge/extensions/editor/main.lua
local size = imgui.uiscale[0] * imageSize.x + style.FramePadding.x * 2.0
local avail = imgui.GetContentRegionAvail().x
local off = (avail - size) * 0.5;
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/veStaticRenderView.lua
local mainRVPos = im.GetCursorPos()
local mainRVSize = im.GetContentRegionAvail()
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veView.lua
local availSize = im.GetContentRegionAvail()
@/lua/ge/extensions/editor/shapeEditor.lua
if shapePrev and editor.beginWindow(toolWindowName, windowTitle, im.WindowFlags_NoCollapse) then
renderSize[1] = im.GetContentRegionAvail().x
renderSize[2] = im.GetContentRegionAvail().y
renderSize[1] = im.GetContentRegionAvail().x
renderSize[2] = im.GetContentRegionAvail().y
@/lua/ge/extensions/editor/undoHistory.lua
if imgui.Button("Undo Selected") then editor.undo(tableSize(editor.history.undoStack) - selectedIndex + 1) end
imgui.BeginChild1("undos", imgui.ImVec2(0, imgui.GetContentRegionAvail().y))
for k = tableSize(editor.history.undoStack), 1, -1 do
if imgui.Button("Redo Selected") then editor.redo(tableSize(editor.history.redoStack) - selectedIndex2 + 1) end
imgui.BeginChild1("redos", imgui.ImVec2(0, imgui.GetContentRegionAvail().y))
for k = tableSize(editor.history.redoStack), 1, -1 do
@/lua/ge/extensions/editor/api/core.lua
imgui.Text("Tool windows with unsaved data:")
imgui.BeginChild1("Windows", imgui.ImVec2(-1, imgui.GetContentRegionAvail().y - 30), imgui.WindowFlags_ChildWindow)
for name, _ in pairs(editor.dirtyTools) do
@/lua/ge/extensions/editor/forestEditor.lua
im.BeginChild1("parallaxMappingTextureSetEditor_textureSet_TexturePreview_Child", im.ImVec2(0, im.GetContentRegionAvail().y - (math.ceil(im.GetFontSize() + im.GetStyle().ItemSpacing.y * 2))), true)
@/lua/ge/extensions/editor/terrainMaterialsEditor.lua
-- local size = im.ImVec2(0, materialEditorWindowSize.y - (fontSize + 2 * editor_terrainEditor.getVars().style.FramePadding.y + editor_terrainEditor.getVars().style.WindowPadding.y) - (fontSize + editor_terrainEditor.getVars().style.WindowPadding.y + editor_terrainEditor.getVars().style.ItemSpacing.y) - (fontSize + editor_terrainEditor.getVars().style.ItemSpacing.y))
local size = im.ImVec2(0, im.GetContentRegionAvail().y - (im.GetFontSize() + 2 * im.GetStyle().FramePadding.y + im.GetStyle().ItemSpacing.y))
if im.BeginChild1("Material Properties##Child", size, true) then
@/lua/ge/extensions/ui/apps/minimap/minimap.lua
local dpi = im.GetWindowDpiScale()
--avail = im.GetContentRegionAvail()
local cp = im.GetCursorPos()
local size = im.GetContentRegionAvail()
local sizeX, sizeY = size.x, size.y
@/lua/ge/extensions/editor/assetManagementTool.lua
if isFirstPath then
local windowWidth = imgui.GetContentRegionAvail().x
local inputWidth = windowWidth * 0.9
@/lua/ge/extensions/editor/biomeTool.lua
imgui.BeginChild1("MainPanel#"..layer.layerType..layer.layerID, imgui.ImVec2(imgui.GetContentRegionAvail().x, imgui.GetContentRegionAvail().y-(imgui.GetStyle().FramePadding.y)), true)
imgui.BeginChild1("LayerActionsPanel"..layer.layerType..layer.layerID, imgui.ImVec2(imgui.GetContentRegionAvail().x, 40 * imgui.uiscale[0]), nil)
imgui.BeginChild1("MainPanel#"..layer.layerType..layer.layerID, imgui.ImVec2(imgui.GetContentRegionAvail().x, imgui.GetContentRegionAvail().y-(imgui.GetStyle().FramePadding.y)), true)
imgui.BeginChild1("LayerActionsPanel"..layer.layerType..layer.layerID, imgui.ImVec2(imgui.GetContentRegionAvail().x, 40 * imgui.uiscale[0]), nil)
imgui.BeginChild1("MainPanel#"..layer.layerType..layer.layerID, imgui.ImVec2(imgui.GetContentRegionAvail().x, imgui.GetContentRegionAvail().y-(imgui.GetStyle().FramePadding.y)), true)
imgui.BeginChild1("LayerActionsPanel"..layer.layerType..layer.layerID, imgui.ImVec2(imgui.GetContentRegionAvail().x, 40 * imgui.uiscale[0]), nil)
imgui.SameLine()
local panelWidth = imgui.GetContentRegionAvail().x
imgui.BeginChild1("LayerMainPanel##"..tostring(layer.layerType)..tostring(layer.layerID), imgui.ImVec2(imgui.GetContentRegionAvail().x, imgui.GetContentRegionAvail().y), nil)
local panelWidth = imgui.GetContentRegionAvail().x
imgui.BeginChild1("LayerMainPanel##"..tostring(layer.layerType)..tostring(layer.layerID), imgui.ImVec2(imgui.GetContentRegionAvail().x, imgui.GetContentRegionAvail().y), nil)
local panelWidth = imgui.GetContentRegionAvail().x
imgui.BeginChild1("LayerMainPanel##"..tostring(layer.layerType)..tostring(layer.layerID), imgui.ImVec2(imgui.GetContentRegionAvail().x, imgui.GetContentRegionAvail().y), nil)
if imgui.BeginPopupModal("Select Forest Brush (Central)") then
imgui.BeginChild1("CentralBrushesCentralPopup"..layerType..layerID, imgui.ImVec2(imgui.GetContentRegionAvail().x, imgui.GetContentRegionAvail().y - 50), imgui.WindowFlags_ChildWindow)
imgui.PushStyleColor2(imgui.Col_Text, imgui.ImVec4(1, 0, 0, 1))
if imgui.BeginPopupModal("Select Forest Brush (Central)") then
imgui.BeginChild1("CentralBrushesCentralPopup"..layerType..layerID, imgui.ImVec2(imgui.GetContentRegionAvail().x, imgui.GetContentRegionAvail().y - 50), imgui.WindowFlags_ChildWindow)
imgui.PushStyleColor2(imgui.Col_Text, imgui.ImVec4(1, 0, 0, 1))
if imgui.BeginPopupModal("Select Forest Brush (Falloff)") then
imgui.BeginChild1("FalloffBrushesCentralPopup"..layerType..layerID, imgui.ImVec2(imgui.GetContentRegionAvail().x, imgui.GetContentRegionAvail().y - 50), imgui.WindowFlags_ChildWindow)
imgui.PushStyleColor2(imgui.Col_Text, imgui.ImVec4(1, 0, 0, 1))
if imgui.BeginPopupModal("Select Forest Brush (Falloff)") then
imgui.BeginChild1("FalloffBrushesCentralPopup"..layerType..layerID, imgui.ImVec2(imgui.GetContentRegionAvail().x, imgui.GetContentRegionAvail().y - 50), imgui.WindowFlags_ChildWindow)
imgui.PushStyleColor2(imgui.Col_Text, imgui.ImVec4(1, 0, 0, 1))
if imgui.BeginPopupModal("Select Forest Brush (Edge)") then
imgui.BeginChild1("EdgeBrushesPopup"..layerType..layerID, imgui.ImVec2(imgui.GetContentRegionAvail().x, imgui.GetContentRegionAvail().y - 50), imgui.WindowFlags_ChildWindow)
imgui.PushStyleColor2(imgui.Col_Text, imgui.ImVec4(1, 0, 0, 1))
if imgui.BeginPopupModal("Select Forest Brush (Edge)") then
imgui.BeginChild1("EdgeBrushesPopup"..layerType..layerID, imgui.ImVec2(imgui.GetContentRegionAvail().x, imgui.GetContentRegionAvail().y - 50), imgui.WindowFlags_ChildWindow)
imgui.PushStyleColor2(imgui.Col_Text, imgui.ImVec4(1, 0, 0, 1))
local function drawLassoAreasList(layer)
local panelHeight = math.max(imgui.GetContentRegionAvail().y, 200)
imgui.BeginChild1("AreasList##"..layer.layerType..layer.layerID, imgui.ImVec2(imgui.GetContentRegionAvail().x, panelHeight - 60), imgui.WindowFlags_ChildWindow)
local panelHeight = math.max(imgui.GetContentRegionAvail().y, 200)
imgui.BeginChild1("AreasList##"..layer.layerType..layer.layerID, imgui.ImVec2(imgui.GetContentRegionAvail().x, panelHeight - 60), imgui.WindowFlags_ChildWindow)
local lassoAreas = getAllLassoAreas(layer.layerID)
local noAreaText = "N O L A S S O A R E A A V A I L A B L E !"
imgui.SetCursorPos(imgui.ImVec2(imgui.GetContentRegionAvail().x/2 - imgui.CalcTextSize(noAreaText).x/2, imgui.GetContentRegionAvail().y/2))
imgui.PushStyleColor2(imgui.Col_Text, imgui.ImVec4(1, 0, 0, 1));
local noAreaText = "N O L A S S O A R E A A V A I L A B L E !"
imgui.SetCursorPos(imgui.ImVec2(imgui.GetContentRegionAvail().x/2 - imgui.CalcTextSize(noAreaText).x/2, imgui.GetContentRegionAvail().y/2))
imgui.PushStyleColor2(imgui.Col_Text, imgui.ImVec4(1, 0, 0, 1));
else
imgui.SetCursorPosX(imgui.GetContentRegionAvail().x/2 - 150)
local arealistHeight = math.max(imgui.GetContentRegionAvail().y, 200)
imgui.SetCursorPosX(imgui.GetContentRegionAvail().x/2 - 150)
local arealistHeight = math.max(imgui.GetContentRegionAvail().y, 200)
imgui.BeginChild1("AreasListContainer##"..layer.layerType..layer.layerID, imgui.ImVec2(300, arealistHeight - 10), imgui.WindowFlags_ChildWindow)
local buttonSize = imgui.ImVec2(150, 30)
imgui.SetCursorPosX(imgui.GetContentRegionAvail().x/2 - buttonSize.x - 20)
local cursorPosMsg = imgui.GetCursorPosX()
local layers = getLayersWithType(layerType)
imgui.BeginChild1("LayersList", imgui.ImVec2(imgui.GetContentRegionAvail().x, imgui.GetContentRegionAvail().y - 4), imgui.WindowFlags_ChildWindow)
for _, layer in ipairs(layers) do
local layers = getLayersWithType(layerType)
imgui.BeginChild1("LayersList", imgui.ImVec2(imgui.GetContentRegionAvail().x, imgui.GetContentRegionAvail().y - 4), imgui.WindowFlags_ChildWindow)
for _, layer in ipairs(layers) do
local buttonSize = imgui.ImVec2(150, 30)
imgui.BeginChild1("MainToolbar", imgui.ImVec2((imgui.GetContentRegionAvail().x - 2), levelBiomeToolbarHeight), true)
if imgui.Button("(Re)generate all layers", buttonSize) then
local separatorPos = imgui.GetCursorPos()
imgui.InvisibleButton("SeparatorButtonLBToolbar", imgui.ImVec2(imgui.GetContentRegionAvail().x, seperatorHeight))
if imgui.IsItemActive() then
local function drawLevelBiomeLayersList()
imgui.BeginChild1("LevelBiomeLayers", imgui.ImVec2((imgui.GetContentRegionAvail().x - 2), levelBiomeLevelsListHeight), true)
imgui.Text("Terrain Layers:")
local buttonSize = imgui.ImVec2(150, 30)
imgui.BeginChild1("MainPanelLevelBiome", imgui.ImVec2(imgui.GetContentRegionAvail().x, imgui.GetContentRegionAvail().y-(buttonSize.y+imgui.GetStyle().FramePadding.y*6)), true)
local layers = getLayersWithType(layerType_enum.terrain)
local buttonSize = imgui.ImVec2(150, 30)
imgui.BeginChild1("MainPanelLevelBiome", imgui.ImVec2(imgui.GetContentRegionAvail().x, imgui.GetContentRegionAvail().y-(buttonSize.y+imgui.GetStyle().FramePadding.y*6)), true)
local layers = getLayersWithType(layerType_enum.terrain)
local noAreaText = "N O T E R R A I N L A Y E R A V A I L A B L E !"
imgui.SetCursorPos(imgui.ImVec2(imgui.GetContentRegionAvail().x/2 - imgui.CalcTextSize(noAreaText).x/2, imgui.GetContentRegionAvail().y/2))
imgui.PushStyleColor2(imgui.Col_Text, imgui.ImVec4(1, 0, 0, 1));
local noAreaText = "N O T E R R A I N L A Y E R A V A I L A B L E !"
imgui.SetCursorPos(imgui.ImVec2(imgui.GetContentRegionAvail().x/2 - imgui.CalcTextSize(noAreaText).x/2, imgui.GetContentRegionAvail().y/2))
imgui.PushStyleColor2(imgui.Col_Text, imgui.ImVec4(1, 0, 0, 1));
imgui.SetCursorPosX(imgui.GetContentRegionAvail().x/2 - buttonSize.x/2)
imgui.SetCursorPosY(imgui.GetCursorPosY()+imgui.GetStyle().FramePadding.y*2)
local separatorPos = imgui.GetCursorPos()
imgui.InvisibleButton("SeparatorButtonLBLevels", imgui.ImVec2(imgui.GetContentRegionAvail().x, seperatorHeight))
if imgui.IsItemActive() then
local function drawLevelBiomeLayerProperties()
imgui.BeginChild1("LevelBiomeLayerProps", imgui.ImVec2((imgui.GetContentRegionAvail().x - 2), levelBiomeLevelPropsHeight), true)
local selectedLayer = getSelectedLayer(layerType_enum.terrain)
local noAreaText = "N O L A Y E R S E L E C T E D !"
imgui.SetCursorPos(imgui.ImVec2(imgui.GetContentRegionAvail().x/2 - imgui.CalcTextSize(noAreaText).x/2, imgui.GetContentRegionAvail().y/2))
imgui.PushStyleColor2(imgui.Col_Text, imgui.ImVec4(1, 0, 0, 1));
local noAreaText = "N O L A Y E R S E L E C T E D !"
imgui.SetCursorPos(imgui.ImVec2(imgui.GetContentRegionAvail().x/2 - imgui.CalcTextSize(noAreaText).x/2, imgui.GetContentRegionAvail().y/2))
imgui.PushStyleColor2(imgui.Col_Text, imgui.ImVec4(1, 0, 0, 1));
local separatorPos = imgui.GetCursorPos()
imgui.InvisibleButton("SeparatorButtonLBLevelsProps", imgui.ImVec2(imgui.GetContentRegionAvail().x, seperatorHeight))
if imgui.IsItemActive() then
local buttonSize = imgui.ImVec2(150, 30)
imgui.BeginChild1("MainToolbar", imgui.ImVec2((imgui.GetContentRegionAvail().x - 2), biomeAreasToolbarHeight), true)
if imgui.Button("(Re)generate all layers", buttonSize) then
local separatorPos = imgui.GetCursorPos()
imgui.InvisibleButton("SeparatorButtonLBToolbar", imgui.ImVec2(imgui.GetContentRegionAvail().x, seperatorHeight))
if imgui.IsItemActive() then
local function drawBiomeAreasLayersList()
imgui.BeginChild1("AreaLayers", imgui.ImVec2((imgui.GetContentRegionAvail().x - 2), biomeAreasLevelsListHeight), true)
imgui.Text("Area Layers:")
local buttonSize = imgui.ImVec2(150, 30)
imgui.BeginChild1("MainPanelAL", imgui.ImVec2(imgui.GetContentRegionAvail().x, imgui.GetContentRegionAvail().y-(buttonSize.y+imgui.GetStyle().FramePadding.y*6)), true)
local buttonSize = imgui.ImVec2(150, 30)
imgui.BeginChild1("MainPanelAL", imgui.ImVec2(imgui.GetContentRegionAvail().x, imgui.GetContentRegionAvail().y-(buttonSize.y+imgui.GetStyle().FramePadding.y*6)), true)
local noAreaText = "N O A R E A L A Y E R A V A I L A B L E !"
imgui.SetCursorPos(imgui.ImVec2(imgui.GetContentRegionAvail().x/2 - imgui.CalcTextSize(noAreaText).x/2, imgui.GetContentRegionAvail().y/2))
imgui.PushStyleColor2(imgui.Col_Text, imgui.ImVec4(1, 0, 0, 1));
local noAreaText = "N O A R E A L A Y E R A V A I L A B L E !"
imgui.SetCursorPos(imgui.ImVec2(imgui.GetContentRegionAvail().x/2 - imgui.CalcTextSize(noAreaText).x/2, imgui.GetContentRegionAvail().y/2))
imgui.PushStyleColor2(imgui.Col_Text, imgui.ImVec4(1, 0, 0, 1));
imgui.SetCursorPosX(imgui.GetContentRegionAvail().x/2 - buttonSize.x/2)
imgui.SetCursorPosY(imgui.GetCursorPosY()+imgui.GetStyle().FramePadding.y*2)
local separatorPos = imgui.GetCursorPos()
imgui.InvisibleButton("SeparatorButtonALLevels", imgui.ImVec2(imgui.GetContentRegionAvail().x, seperatorHeight))
if imgui.IsItemActive() then
imgui.BeginChild1("BiomeAreaLayerProps", imgui.ImVec2((imgui.GetContentRegionAvail().x - 2), biomeAreasLevelPropsHeight), true)
local selectedLayer = getSelectedLayer(layerType_enum.area)
local noAreaText = "N O L A Y E R S E L E C T E D !"
imgui.SetCursorPos(imgui.ImVec2(imgui.GetContentRegionAvail().x/2 - imgui.CalcTextSize(noAreaText).x/2, imgui.GetContentRegionAvail().y/2))
imgui.PushStyleColor2(imgui.Col_Text, imgui.ImVec4(1, 0, 0, 1));
local noAreaText = "N O L A Y E R S E L E C T E D !"
imgui.SetCursorPos(imgui.ImVec2(imgui.GetContentRegionAvail().x/2 - imgui.CalcTextSize(noAreaText).x/2, imgui.GetContentRegionAvail().y/2))
imgui.PushStyleColor2(imgui.Col_Text, imgui.ImVec4(1, 0, 0, 1));
local separatorPos = imgui.GetCursorPos()
imgui.InvisibleButton("SeparatorButtonALLevelsProps", imgui.ImVec2(imgui.GetContentRegionAvail().x, seperatorHeight))
if imgui.IsItemActive() then
local buttonSize = imgui.ImVec2(150, 30)
imgui.BeginChild1("MainToolbar", imgui.ImVec2((imgui.GetContentRegionAvail().x - 6), 50), true)
if imgui.Button("Open Project", buttonSize) then
var.selectedTab = enum_tabType.LevelBiome
if imgui.BeginChild1("LevelBiomeChild", imgui.ImVec2((imgui.GetContentRegionAvail().x - 6), (imgui.GetContentRegionAvail().y - 6)), true) then
drawLevelBiomeLayersList()
var.selectedTab = enum_tabType.LevelBiome
if imgui.BeginChild1("LevelBiomeChild", imgui.ImVec2((imgui.GetContentRegionAvail().x - 6), (imgui.GetContentRegionAvail().y - 6)), true) then
drawLevelBiomeLayersList()
var.selectedTab = enum_tabType.BiomeAreas
if imgui.BeginChild1("BiomeAreasChild", imgui.ImVec2((imgui.GetContentRegionAvail().x - 6), (imgui.GetContentRegionAvail().y - 6)), true) then
drawBiomeAreasLayersList()
var.selectedTab = enum_tabType.BiomeAreas
if imgui.BeginChild1("BiomeAreasChild", imgui.ImVec2((imgui.GetContentRegionAvail().x - 6), (imgui.GetContentRegionAvail().y - 6)), true) then
drawBiomeAreasLayersList()
@/lua/ge/extensions/editor/barriersEditor.lua
local width = im.GetContentRegionAvail().x/2 - 20
im.Columns(3,'tags',false)
@/lua/ge/extensions/editor/missionEditor/genericTypeData.lua
if self._editing then
im.InputTextMultiline("##facEditor", self._text[1], im.GetLengthArrayCharPtr(self._text[1]), im.ImVec2(-1,math.max(im.GetContentRegionAvail().y, 500)))
-- display char limit
@/lua/ge/extensions/editor/gen/exp_meshexplorer.lua
intodae = not intodae
-- local reg = im.GetContentRegionAvail()
-- lo('?? dae_in:'..tostring(reg)..':'..im.GetWindowHeight())
-- imgui.IsItemHovered()
-- imgui.GetContentRegionAvail()
-- imgui.PushStyleColor2
im.NextColumn()
local avail = im.GetContentRegionAvail()
-- im.Columns(#bag4surf, "geoSurf", true)
if beamdata.agpick and #beamdata.agpick == 1 and not inmesh then
avail = im.GetContentRegionAvail()
-- dump(beamdata.agpick[1],'?? cgroup:',nil,2)
-- end
avail = im.GetContentRegionAvail()
-- FOLDERS LIST PANEL
avail = im.GetContentRegionAvail()
if im.BeginListBox(id, im.ImVec2(-1,avail.y-40)) then
im.SameLine()
avail = im.GetContentRegionAvail()
im.SetCursorPosX(im.GetCursorPosX() + avail.x - 42)
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/vePartList.lua
if parts then
local maxTreeHeight = im.GetContentRegionAvail().y - (im.GetStyle().FramePadding.y * 2 + im.GetStyle().ItemInnerSpacing.y + 2 * im.GetStyle().ItemSpacing.y) - 10
if im.BeginChild1("##partList", im.ImVec2(0, maxTreeHeight), false) then
im.GetContentRegionAvail()
if im.BeginTable('##partlisttable', 3, tableFlags) then
@/lua/ge/extensions/gameplay/drift/scoring.lua
plotHelperUtil:setScale(nil, nil, 0, nil)
plotHelperUtil:draw(im.GetContentRegionAvailWidth(), im.GetContentRegionAvail().y, 400)
im.EndChild()
@/lua/ge/extensions/editor/decalEditor.lua
local avail = im.GetContentRegionAvail()
im.PushItemWidth(avail.x)
@/lua/ge/extensions/editor/dynamicDecals/notification.lua
local style = im.GetStyle()
im.BeginChild1("DynamicDecals_Notification_NotificationsChild", im.ImVec2(0, im.GetContentRegionAvail().y - (math.ceil(im.GetFontSize()) + 2*style.ItemSpacing.y)), true)
for sectionName, sectionData in pairs(notifications) do
@/lua/ge/extensions/editor/sitesEditor/sortedListDisplay.lua
function C:drawList()
local avail = im.GetContentRegionAvail()
local disabled = self.selections[2] and true or false
@/lua/ge/extensions/flowgraph/nodes/debug/comment.lua
if self.te then
local avail = im.GetContentRegionAvail()
@/lua/ge/extensions/editor/flowgraph/execution.lua
end
local avail = im.GetContentRegionAvail().x
im.Columns(2)
@/lua/ge/extensions/editor/missionEditor.lua
local filterHeight = im.GetTextLineHeightWithSpacing()
local winHeight = im.GetContentRegionAvail().y - filterHeight
local yOrigin = im.GetCursorPos().y
@/lua/ge/extensions/editor/dynamicDecals/brushes.lua
local spaceAvailable = im.GetContentRegionAvail()
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/veJBeamTableVis.lua
local size = im.GetContentRegionAvail()
plotHelperUtil:draw(size.x-10, size.y-10, dt)
@/lua/ge/extensions/editor/inspector.lua
if imgui.BeginPopupModal(groundCoverUVWindowName, nil) then
local availableSize = imgui.GetContentRegionAvail()
if typeIndex == groundCoverUVTypeIndex then
local availableImageSize = imgui.GetContentRegionAvail()
local imageSize = math.min(availableImageSize.x, availableImageSize.y) - 6*imgui.GetStyle().ChildBorderSize
@/lua/ge/extensions/flowgraph/nodes/gameplay/race/imRaceTimes.lua
local avail = im.GetContentRegionAvail()
--im.BeginChild1("Times", im.ImVec2(avail.x, avail.y/2-5), 0, im.WindowFlags_AlwaysVerticalScrollbar)
@/lua/ge/extensions/editor/raceEditor/timeTrials.lua
local size = im.ImVec2(previewTex.size.x, previewTex.size.y)
local avail = im.GetContentRegionAvail()
if avail.x < size.x and size.x ~= 0 and avail.x ~= 0 then
@/lua/ge/extensions/editor/vehicleEditor/veToolbar.lua
local function staticEditorToolbar()
local width = im.GetContentRegionAvail().x
im.PushStyleColor2(im.Col_MenuBarBg, editor.color.transparent.Value)
local function liveEditorToolbar()
local width = im.GetContentRegionAvail().x
local camTodSize = getCameraTodSlidersSize()
@/lua/ge/extensions/editor/perfProfiler.lua
if editor.beginWindow(chart.chartWindowName, chart.chartWindowName) then
local size = im.GetContentRegionAvail()
im.SetNextItemWidth(size.x)
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/path.lua
-- im.SameLine()
local vertSeparatorHeight = im.GetContentRegionAvail().y
editor.uiVertSeparator(vertSeparatorHeight, im.ImVec2(0,0), 2)
@/lua/ge/extensions/editor/resourceChecker.lua
else
local windowSize = im.GetContentRegionAvail()
im.Text("Manage duplicates of selected material")
itemsList = data
local windowSize = im.GetContentRegionAvail()
im.Text(text)
local p0 = im.GetCursorScreenPos()
local avail = im.GetContentRegionAvail()
local W = math.max(10, avail.x)
local avail = im.GetContentRegionAvail()
local totalH = math.max(100, avail.y)
@/lua/ge/extensions/editor/raceEditor/pathnodes.lua
function C:drawPathnodeList()
local avail = im.GetContentRegionAvail()
im.BeginChild1("keynodes", im.ImVec2(125 * im.uiscale[0], 0 ), im.WindowFlags_ChildWindow)
@/lua/ge/extensions/editor/util/zoneSelectorUtil.lua
-- Use available content region, but ensure minimum height for usability
local availHeight = im.GetContentRegionAvail().y
local initialZonesHeight = math.max(150, math.min(availHeight * 0.5, #e.initialZones * 25 + 30))
-- Use available content region, but ensure minimum height for usability
local availHeight = im.GetContentRegionAvail().y
local destinationZonesHeight = math.max(150, math.min(availHeight * 0.5, #e.destinationZones * 25 + 30))
@/lua/ge/extensions/editor/sceneTree.lua
local maxTreeHeight = imgui.GetContentRegionAvail().y - entrySize - (imgui.GetStyle().FramePadding.y * 2 + imgui.GetStyle().ItemInnerSpacing.y + 2 * imgui.GetStyle().ItemSpacing.y) - 5
@/lua/ge/extensions/editor/sceneView.lua
local availSize = im.GetContentRegionAvail()
@/lua/ge/extensions/editor/util/vehicleFilterUtil.lua
-- Calculate based on content with reasonable min/max bounds
local availHeight = im.GetContentRegionAvail().y
local configListHeight = math.max(200, math.min(availHeight * 0.6, #finalConfigs * 25 + 30))
@/lua/ge/extensions/editor/raceEditor/startPositions.lua
function C:drawStartPositions()
local avail = im.GetContentRegionAvail()
--dumpz(self.path,2)
@/lua/ge/extensions/flowgraph/nodes/gameplay/rally/countdown.lua
if self.data.useImgui then
local avail = im.GetContentRegionAvail()
local txt = " - " .. (math.ceil(old)+1) .. " - "
@/lua/ge/extensions/editor/dynamicDecals/news.lua
im.PopFont()
local availableSpace = im.GetContentRegionAvail()
local style = im.GetStyle()
@/lua/ge/extensions/flowgraph/nodes/types/transform.lua
im.NextColumn()
local columnSize = im.GetContentRegionAvail()
local pos = im.ArrayFloat(3)
@/lua/ge/extensions/editor/raceEditor/testing.lua
local avail = im.GetContentRegionAvail()
im.BeginChild1("Times", im.ImVec2(avail.x, avail.y/2-5), 0, im.WindowFlags_AlwaysVerticalScrollbar)
local avail = im.GetContentRegionAvail()
im.BeginChild1("EventLog", im.ImVec2(avail.x, avail.y-5), 0, im.WindowFlags_AlwaysVerticalScrollbar)
@/lua/ge/extensions/gameplay/drag/debug.lua
im.BeginChild1("vehicle select", im.GetContentRegionAvail(), 1)
im.Text("Vehicle Settings")
im.BeginChild1("vehicle detail", im.GetContentRegionAvail(), 1)
if selectedVehicle and dragData.racers[selectedVehicle] then
@/lua/common/extensions/ui/imgui_custom_luaintf.lua
function M.GetContentRegionAvailWidth()
return M.GetContentRegionAvail().x
end
@/lua/ge/extensions/flowgraph/nodes/ui/imgui/elemental/imText.lua
function C:work()
local avail = im.GetContentRegionAvail()
im.PushTextWrapPos(avail.x)
@/lua/ge/extensions/editor/raceEditor/segments.lua
function C:drawSegmentList()
local avail = im.GetContentRegionAvail()
im.BeginChild1("segments", im.ImVec2(125 * im.uiscale[0], 0), im.WindowFlags_ChildWindow)
@/lua/ge/extensions/editor/vehicleDetailViewer.lua
if view.freeze ~= true then
view.size.x = math.max(1, im.GetContentRegionAvail().x)
view.size.y = math.max(1, im.GetContentRegionAvail().y)
view.size.x = math.max(1, im.GetContentRegionAvail().x)
view.size.y = math.max(1, im.GetContentRegionAvail().y)
renderOrthoView(veh, view)
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
end
function M.GetContentRegionAvail() return imgui.GetContentRegionAvail() end
function M.GetContentRegionMax() return imgui.GetContentRegionMax() end
end
function M.GetContentRegionAvail() return imgui.GetContentRegionAvail() end
function M.GetContentRegionMax() return imgui.GetContentRegionMax() end
@/lua/ge/extensions/editor/flowgraph/properties.lua
local a = im.GetCursorScreenPos()
local b = im.GetContentRegionAvail()
local xx = style.WindowPadding.x
im.NextColumn()
im.PushItemWidth(im.GetContentRegionAvail().x)
if pin.fixed then
im.NextColumn()
im.PushItemWidth(im.GetContentRegionAvail().x)
if pin.fixed then
@/lua/ge/extensions/editor/missionPlaybook.lua
M.drawBookViewer()
im.BeginChild1("elements",im.GetContentRegionAvail(), im.WindowFlags_AlwaysVerticalScrollbar)
im.Columns(2)
@/lua/ge/extensions/editor/dynamicDecals/fonts.lua
local function browserTabGui()
local spaceAvailable = im.GetContentRegionAvail()
im.BeginChild1("BrowserFontsChild", im.ImVec2(0, im.GetContentRegionAvail().y - math.ceil(im.GetFontSize()) - im.GetStyle().ItemSpacing.y), true)
@/lua/ge/extensions/flowgraph/nodes/ui/imgui/elemental/imButton.lua
function C:work()
local avail = im.GetContentRegionAvail()
im.Button(tostring(self.pinIn.text.value or "Button") ..'##'.. tostring(self.id), im.ImVec2(avail.x, 0))
@/lua/ge/extensions/editor/sitesEditor/tags.lua
im.Text(self.tag)
local width = im.GetContentRegionAvail().x/2 - 20
im.Columns(3,'tags',false)
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/veJBeamModifierLeakVis.lua
local cellSize = im.ImVec2(im.GetContentRegionAvail().x + im.GetStyle().CellPadding.x * 2, textHeight)
@/lua/ge/extensions/editor/dynamicDecals/textures.lua
local sel = editor.selection["dynamicDecalTexture"]
local spaceAvailable = im.GetContentRegionAvail()
local function texturesBrowserTabGui()
local spaceAvailable = im.GetContentRegionAvail()
im.BeginChild1("DecalTexturesBrowserChild", im.ImVec2(spaceAvailable.x, spaceAvailable.y - (2 * im.GetStyle().ItemSpacing.y + 1 * math.ceil(im.GetFontSize()))), true)
@/lua/ge/extensions/editor/flowgraph/events.lua
end
local avail = im.GetContentRegionAvail()
im.Columns(3)
@/lua/ge/extensions/editor/missionPlaybook/attributeViewer.lua
end
local size = im.GetContentRegionAvail()
plotHelperUtil:draw(size.x-10, size.y-10, dt)
@/lua/ge/extensions/flowgraph/nodes/gameplay/rally/countdownSynced.lua
local timeUntilStart = self.targetStartTime - currentEpochTime
local avail = im.GetContentRegionAvail()
local txt = string.format("Waiting: %.1fs", timeUntilStart)
local avail = im.GetContentRegionAvail()
local txt = " - " .. (math.ceil(old)+1) .. " - "
@/lua/ge/extensions/editor/camPathEditor.lua
local avail = im.GetContentRegionAvail()
if tableIsEmpty(M.currentPath.markers) then
-- Path parameters window
local avail = im.GetContentRegionAvail()
im.Text('Path Controls')
local avail = im.GetContentRegionAvail()
local buttonSpacing = 5 * im.uiscale[0]
if editor.beginWindow('cameraPathPreviewWindow', 'Camera path preview') then
previewWindowSize = im.GetContentRegionAvail()
local texObj = imUtils.texObj('#cameraPathPreview')
@/lua/ge/extensions/editor/sitesEditor/zones.lua
local avail = im.GetContentRegionAvail()
im.Text("Properties")
@/lua/ge/extensions/editor/dynamicDecals/history.lua
if im.Button("Undo Selected##DynamicDecalsTool") then history:undo(tableSize(history.undoStack) - undoStackSelectedIndex + 1) end
im.BeginChild1("undos", im.ImVec2(0, im.GetContentRegionAvail().y))
for k = tableSize(history.undoStack), 1, -1 do
if im.Button("Redo Selected##DynamicDecalsTool") then history:redo(tableSize(history.redoStack) - redoStackSelectedIndex + 1) end
im.BeginChild1("redos", im.ImVec2(0, im.GetContentRegionAvail().y))
for k = tableSize(history.redoStack), 1, -1 do
@/lua/ge/extensions/editor/renderTest.lua
local availSize = im.GetContentRegionAvail()
@/lua/ge/extensions/editor/sitesEditor/locations.lua
end
local avail = im.GetContentRegionAvail()
end
@/lua/ge/extensions/editor/audioEventsList.lua
im.BeginChild1("##ScrollableGUI", im.ImVec2(0, im.GetContentRegionAvail().y - stopButtonHeight))
-- Render folders and eventsTree
local function renderSearchResultsGui(stopButtonHeight)
im.BeginChild1("##ScrollableGUI", im.ImVec2(0, im.GetContentRegionAvail().y - stopButtonHeight))
if searchResults then
im.SetCursorPosX(im.GetContentRegionAvail().x / 2 - stopButtonSize.x / 2)
if im.Button("Stop Current Sound") then
@/lua/ge/extensions/editor/flowgraph/history.lua
end
local avail = im.GetContentRegionAvail()
im.BeginChild1("historyChild", im.ImVec2(avail.x-1, avail.y - 5))
@/lua/ge/extensions/gameplay/util/crashDetection.lua
plotHelperUtil:setScale(nil, nil, 0, nil)
plotHelperUtil:draw(im.GetContentRegionAvailWidth(), im.GetContentRegionAvail().y, 400)
end
@/lua/ge/extensions/gameplay/drift/drift.lua
plotHelperUtil:setScale(nil, nil, 0, nil)
plotHelperUtil:draw(im.GetContentRegionAvailWidth(), im.GetContentRegionAvail().y, 400)
@/lua/ge/extensions/editor/assetBrowser.lua
-- Either draw a custom popup or make it selectable and show its properties in the inspector.
-- im.SetNextWindowSize(im.ImVec2(0, im.GetContentRegionAvail().y))
im.tooltip(tooltip)
im.SetNextWindowPos(popupPos)
im.SetNextWindowSize(im.ImVec2(100, im.GetContentRegionAvail().y - var.menuBarHeight - var.style.WindowPadding.y - var.inputFieldSize))
if im.BeginPopup("FilterByTypeDropdown") then