Little more experimenting with unit training.
This was SVN commit r2140.
This commit is contained in:
parent
d78afc9628
commit
a3cb8a322c
@ -6,6 +6,8 @@
|
||||
generic="Rock"
|
||||
class3="Rock"
|
||||
|
||||
icon="flora_deciduotree"
|
||||
|
||||
rollover="A lump of hard common mineral. It can be mined to provide stone building material."
|
||||
/>
|
||||
<MiniMap
|
||||
|
@ -409,7 +409,7 @@
|
||||
|
||||
// Press button.
|
||||
tempListObject.onPress =
|
||||
function (m, n) { return function() { PressCommandButton(m, n); } } (listLoop, tabLoop);
|
||||
function (m, n, o) { return function() { PressCommandButton(m, n, o); } } (tempListObject, listLoop, tabLoop);
|
||||
}
|
||||
}
|
||||
]]></action>
|
||||
|
@ -426,12 +426,12 @@ function UpdateCommand(listIcon, listCol)
|
||||
|
||||
// ====================================================================
|
||||
|
||||
function PressCommandButton(list, tab)
|
||||
function PressCommandButton(GUIObject, list, tab)
|
||||
{
|
||||
switch (list)
|
||||
{
|
||||
case 1:
|
||||
tempListObject.caption = "";
|
||||
GUIObject.caption = "";
|
||||
// if (SN_STATUS_PANE_COMMAND[list][tab].type == "list")
|
||||
// {
|
||||
//console.write("Clicked [" + list + "," + tab + "]: tab of type " + SN_STATUS_PANE_COMMAND[list][tab].type + "; " + SN_STATUS_PANE_COMMAND[list][tab].last + "; " + SN_STATUS_PANE_COMMAND[list][tab].name);
|
||||
@ -445,7 +445,7 @@ function PressCommandButton(list, tab)
|
||||
// }
|
||||
break;
|
||||
default:
|
||||
tempListObject.caption = list-1;
|
||||
GUIObject.caption = list-1;
|
||||
console.write("Clicked [" + list + "," + tab + "]: list of type " + SN_STATUS_PANE_COMMAND[list][tab].type + "; " + SN_STATUS_PANE_COMMAND[list][tab].name);
|
||||
|
||||
attempt_add_to_build_queue( selection[0], selection[0].traits.id.civ_code + "_" + SN_STATUS_PANE_COMMAND[list][tab].name );
|
||||
|
BIN
binaries/data/mods/official/maps/scenarios/gathertest.pmp
(Stored with Git LFS)
Normal file
BIN
binaries/data/mods/official/maps/scenarios/gathertest.pmp
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
binaries/data/mods/official/maps/scenarios/gathertest.xml
(Stored with Git LFS)
Normal file
BIN
binaries/data/mods/official/maps/scenarios/gathertest.xml
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user