GE Lua Documentation

Press F to search!

IsItemClicked

Definition


-- @/=[C]:-1
function IsItemClicked(...)

Callers

@/lua/ge/extensions/editor/perfProfiler.lua
        im.EndChild()
        if im.IsItemClicked() then
          columns[result.id].enabled = not columns[result.id].enabled
        im.EndChild()
        if im.IsItemClicked() then
          column.enabled = not column.enabled
@/lua/ge/extensions/editor/flowgraph/execution.lua
    im.Text(mgr.name)
    if im.IsItemClicked() then
      self.fgEditor.setManager(mgr)
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/vePartList.lua
              if im.IsItemHovered() then
                if im.IsItemClicked(0) then
                  selectPart(partName)
                  selectPart(partName)
                elseif im.IsItemClicked(1) then
                  im.OpenPopup('part_context_menu')
@/lua/ge/extensions/editor/terrainEditor.lua

              if editor.IsItemClicked() then
                selectPaintMaterial(matProxy)
@/lua/ge/extensions/editor/assetBrowser.lua
  if contextMenu == true then
    if im.IsItemHovered() and im.IsItemClicked(1) then
      im.OpenPopup("Popup_Filter_" .. item.label)
  im.PopStyleColor(2)
  if im.IsItemClicked(1) then
    selectDirectory(dir, nil, nil, true)
    im.PopStyleColor((dir.selectedInABView == true) and 2 or 1)
    if im.IsItemClicked(0) then
      selectAsset(dir)
      selectAsset(dir)
    elseif im.IsItemClicked(1) then
      selectAsset(dir)
    end
    if im.IsItemClicked(0) then
      selectAsset(dir)
      selectAsset(dir)
    elseif im.IsItemClicked(1) then
      im.OpenPopup("Popup_" .. dir.path)

    if im.IsItemClicked(0) then
      selectAsset(set)
      selectAsset(set)
    elseif im.IsItemClicked(1) then
      im.OpenPopup("Popup_" .. set.dir.path .. "_" .. set.name)
    end
    if im.IsItemClicked(0) then
      selectAsset(set)
      selectAsset(set)
    elseif im.IsItemClicked(1) then
      im.OpenPopup("Popup_" .. set.dir.path .. "_" .. set.name)

    if im.IsItemClicked(0) then
      selectAsset(material)
      selectAsset(material)
    elseif im.IsItemClicked(1) then
      im.OpenPopup("ContextMenu_Material_" .. tostring(material.id))

    if im.IsItemClicked(0) then
      selectAsset(file)
      selectAsset(file)
    elseif im.IsItemClicked(1) then
      im.OpenPopup("Popup_" .. file.path .. "_" .. file.fullFileName)

  if im.IsItemClicked(1) and var.assetHovered == false then
    im.OpenPopup("Popup_" .. var.selectedDirectory.path)

  if im.IsItemClicked(1) then
    open_popup_rmb = true
@/lua/ge/extensions/editor/flowgraph/examples.lua
function C:manageClick(result)
  local doClick = im.IsItemClicked() or (self.buttonListIndex == self.selectedButtonListIndex and self.doClick)
  if doClick then
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/vePartTextView.lua
    )
    --if im.IsItemClicked(0) then
    --  node[1] = 'string'
@/lua/ge/extensions/editor/missionEditor.lua
  end
  if im.IsItemClicked() then
    if clickedMission == missionData then
            im.HeaderText("Issues: "..shownMission._issueList.importantCount)
            if im.IsItemClicked() then
              showWindows.issuesWindow = not showWindows.issuesWindow
          im.HeaderText("General Info")
          if im.IsItemClicked() then
            showWindows.generalWindows = not showWindows.generalWindows
          im.HeaderText("Additional Info")
          if im.IsItemClicked() then
            showWindows.additionalWindows = not showWindows.additionalWindows
          im.HeaderText("Setup Modules")
          if im.IsItemClicked() then
            showWindows.setupModulesWindows = not showWindows.setupModulesWindows
          im.HeaderText("Mission Type Data")
          if im.IsItemClicked() then
            showWindows.missionTypeWindows = not showWindows.missionTypeWindows
