IsWindowFocused
Definition
-- @/=[C]:-1
function IsWindowFocused(...)
Callers
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/veStaticRenderView.lua
if im.IsWindowHovered() then hoveredWndID = wndID end
if im.IsWindowFocused() then focusedWndID = wndID end
@/lua/ge/extensions/editor/inspector.lua
end
if not imgui.IsWindowFocused() then
menu.open = false
@/lua/ge/extensions/editor/flowgraph/examples.lua
function C:handleActionMap()
if im.IsWindowFocused(im.FocusedFlags_ChildWindows) then
self.fgEditor.arrowControllableWindow = self
@/lua/ge/extensions/editor/api/valueInspector.lua
if not imgui.IsWindowFocused() then
filenameContextMenu.open = false
if not imgui.IsWindowFocused() then
copyPasteMenu.open = false
imgui.EndChild()
if not imgui.IsWindowFocused(imgui.FocusedFlags_RootAndChildWindows) then
simSetWindowFieldId = nil
imgui.EndChild()
if not comboMenuOpen and not imgui.IsWindowFocused(imgui.FocusedFlags_RootAndChildWindows) then
simSetWindowFieldId = nil
@/lua/ge/extensions/editor/flowgraph/main.lua
--[[if im.IsWindowFocused(im.FocusedFlags_ChildWindows) then
pushActionMap("FlowgraphMain")
--dump(im.GetWindowDrawList())
if not focussed and ((not self.mgr.graph) or (gr.id ~= self.mgr.graph.id)) and im.IsWindowFocused() then
--print("mgr graph " .. dumps(self.mgr.graph and self.mgr.graph.id) .. " vs this graphs id: " .. gr.id .." " .. gr.name)
ui_flowgraph_editor.Begin(self.editorid, im.ImVec2(0, -5), graphReadOnly)
if im.IsWindowFocused() then
if not self.pushedActionMap then
ui_flowgraph_editor.PopStyleColor(1)
--print(im.IsWindowFocused(im.FocusedFlags_ChildWindows))
@/lua/ge/extensions/editor/fileDialog.lua
end
if not im.IsWindowFocused() and not filenameTextInputFocused then
editor.hideWindow(smartSearchItemsWindowName)
end
if not im.IsWindowFocused() then
editor.hideWindow(recentDirsWindowName)
@/lua/ge/extensions/editor/trafficManager.lua
if editor.beginWindow(windows.vehicles.key, windows.vehicles.name) then
if im.IsWindowFocused(im.FocusedFlags_RootAndChildWindows) then activeWindow = "vehicles" end
if editor.beginWindow(windows.lights.key, windows.lights.name) then
if im.IsWindowFocused(im.FocusedFlags_RootAndChildWindows) then activeWindow = "lights" end
if editor.beginWindow(windows.signs.key, windows.signs.name) then
if im.IsWindowFocused(im.FocusedFlags_RootAndChildWindows) then activeWindow = "signs" end
@/lua/ge/extensions/editor/flowgraph/nodelibrary.lua
function C:drawContent(menuPos, usedForContextMenu)
if im.IsWindowFocused(im.FocusedFlags_ChildWindows) then
self.fgEditor.arrowControllableWindow = self
@/lua/ge/extensions/editor/flowgraph/search.lua
function C:handleActionMap()
if im.IsWindowFocused(im.FocusedFlags_ChildWindows) then
self.fgEditor.arrowControllableWindow = self
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
function M.IsWindowCollapsed() return imgui.IsWindowCollapsed() end
function M.IsWindowFocused(ImGuiFocusedFlags_flags)
if ImGuiFocusedFlags_flags == nil then ImGuiFocusedFlags_flags = 0 end
if ImGuiFocusedFlags_flags == nil then ImGuiFocusedFlags_flags = 0 end
return imgui.IsWindowFocused(ImGuiFocusedFlags_flags)
end
@/lua/ge/extensions/editor/flowgraph/basewindow.lua
function C:End()
self.hasFocus = im.IsWindowFocused(im.FocusedFlags_ChildWindows)
editor.endWindow()
@/lua/ge/extensions/editor/flowgraph/garbageDebug.lua
self:handleMeta(entry)
if not im.IsWindowFocused(im.FocusedFlags_RootAndChildWindows) then im.BeginDisabled() end
im.Text("Total")
if not im.IsWindowFocused(im.FocusedFlags_RootAndChildWindows) then im.EndDisabled() end
else
@/lua/ge/extensions/editor/api/gui.lua
if imgui.IsWindowFocused(imgui.FocusedFlags_RootAndChildWindows) then
if not wnd.focused then
@/lua/ge/extensions/editor/gen/world.lua
W.inView = function()
return not (im.IsWindowFocused(im.FocusedFlags_AnyWindow) or im.IsWindowHovered(im.HoveredFlags_AnyWindow) or im.IsAnyItemHovered())
end
if im.IsWindowFocused(im.FocusedFlags_AnyWindow) or im.IsWindowHovered(im.HoveredFlags_AnyWindow) or im.IsAnyItemHovered() then return end
if im.IsWindowFocused(im.FocusedFlags_AnyWindow) or im.IsWindowHovered(im.HoveredFlags_AnyWindow) or im.IsAnyItemHovered() then
else