IsItemActive
Definition
-- @/=[C]:-1
function IsItemActive(...)
Callers
@/lua/ge/extensions/editor/mainToolbar.lua
-- Handle focus loss or Escape to cancel editing
if not im.IsItemActive() and (im.IsMouseClicked(0) or im.IsKeyPressed(im.Key_Escape)) then
finishEditingSetName()
@/lua/ge/extensions/editor/biomeTool.lua
imgui.InvisibleButton("SeparatorButtonLBToolbar", imgui.ImVec2(imgui.GetContentRegionAvail().x, seperatorHeight))
if imgui.IsItemActive() then
if imgui.GetIO().MouseDelta.y ~= 0 and imgui.IsMouseDown(0)then
end
if imgui.IsItemActive() or imgui.IsItemHovered() then
imgui.SetMouseCursor(3)
imgui.InvisibleButton("SeparatorButtonLBLevels", imgui.ImVec2(imgui.GetContentRegionAvail().x, seperatorHeight))
if imgui.IsItemActive() then
if imgui.GetIO().MouseDelta.y ~= 0 and imgui.IsMouseDown(0)then
end
if imgui.IsItemActive() or imgui.IsItemHovered() then
imgui.SetMouseCursor(3)
imgui.InvisibleButton("SeparatorButtonLBLevelsProps", imgui.ImVec2(imgui.GetContentRegionAvail().x, seperatorHeight))
if imgui.IsItemActive() then
if imgui.GetIO().MouseDelta.y ~= 0 and imgui.IsMouseDown(0)then
end
if imgui.IsItemActive() or imgui.IsItemHovered() then
imgui.SetMouseCursor(3)
imgui.InvisibleButton("SeparatorButtonLBToolbar", imgui.ImVec2(imgui.GetContentRegionAvail().x, seperatorHeight))
if imgui.IsItemActive() then
if imgui.GetIO().MouseDelta.y ~= 0 and imgui.IsMouseDown(0)then
end
if imgui.IsItemActive() or imgui.IsItemHovered() then
imgui.SetMouseCursor(3)
imgui.InvisibleButton("SeparatorButtonALLevels", imgui.ImVec2(imgui.GetContentRegionAvail().x, seperatorHeight))
if imgui.IsItemActive() then
if imgui.GetIO().MouseDelta.y ~= 0 and imgui.IsMouseDown(0)then
end
if imgui.IsItemActive() or imgui.IsItemHovered() then
imgui.SetMouseCursor(3)
imgui.InvisibleButton("SeparatorButtonALLevelsProps", imgui.ImVec2(imgui.GetContentRegionAvail().x, seperatorHeight))
if imgui.IsItemActive() then
if imgui.GetIO().MouseDelta.y ~= 0 and imgui.IsMouseDown(0)then
end
if imgui.IsItemActive() or imgui.IsItemHovered() then
imgui.SetMouseCursor(3)
@/lua/ge/extensions/editor/decalSpline.lua
im.tooltip('Edit the decal spline name.')
if im.IsItemActive() then
selectedSplineIdx = i
@/lua/ge/extensions/editor/sidewalkSpline.lua
im.tooltip('Edit the sidewalk spline name.')
if im.IsItemActive() then
selectedSplineIdx = i
@/lua/ge/extensions/flowgraph/nodes/types/string.lua
end
if im.IsItemActive() then
self._active = true
@/lua/ge/extensions/editor/resourceChecker.lua
local hovered = im.IsItemHovered()
local active = im.IsItemActive()
if hovered and im.SetMouseCursor then
@/lua/ge/extensions/editor/drivePathEditor.lua
im.tooltip('Edit the drive path spline name.')
if im.IsItemActive() then
selectedSplineIdx = i
im.tooltip('Select this vehicle.')
if im.IsItemActive() then
selectedVehicleIdx = i
@/lua/ge/extensions/editor/createObjectTool.lua
if (imgui.IsItemActive()) then
focusTextInput = false
@/lua/ge/extensions/editor/meshSpline.lua
im.tooltip('Edit the mesh spline name.')
if im.IsItemActive() then
selectedSplineIdx = i
@/lua/ge/extensions/editor/audioRibbonEditor.lua
im.tooltip('Edit the name of this ribbon.')
if im.IsItemActive() then
selectedRibbonIdx = i
@/lua/ge/extensions/editor/flowgraph/nodelibrary.lua
if (im.IsItemActive()) then
self.focusTextInput = false
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
end
function M.IsItemActive() return imgui.IsItemActive() end
function M.IsItemFocused() return imgui.IsItemFocused() end
end
function M.IsItemActive() return imgui.IsItemActive() end
function M.IsItemFocused() return imgui.IsItemFocused() end
@/lua/ge/extensions/editor/assemblySpline.lua
im.tooltip('Edit the assembly spline name.')
if im.IsItemActive() then
selectedSplineIdx = i
@/lua/ge/extensions/editor/sceneTree.lua
editor.uiInputText("", inputTextValue, imgui.ArraySize(inputTextValue), imgui.InputTextFlags_AutoSelectAll, nil, nil, editEnded)
if editEnded[0] or (not imgui.IsItemActive() and not node.setFocus) then
local newName = ffi.string(inputTextValue)
@/lua/ge/extensions/editor/masterSpline.lua
end
if im.IsItemActive() then
selectedSplineIdx = i
im.tooltip('Edit the layer name.')
if im.IsItemActive() then
selectedLayerIdx = i
@/lua/ge/extensions/editor/fileDialog.lua
end
if im.IsItemActive() then
local width = im.CalcItemWidth()
@/lua/ge/extensions/editor/roadSpline.lua
im.tooltip('Edit the road spline name.')
if im.IsItemActive() then
selectedGroupIdx = i
im.tooltip('Edit the layer name.')
if im.IsItemActive() then
selectedLayerId = layer.id