Differential D4333 Diff 19020 ps/trunk/binaries/data/mods/public/gui/session/selection_panels_helpers.js
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/session/selection_panels_helpers.js
Show First 20 Lines • Show All 552 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
function turnAutoQueueOn() | function turnAutoQueueOn() | ||||
{ | { | ||||
Engine.PostNetworkCommand({ | Engine.PostNetworkCommand({ | ||||
"type": "autoqueue-on", | "type": "autoqueue-on", | ||||
"entities": g_Selection.filter(ent => { | "entities": g_Selection.filter(ent => { | ||||
let state = GetEntityState(ent); | let state = GetEntityState(ent); | ||||
return !!state?.production?.entities.length && | return !!state?.trainer?.entities?.length && | ||||
!state.production.autoqueue; | !state.production.autoqueue; | ||||
}) | }) | ||||
}); | }); | ||||
} | } | ||||
function turnAutoQueueOff() | function turnAutoQueueOff() | ||||
{ | { | ||||
Engine.PostNetworkCommand({ | Engine.PostNetworkCommand({ | ||||
"type": "autoqueue-off", | "type": "autoqueue-off", | ||||
"entities": g_Selection.filter(ent => { | "entities": g_Selection.filter(ent => { | ||||
let state = GetEntityState(ent); | let state = GetEntityState(ent); | ||||
return !!state?.production?.entities.length && | return !!state?.trainer?.entities?.length && | ||||
state.production.autoqueue; | state.production.autoqueue; | ||||
}) | }) | ||||
}); | }); | ||||
} | } |
Wildfire Games · Phabricator