@/lua/ge/extensions/editor/decalEditor.lua
        end
        if im.IsItemClicked() then
          clickedOnInstance(instance)
      end
      if im.IsItemClicked() then
        clearTemplateSelection()
@/lua/ge/extensions/editor/dynamicDecals/brushes.lua
        end
        if im.IsItemClicked(1) then
          brushContextModal_brushId = k
@/lua/ge/extensions/editor/flowgraph/overview.lua

  selectThisGraph = selectThisGraph or im.IsItemClicked()
  im.TextColored(ui_flowgraph_editor.getGraphTypes()[graph.type].color, "[" .. graphTypeStr .. "]")
  selectThisGraph = selectThisGraph or im.IsItemClicked()
  --im.SameLine()
  --im.TextColored(im.ImVec4(1,0.6,0,1), '[' .. tostring(tableSize(graph.nodes)) .. ']')
  --selectThisGraph = selectThisGraph or im.IsItemClicked()
          im.Selectable1(txt)
          if im.IsItemClicked() then clicked = true end
          im.SameLine()

          if im.IsItemClicked() or clicked then
            self.mgr:selectGraph(node.graph)
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veView.lua

  if im.IsItemClicked(1) then
    im.OpenPopup('viewcontrol' .. tostring(sceneViewName))
@/lua/ge/extensions/editor/levelValidator.lua
          im.PopStyleColor()
          if editor.IsItemClicked() then
            selected = i
            end
            if editor.IsItemClicked() then -- Need to use isItemClicked because the im.Button doesnt always work on top of the im.Selectable
              if logItem.forestItem then
                end
                if editor.IsItemClicked() then
                  setLogItemIgnored(logItem, false)
                end
                if editor.IsItemClicked() then
                  setLogItemIgnored(logItem, true)
              end
              if editor.IsItemClicked() then
                setLogItemIgnored(logItem, false)
              end
              if editor.IsItemClicked() then
                setLogItemIgnored(logItem, true)
@/lua/ge/extensions/editor/fileDialog.lua
          end
          if im.IsItemClicked(1) then
            im.OpenPopup("ColumnContextMenu")
@/lua/ge/extensions/editor/vehicleDetailViewer.lua
    im.TextUnformatted(view.statusMessage)
    if im.IsItemClicked(0) then
      view.statusMessage = nil
        handleImageInput(view) -- must come directly after the image
        if im.IsItemClicked(1) then
          im.OpenPopup('VDV_VIEW_POPUP')
@/lua/ge/extensions/editor/flowgraph/main.lua
              im.SameLine()
              local isClicked, isHovered = im.IsItemClicked(), im.IsItemHovered()
              local itemSize = im.GetItemRectSize()
              editor.uiIconImage(editor.icons.navigate_next, im.ImVec2(20,20))
              if im.IsItemClicked() then
                im.OpenPopup("FG_SiblingGraphs")
              im.Text(string.format("Lows: %d/%d | Highs: %d", self.mgr.__graphNodeOffset or 0, self.mgr.__nextFreeGraphNodeStart or 0, -1*((2^29) - (self.mgr.__nextFreePinLinkStart or 2^29))))
              if im.IsItemClicked() then
                local nIds, boxes = {}, {}
        im.EndGroup()
        if im.IsItemClicked() then
          if action == 'remove' then
