Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/selection_panels_helpers.js
Show First 20 Lines • Show All 266 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* Called by GUI when user clicks a research button. | * Called by GUI when user clicks a research button. | ||||
*/ | */ | ||||
function addResearchToQueue(entity, researchType) | function addResearchToQueue(entity, researchType) | ||||
{ | { | ||||
Engine.PostNetworkCommand({ | Engine.PostNetworkCommand({ | ||||
"type": "research", | "type": "research", | ||||
"entity": entity, | "entity": entity, | ||||
"template": researchType | "template": researchType, | ||||
"pushFront": Engine.HotkeyIsPressed("session.pushorderfront") | |||||
}); | }); | ||||
} | } | ||||
/** | /** | ||||
* Called by GUI when user clicks a production queue item. | * Called by GUI when user clicks a production queue item. | ||||
*/ | */ | ||||
function removeFromProductionQueue(entity, id) | function removeFromProductionQueue(entity, id) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 293 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator