Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lua/ui/game/gamemain.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ function SetIgnoreSelection(ignore)
import("/lua/ui/game/commandmode.lua").SetIgnoreSelection(ignore)
end

---@return boolean
function IsIgnoredSelection()
return ignoreSelection
end

-- generating hotbuild modifier shortcuts on the fly
modifiersKeys = import("/lua/keymap/keymapper.lua").GenerateHotbuildModifiers()
IN_AddKeyMapTable(modifiersKeys)
Expand Down Expand Up @@ -611,7 +616,7 @@ local upgradeTab = false
---@param removed UserUnit[] Which units where removed from the old selection
function OnSelectionChanged(oldSelection, newSelection, added, removed)

if ignoreSelection then
if IsIgnoredSelection() then
return
end

Expand Down
Loading