Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/selection_panels.js
Context not available. | |||||
data.icon.sprite = modifier + "stretched:session/portraits/" + template.icon; | data.icon.sprite = modifier + "stretched:session/portraits/" + template.icon; | ||||
setPanelObjectPosition(data.button, data.i + getNumberOfRightPanelButtons(), data.rowLength); | setPanelObjectPosition(data.button, data.i + getNumberOfRightPanelButtons(), data.rowLength); | ||||
let mapNunitConstructionShortcutKey = Engine.GetGUIObjectByName("mapNunitConstructionShortcutKey[" + data.i + "]"); | |||||
if( !mapNunitConstructionShortcutKey.caption ) | |||||
{ | |||||
let key = Engine.ConfigDB_GetValue("user", "hotkey." + "session.building." + (data.i + 1) ); | |||||
mapNunitConstructionShortcutKey.caption = key.indexOf("+") == -1 ? key : key.split("+").slice(-1)[0]; | |||||
} | |||||
return true; | return true; | ||||
} | } | ||||
}; | }; | ||||
Context not available. |
Wildfire Games · Phabricator