forked from 0ad/0ad
ease switch to 100% trade of one resource using Shift-click
This was SVN commit r15211.
This commit is contained in:
parent
874ceb76a5
commit
6764b15ae2
@ -286,6 +286,7 @@ hotkey.session.queue = Shift ; Modifier to queue unit orders inst
|
||||
hotkey.session.batchtrain = Shift ; Modifier to train units in batches
|
||||
hotkey.session.massbarter = Shift ; Modifier to barter bunch of resources
|
||||
hotkey.session.masstribute = Shift ; Modifier to tribute bunch of resources
|
||||
hotkey.session.fulltradeswap = Shift ; Modifier to put the desired trade resource to 100%
|
||||
hotkey.session.unloadtype = Shift ; Modifier to unload all units of type
|
||||
hotkey.session.deselectgroup = Ctrl ; Modifier to deselect units when clicking group icon, instead of selecting
|
||||
hotkey.session.rotate.cw = RightBracket ; Rotate building placement preview clockwise
|
||||
|
@ -440,8 +440,13 @@ function openTrade()
|
||||
|
||||
buttonResource.onpress = (function(resource){
|
||||
return function() {
|
||||
if (selec == resource)
|
||||
return;
|
||||
if (Engine.HotkeyIsPressed("session.fulltradeswap"))
|
||||
{
|
||||
for (var ress of RESOURCES)
|
||||
proba[ress] = 0;
|
||||
proba[resource] = 100;
|
||||
Engine.PostNetworkCommand({"type": "set-trading-goods", "tradingGoods": proba});
|
||||
}
|
||||
selec = resource;
|
||||
updateButtons();
|
||||
}
|
||||
|
@ -525,7 +525,7 @@
|
||||
</object>
|
||||
</repeat>
|
||||
<object name="tradeHelp" size="100%-24 4 100% 28" enabled="false" type="button" style="StoneButton" tooltip_style="sessionToolTipBold">
|
||||
<translatableAttribute id="tooltip">Select one goods as origin of the changes, then use the arrows of the target goods to make the changes.</translatableAttribute>
|
||||
<translatableAttribute id="tooltip">Select one goods as origin of the changes, then use the arrows of the target goods to make the changes (using Shift to select will put the selected resource to 100%).</translatableAttribute>
|
||||
<object size="20% 15% 80% 75%" type="image" ghost="true" sprite="iconInfoWhite"/>
|
||||
</object>
|
||||
</object>
|
||||
|
Loading…
Reference in New Issue
Block a user