IsMouseReleased
Definition
-- @/lua/common/extensions/ui/imgui_gen_luaintf.lua:1139
function M.IsMouseReleased(ImGuiMouseButton_button) return imgui.IsMouseReleased(ImGuiMouseButton_button) end
Callers
@/lua/ge/extensions/editor/missionStartPositionEditor.lua
-- End dragging
if isSelected and isDragging and im.IsMouseReleased(0) then
isDragging = false
@/lua/ge/extensions/editor/gen/decal.lua
end
if im.IsMouseReleased(0) and (inView() or incontrol) then
if #adec == 0 then
@/lua/ge/extensions/editor/sitesEditor.lua
mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
mouseInfo.up = im.IsMouseReleased(0) and not im.GetIO().WantCaptureMouse
if mouseInfo.down then
@/lua/ge/extensions/editor/dragRaceEditor/utils.lua
mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
mouseInfo.up = im.IsMouseReleased(0) and not im.GetIO().WantCaptureMouse
if mouseInfo.down then
@/lua/ge/extensions/editor/materialEditor.lua
end
if im.IsMouseReleased(0) then
if rayCastInfo.object.___type == "class" then
@/lua/ge/extensions/editor/flowgraph/garbageDebug.lua
im.EndChild()
if im.IsItemHovered() and im.IsMouseReleased(0) then
entry.expanded = not (entry.expanded or false)
@/lua/ge/extensions/editor/gen/terrain.lua
if im.IsMouseReleased(0) then
for key,val in pairs(dval) do
@/lua/ge/extensions/trackbuilder/trackBuilder.lua
local function materialEditor()
if materialSettings.dragging and im.IsMouseReleased(0) then
onDragEnded()
@/lua/ge/extensions/editor/driftDataEditor.lua
mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
mouseInfo.up = im.IsMouseReleased(0) and not im.GetIO().WantCaptureMouse
if mouseInfo.down then
@/lua/ge/extensions/editor/flowgraph/variables.lua
editor.uiIconImageButton(editor.icons.cloud_download, im.ImVec2(24,24))
if im.IsItemHovered() and im.IsMouseReleased(0) and not self.dragPayload then
local bounds = ui_flowgraph_editor.GetVisibleCanvasBounds()
editor.uiIconImageButton(editor.icons.cloud_upload, im.ImVec2(24,24))
if im.IsItemHovered() and im.IsMouseReleased(0) and not self.dragPayload then
local bounds = ui_flowgraph_editor.GetVisibleCanvasBounds()
im.PopStyleVar()
if im.IsItemHovered() and im.IsMouseReleased(0) then
variable.expanded = not variable.expanded
im.ImDrawList_AddLine(im.GetWindowDrawList(), im.ImVec2(im.GetCursorScreenPos().x+10, y-1), im.ImVec2(im.GetCursorScreenPos().x+im.GetContentRegionAvailWidth()-20, y-1), lineColor, 3)
if im.IsMouseReleased(0) then
self.dragPayload.target:changeCustomVariableOrder(self.dragPayload.name, i)
@/lua/ge/extensions/editor/crawlEditor/input.lua
mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
mouseInfo.up = im.IsMouseReleased(0) and not im.GetIO().WantCaptureMouse
if mouseInfo.down then
@/lua/ge/extensions/editor/assetBrowser.lua
if var.dragging == var.dragging_enum.dragging and im.IsMouseReleased(0) then
onDragEnded()
if (var.dragging == var.dragging_enum.drag_ended or var.dragging == var.dragging_enum.no_drag) and im.IsMouseReleased(0) then
var.dragging = var.dragging_enum.no_drag
@/lua/ge/extensions/core/ropeVisualTest.lua
local mousePressed = im.IsMouseClicked(0) -- Left mouse button
local mouseReleased = im.IsMouseReleased(0)
local mouseDown = im.IsMouseDown(0)
@/lua/ge/extensions/editor/roadEditor.lua
-- Mouse button has been released
if mouseButtonHeldOnNode and im.IsMouseReleased(0) then
if editor.keyModifiers.alt then
rectSelectDragMouseStartPos = im.GetMousePos()
elseif isRectSelecting and (not isRectSelectKeyCombinationActive or im.IsMouseReleased(0)) then
isRectSelecting = false
@/lua/ge/extensions/editor/meshEditor.lua
-- Mouse button has been released
if mouseButtonHeldOnNode and im.IsMouseReleased(0) then
mouseButtonHeldOnNode = false
@/lua/ge/extensions/editor/terrainEditor.lua
thisFrameHoveredIndex = index
if im.IsMouseReleased(0) then
reorderMaterial(dragDropPayload, index)
if im.IsMouseReleased(0) then
potentialDragDropPayload = nil
if var.sc_dragId and im.IsMouseReleased(0) then
var.sc_dragId = nil
-- Mouse released.
if im.IsMouseReleased(0) and startDragHeight then
if mouseState == mouseStateEnum.moving or mouseState == mouseStateEnum.down then
@/lua/ge/extensions/flowgraph/nodes/ui/imgui/elemental/imButton.lua
local hold = im.IsMouseDown(0)
local up = im.IsMouseReleased(0)
if (down or hold or up) then
@/lua/ge/extensions/editor/gen/exp_meshexplorer.lua
end
elseif im.IsMouseReleased(0) then
if incontrol and incontrol[2] then
@/lua/ge/extensions/editor/gen/region.lua
out.apick = {cpoint}
elseif rayCast and im.IsMouseReleased(0) then
-- lo('?? R.upd:'..tostring(rayCast.object.name))
@/lua/ge/extensions/editor/rallyEditor.lua
mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
mouseInfo.up = im.IsMouseReleased(0) and not im.GetIO().WantCaptureMouse
if mouseInfo.down then
@/lua/ge/extensions/editor/gen/world.lua
if im.IsMouseReleased(0) then
-- lo('?? if_interr:'..tostring(out.interr))
--[[
if im.IsMouseReleased(0) then
lo('?? W_mup:')
@/lua/ge/extensions/editor/trafficManager.lua
debugDrawer:drawSquarePrism(anchorPos, anchorPos + tempVec, Point2F(0.3, 0.5), Point2F(0.3, 0), debugColors.guide)
if im.IsMouseReleased(0) then
isDragging = false
@/lua/ge/extensions/editor/biomeTool.lua
end
if var.mouseButtonHeldOnLassoNode and imgui.IsMouseReleased(0) then
var.mouseButtonHeldOnLassoNode = false
@/lua/ge/extensions/editor/audioEventsList.lua
if selectableHovered then
if im.IsMouseReleased(0) then
-- Stop previous sound
end
elseif im.IsMouseReleased(1) then
im.OpenPopup("rightClickPopupMenu" .. event.id)
@/lua/ge/extensions/editor/api/gui.lua
if onRelease then
if imgui.IsItemHovered() and imgui.IsMouseReleased(0) and not imgui.IsMouseDragging(0) then
return true
if onRelease then
if imgui.IsItemHovered() and imgui.IsMouseReleased(0) and not imgui.IsMouseDragging(0) then
return true
@/lua/ge/extensions/editor/sceneTree.lua
local parent = scenetree.findObjectById(node.parent.id)
if imgui.IsMouseReleased(0) and parent and not node.parent.selected and not isGroupChildOfSelection(instance, parent) then
local objects = {}
elseif selectableHovered then
if imgui.IsMouseReleased(0) then
if node.isGroup and not node.hidden and not disableHoverColor then
end
if imgui.IsMouseReleased(1) then
imgui.OpenPopup("##sceneItemPopupMenu"..node.id)
if triggerOnRelease then
if imgui.IsMouseReleased(0) and not imgui.IsMouseDragging(0) then
return true
if imgui.IsMouseReleased(0) and instance.mouseDragStartPos then
if not hasDragDropPayload then
if imgui.IsMouseReleased(0) then
onClickSelected = false
selectedNodeTextColor = imgui.ImColorByRGB(0,255,255,150)
if imgui.IsMouseReleased(0) then
selectedNodeTextColor = imgui.ImColorByRGB(0,255,255,255)
@/lua/ge/extensions/editor/flowgraph/main.lua
if self.mgr.dragging and im.IsMouseReleased(0) then
if self:isMouseHovering() then
if (bit.band(tonumber(ui_flowgraph_editor.GetDirtyReason()), ui_flowgraph_editor.Dirty_Position) ~= 0) then --and im.IsMouseReleased(0) then
if self.mgr._ignoreMove then
@/lua/ge/extensions/editor/forestEditor.lua
if im.IsMouseReleased(0) then
if var.selectedTool.label == "erase" or var.selectedTool.label == "eraseSelected" then
if im.IsMouseReleased(0) then
var.mouseButtonHeldOnLassoNode = false
if im.IsMouseReleased(0) then
var.mouseButtonHeldOnLassoNode = false
if im.IsMouseReleased(0) then
if getLassoNodeUnderCursor() then
if im.IsMouseReleased(0) then
if mouseDragStartPos and isMouseDragging then
@/lua/ge/extensions/editor/util/editorElementHelper.lua
self.mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
self.mouseInfo.up = im.IsMouseReleased(0) and not im.GetIO().WantCaptureMouse
if self.mouseInfo.down then
@/lua/ge/extensions/util/vehicleRopeDebug.lua
local mousePressed = im.IsMouseClicked(0) -- Left mouse button
local mouseReleased = im.IsMouseReleased(0)
local mouseDown = im.IsMouseDown(0)
@/lua/ge/extensions/editor/objectTool.lua
-- selecting objects
if imgui.IsMouseReleased(0)
and (res or objectIdByIconClick)
if not doingRectSelection
and imgui.IsMouseReleased(0)
and not imgui.GetIO().WantCaptureMouse
if clickedHoveredObject and imgui.IsMouseReleased(0) then
clickedHoveredObject = false
if mouseDragStartPos and doingRectSelection and imgui.IsMouseReleased(0) and not imgui.GetIO().WantCaptureMouse then
mouseDragStartPos = nil
-- just nil the mouse drag start position if we released the mouse (and not started to rect select)
if mouseDragStartPos and imgui.IsMouseReleased(0) then
mouseDragStartPos = nil
@/lua/ge/extensions/editor/buildingEditor.lua
end
if im.IsMouseReleased(0) then
if false and W.mup(cameraMouseRayCast(true), {R = R, D = D}) then
@/lua/ge/extensions/gameplay/missions/missionTypes/editorHelper.lua
self.mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
self.mouseInfo.up = im.IsMouseReleased(0) and not im.GetIO().WantCaptureMouse
if self.mouseInfo.down then
@/lua/ge/extensions/editor/raceEditor.lua
mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
mouseInfo.up = im.IsMouseReleased(0) and not im.GetIO().WantCaptureMouse
if mouseInfo.down then
@/lua/ge/extensions/editor/gen/exp_frame.lua
if im.IsMouseReleased(0) and inview and rayCast then
lo('?? mDOWN:'..tostring(rayCast.pos)..':'..tostring(_dbg))
@/lua/ge/extensions/editor/slotTrafficEditor.lua
if im.IsMouseReleased(0) then
@/lua/ge/extensions/editor/gen/exp_solidflex.lua
end
if im.IsMouseReleased(0) and inview then
-- lo('?? rel_CP:'..tostring(cpick)..':'..tostring(cvneigh))
end
if im.IsMouseReleased(1) then
focus = nil
@/lua/ge/extensions/editor/dynamicDecals/layerStack.lua
if dragging and im.IsMouseReleased(0) then
dragging = false
@/lua/ge/extensions/core/vehicleTriggers.lua
end
if im.IsItemHovered() and im.IsMouseReleased(0) then
local actionsExecuted = executeLink(vData.vdata, lnk, 0, vehId)
end
if im.IsItemHovered() and im.IsMouseReleased(0) then
local actionsExecuted = executeLink(vData.vdata, lnk, 0, vehId)
end
if im.IsItemHovered() and im.IsMouseReleased(0) and evt.onUp then
queueCmd(vehId, evt.onUp)
end
if im.IsItemHovered() and im.IsMouseReleased(0) then
local actionsExecuted = executeLink(vData.vdata, lnk, 0, vehId)
end
if im.IsItemHovered() and im.IsMouseReleased(0) then
local actionsExecuted = executeLink(vData.vdata, lnk, 0, vehId)
@/lua/ge/extensions/editor/inspector.lua
end
if imgui.IsMouseReleased(0) then
draggingGCUVHandleSq = nil