GetWindowContentRegionWidth
Definition
-- @/lua/common/extensions/ui/imgui_custom_luaintf.lua:380
function M.GetWindowContentRegionWidth()
return imgui.GetWindowContentRegionMax().x - imgui.GetWindowContentRegionMin().x
end
Callers
@/lua/ge/extensions/editor/trafficDebug.lua
im.BeginChild1("Action Logs##trafficDebug", im.ImVec2(im.GetWindowContentRegionWidth(), 200), true, im.WindowFlags_None)
if logs[currVeh.id] then
@/lua/ge/extensions/editor/terrainMaterialsEditor.lua
im.SameLine()
im.PushItemWidth(im.GetWindowContentRegionWidth() - (widthMod or 0))
if im.InputText("##MaterialNameInput", terrainMtlCopyProxy.nameInput, nil, im.flags(im.InputTextFlags_CharsNoBlank)) then
@/lua/ge/extensions/editor/missionEditor.lua
-- mission details ----
local areaWidth = im.GetWindowContentRegionWidth() - im.GetCursorPos().x + 15
im.BeginChild1("missionDetails", im.ImVec2(areaWidth, winHeight-45), false, 0)
M.lastTabItemShown = 'Setup Modules'
local areaWidth = im.GetWindowContentRegionWidth() - im.GetCursorPos().x + 15
im.BeginChild1("missionDetails", im.ImVec2(areaWidth, winHeight-45), false, 0)
M.lastTabItemShown = 'Mission Type Data'
local areaWidth = im.GetWindowContentRegionWidth() - im.GetCursorPos().x + 15
im.BeginChild1("missionDetails", im.ImVec2(areaWidth, winHeight-45), false, 0)
M.lastTabItemShown = tab.tabName
local areaWidth = im.GetWindowContentRegionWidth() - im.GetCursorPos().x
im.BeginChild1(tab.tabName.."windowhild", im.ImVec2(areaWidth, winHeight-45), false, 0)
@/lua/ge/extensions/gameplay/drift/stuntZones.lua
if im.BeginChild1("Stunt zones", im.ImVec2(im.GetWindowContentRegionWidth(), 150)) then
for _, stuntZone in ipairs(stuntZones) do