@/lua/common/extensions/ui/imguiUtils.lua
  end
  if itemsRMB and imgui.IsItemClicked(1) then
    open_popup_rmb = true
    imgui.Text(formatString, sampledVal)
    if imgui.IsItemClicked(1) then
     self:reset()
    end
    --[[if imgui.IsItemClicked(0) then
     flag = not flag
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
function M.IsItemFocused() return imgui.IsItemFocused() end
function M.IsItemClicked(ImGuiMouseButton_mouse_button)
  if ImGuiMouseButton_mouse_button == nil then ImGuiMouseButton_mouse_button = 0 end
  if ImGuiMouseButton_mouse_button == nil then ImGuiMouseButton_mouse_button = 0 end
  return imgui.IsItemClicked(ImGuiMouseButton_mouse_button)
end
@/lua/ge/extensions/editor/flowgraph/variables.lua
  editor.uiIconImageButton(editor.icons.reorder, im.ImVec2(24,24), self.dragPayload and self.dragPayload.name == varName and self.dragPayload.target.id == target.id and highlightColor or nil)
  if im.IsItemHovered() and im.IsItemClicked() then
    self.dragPayload = {target = target, name = varName}
@/lua/common/extensions/ui/flowgraph/editor.lua
        end
        if im.IsItemClicked() then
          im.CloseCurrentPopup()
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/veJBeamModifierLeakVis.lua
              end
              if im.IsItemClicked(1) then
                vEditor.selectedPart = partName
@/lua/ge/extensions/editor/dynamicDecals/textures.lua

      if im.IsItemClicked(1) then
        contextMenuTexturePath = filePath
@/lua/ge/extensions/editor/util/searchUtil.lua

      if im.IsItemClicked() then
        ret = result.id
@/lua/ge/extensions/editor/resourceChecker.lua
      if im.IsItemHovered() then hovered = r end
      if im.IsItemClicked(0) then assetTreemapState.selectedPath = path end
      if im.IsItemHovered() and im.IsMouseDoubleClicked(0) then explorePath(path) end
    if n.isDir then open = im.TreeNodeEx1(n.path, flags, label) else im.TreeNodeEx1(n.path, flags, label) end
    if im.IsItemClicked(0) then assetTreemapState.selectedPath = n.path end
    if im.IsItemHovered() and im.IsMouseDoubleClicked(0) then explorePath(n.path) end
@/lua/ge/extensions/editor/missionEditor/objectives.lua
    im.TextColored(grayColor, self:getStarLabel(key))
    toggle = im.IsItemClicked() or toggle
@/lua/ge/extensions/editor/missionEditor/additionalAttributes.lua
      im.tooltip("Click to remove")
      if im.IsItemClicked() then remIdx = i end
    end
@/lua/ge/extensions/editor/flowgraph/search.lua
function C:manageClick(result)
  local doClick = im.IsItemClicked() or (self.buttonListIndex == self.selectedButtonListIndex and self.doClick)
  if doClick then
@/lua/ge/extensions/gameplay/race/race.lua
  end
  if im.IsItemClicked(0) then
    ret = true
@/lua/ge/extensions/editor/gen/exp_meshexplorer.lua
                                im.Text(v.name or 'NONE')
                                if im.IsItemClicked() then
                                    W.onVal('lod_up',k)
                                UI.check('','jpart_pick',v.sel)
                                if im.IsItemClicked() then
--                                    v.sel = not v.sel
                                end
                                if im.IsItemClicked() then
--                                    W.onVal('jpart_pick',v.key)
    --[[
                                if im.IsItemClicked() and k ~= env.ui['geo_up'] then
                                    v.sel = not v.sel
                                end
                                if im.IsItemClicked() then --and k ~= env.ui['geo_up'] then
                                        lo('?? if_SEL:'..tostring(v.sel))
                                end
                                if im.IsItemClicked() then
                                    djoint = {}
                                            im.Unindent(-8)
                                            if im.IsItemClicked() then
                                                b.sel = not b.sel
                                    end
                                    if im.IsItemClicked() then
                                        -- to path
    --                                        im.Text('>')
                                            if im.IsItemClicked() then
                                            end
                                            UI.check('','part_pick',fbag[i].sel)
                                            if im.IsItemClicked() then
                                                    lo('?? surf_PICK:')
                                        end
                                        if im.IsItemClicked() then
                                            W.onVal('piece_up',k)
                                    end
                                    if im.IsItemClicked(0) then
                                        lo('?? click')
                            im.Text(v)
                            if im.IsItemClicked() then
                                W.onVal('model_up', k)
                                end
                                if im.IsItemClicked() then
                                    djoint = {}
                                end
                                if im.IsItemClicked() then
                                    W.onVal('geo_up', k)
@/lua/ge/extensions/editor/raceEditor/timeTrials.lua
  end
  if im.IsItemClicked() then
    self:findPreview()
@/lua/ge/extensions/editor/gen/lib/ui.lua

--            if im.IsItemClicked() then
--                lo('?? hCLICK2:')
--[[
        if im.IsItemClicked() then
            lo('?? hCLICK:')
    end
    if im.IsItemClicked() then
        lo('?? t_CLICK:'..im.TableGetColumnIndex())
@/lua/ge/extensions/editor/sceneView.lua
      end
      if im.IsItemClicked(1) then
        im.OpenPopup('viewcontrol' .. tostring(sceneViewName))
@/lua/ge/extensions/editor/flowgraph/properties.lua
          editor.uiIconImage(editor.icons.visibility_off, im.ImVec2(24, 24), im.ImVec4(0.3, 0.3, 0.3, 1))
          if im.IsItemClicked() and self.mgr.allowEditing then
            pin.hidden = false
          editor.uiIconImage(editor.icons.visibility, im.ImVec2(24, 24), ui_flowgraph_editor.getTypeColor(pin.type))
          if im.IsItemClicked() and self.mgr.allowEditing and not firstLink then
            pin.hidden = true
          editor.uiIconImage(editor.icons.lock_outline, im.ImVec2(24, 24), ui_flowgraph_editor.getTypeColor(pin.type))
          if im.IsItemClicked() and self.mgr.allowEditing then
              item:_setHardcodedDummyInputPin(pin, nil)
          self.mgr:DrawTypeIcon(pin:getTypeWithImpulseAndChain(), firstLink ~= nil, 1, nil, (constValue ~= nil) and im.ImVec4(0,0,1,1) or nil)
          if im.IsItemClicked() and self.mgr.allowEditing and not firstLink and pin.type ~= 'table' then
            item:_setHardcodedDummyInputPin(pin, pin.defaultValue or fg_utils.getDefaultValueForType(pin.type), pin.defaultHardCodeType)
          editor.uiIconImage(editor.icons.visibility_off, im.ImVec2(24, 24), im.ImVec4(0.3, 0.3, 0.3, 1))
          if im.IsItemClicked() and self.mgr.allowEditing then
            pin.hidden = false
          editor.uiIconImage(editor.icons.visibility, im.ImVec2(24, 24), ui_flowgraph_editor.getTypeColor(pin.type))
          if im.IsItemClicked() and self.mgr.allowEditing and not firstLink then
            pin.hidden = true
          editor.uiIconImage(editor.icons.visibility_off, im.ImVec2(24, 24), im.ImVec4(0.3, 0.3, 0.3, 1))
          if im.IsItemClicked() and self.mgr.allowEditing then
            pin.hidden = false
          editor.uiIconImage(editor.icons.visibility, im.ImVec2(24, 24), ui_flowgraph_editor.getTypeColor(pin.type))
          if im.IsItemClicked() and self.mgr.allowEditing and not firstLink then
            pin.hidden = true
          editor.uiIconImage(editor.icons.lock_outline, im.ImVec2(24, 24), ui_flowgraph_editor.getTypeColor(pin.type))
          if im.IsItemClicked() and self.mgr.allowEditing then
              item:_setHardcodedDummyInputPin(pin, nil)
          self.mgr:DrawTypeIcon(pin:getTypeWithImpulseAndChain(), firstLink ~= nil, 1, nil, (constValue ~= nil) and im.ImVec4(0,0,1,1) or nil)
          if im.IsItemClicked() and self.mgr.allowEditing and not firstLink and pin.type ~= 'table' then
            item:_setHardcodedDummyInputPin(pin, pin.defaultValue or fg_utils.getDefaultValueForType(pin.type), pin.defaultHardCodeType)
          editor.uiIconImage(editor.icons.visibility_off, im.ImVec2(24, 24), im.ImVec4(0.3, 0.3, 0.3, 1))
          if im.IsItemClicked() and self.mgr.allowEditing then
            pin.hidden = false
          editor.uiIconImage(editor.icons.visibility, im.ImVec2(24, 24), ui_flowgraph_editor.getTypeColor(pin.type))
          if im.IsItemClicked() and self.mgr.allowEditing and not firstLink then
            pin.hidden = true
      im.Text(c.name)
      if im.IsItemClicked() then
        graph.mgr:selectGraph(c)
@/lua/ge/extensions/editor/missionPlaybook.lua
        im.TextColored(grayColor, translateLanguage(mission.starLabels[key],mission.starLabels[key], true))
        toggle = im.IsItemClicked() or toggle
        if toggle then
@/lua/ge/extensions/editor/flowgraph/history.lua
        im.TextColored(disabledColor,tostring(i))
        if im.IsItemClicked() then goToHistory = i end
        im.NextColumn()
        im.PopStyleColor()
        if im.IsItemClicked() then goToHistory = i end
        im.NextColumn()
        im.Text('>' .. tostring(i))
        if im.IsItemClicked() then goToHistory = i end
        im.NextColumn()
        im.TextWrapped(self.mgr.history[i].title)
        if im.IsItemClicked() then goToHistory = i end
        im.NextColumn()
        im.Text(tostring(i))
        if im.IsItemClicked() then goToHistory = i end
        im.NextColumn()
        im.TextWrapped(self.mgr.history[i].title)
        if im.IsItemClicked() then goToHistory = i end
        im.NextColumn()
@/lua/ge/extensions/editor/api/gui.lua
    else
      if imgui.IsItemClicked(0) then return true end
    end
    else
      if imgui.IsItemClicked(0) then return true end
    end
  imgui.Button(string.format("Metal: %0.1f | Rough: %0.1f | Coat: %0.1f | CoatRough: %0.1f", col.pbr[1][0], col.pbr[2][0], col.pbr[3][0], col.pbr[4][0]))
  if imgui.IsItemClicked() then
    imgui.OpenPopup(label..'##colorEdit8')

local function IsItemClicked(int_mouse_button)
  if not int_mouse_button then int_mouse_button = 0 end
@/lua/ge/extensions/editor/biomeTool.lua
    end
    if imgui.IsItemClicked() then
      if not isLayerSelected(layer) then
@/lua/ge/extensions/editor/dataBlockEditor.lua
                    im.TreePop()
                    if im.IsItemClicked() then
                      editor.selectObjectById(dataBlock:getID())
              im.TreePop()
              if im.IsItemClicked() then
                editor.showWindow(createDataBlockWindowName)
@/lua/ge/extensions/flowgraph/nodes/logic/flowSwitch.lua
  editor.uiIconImage(iconImage, im.ImVec2(32, 32))
  if im.IsItemClicked() then
    self.on = not self.on
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/veStaticRenderView.lua
  _drawContextMenu(wndID)
  if im.IsItemClicked(1) then
    im.OpenPopup('viewcontrol' .. tostring(wndData.wndName))
@/lua/ge/extensions/flowgraph/pin.lua
  self._hoverPos = im.GetCursorPos()
  if im.IsItemClicked() then
    ui_flowgraph_editor.ClearSelection()
@/lua/ge/extensions/flowgraph/nodes/input/blacklistAction.lua
        im.EndChild()
        if im.IsItemClicked() then
          listKeys[result.id] = not listKeys[result.id]
          im.EndChild()
          if clk or im.IsItemClicked() then
            listKeys[name] = not listKeys[name]
@/lua/ge/extensions/editor/dynamicDecals/layerStack.lua
    end
    if im.IsItemClicked(1) then
      im.OpenPopup(layerMaskContextMenuPopupName)
    end
    if im.IsItemClicked(1) then
      im.OpenPopup(layerMaskContextMenuPopupName)
    im.tooltip("RMB to open layer mask context menu")
    if im.IsItemClicked(1) then
      im.OpenPopup(layerMaskContextMenuPopupName)
@/lua/ge/extensions/editor/forestEditor.lua

  if im.IsItemClicked(1) then
    im.OpenPopup(popupId)