Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/input.js
Show First 20 Lines • Show All 233 Lines • ▼ Show 20 Lines | if (ent != INVALID_ENTITY) | ||||
target = ent; | target = ent; | ||||
} | } | ||||
// Decide between the following ordered actions, | // Decide between the following ordered actions, | ||||
// if two actions are possible, the first one is taken | // if two actions are possible, the first one is taken | ||||
// thus the most specific should appear first. | // thus the most specific should appear first. | ||||
let actionInfo = undefined; | let actionInfo = undefined; | ||||
// Disable preselected actions on the minimap because their | if (preSelectedAction != ACTION_NONE) | ||||
// left-click interferes with the minimap left-click anyways. | |||||
if (preSelectedAction != ACTION_NONE && !fromMiniMap) | |||||
{ | { | ||||
for (let action of g_UnitActionsSortedKeys) | for (let action of g_UnitActionsSortedKeys) | ||||
if (g_UnitActions[action].preSelectedActionCheck) | if (g_UnitActions[action].preSelectedActionCheck) | ||||
{ | { | ||||
let r = g_UnitActions[action].preSelectedActionCheck(target, selection); | let r = g_UnitActions[action].preSelectedActionCheck(target, selection); | ||||
if (r) | if (r) | ||||
return r; | return r; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,405 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator