Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/session/messages.js
Show First 20 Lines • Show All 457 Lines • ▼ Show 20 Lines | "playercommand": function(notification, player) | ||||
if (cmd.entities) | if (cmd.entities) | ||||
selection = cmd.entities; | selection = cmd.entities; | ||||
if (cmd.target) | if (cmd.target) | ||||
selection.push(cmd.target); | selection.push(cmd.target); | ||||
// Allow gaia in selection when gathering | // Allow gaia in selection when gathering | ||||
g_Selection.reset(); | g_Selection.reset(); | ||||
g_Selection.addList(selection, false, cmd.type == "gather"); | g_Selection.addList(selection, false, cmd.type == "gather"); | ||||
}, | |||||
"play-tracks": function (notification, player) | |||||
{ | |||||
if (notification.lock) | |||||
{ | |||||
global.music.storeTracks(notification.tracks.map(track => ({ "Type": "custom", "File": track }))); | |||||
global.music.setState(global.music.states.CUSTOM); | |||||
} | |||||
global.music.setLocked(notification.lock); | |||||
} | } | ||||
}; | }; | ||||
/** | /** | ||||
* Loads all known cheat commands. | * Loads all known cheat commands. | ||||
*/ | */ | ||||
function getCheatsData() | function getCheatsData() | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 823 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator