Branch: refs/heads/master
Home: https://github.com/Warzone2100/warzone2100
Commit: 42db8f72193b348ea16f942c8bda4a40cb11cb23
https://github.com/Warzone2100/warzone2100/commit/42db8f72193b348ea16f942c8bda4a40cb11cb23
Author: Prot EuPhobos <[email protected]>
Date: 2018-01-25 (Thu, 25 Jan 2018)
Changed paths:
M src/hci.cpp
M src/hci.h
M src/qtscriptfuncs.cpp
Log Message:
-----------
open reticule menu from JS API(rules.js)
Add function to open reticule menu from JS API
Example rules.js addons (not included)
//Bind standart hotkey F1-F5 from rules.js
function eventKeyPressed(meta, key){
switch(key){
case 282:
showReticuleWidget(1);
break;
case 283:
showReticuleWidget(2);
break;
case 284:
showReticuleWidget(3);
break;
case 285:
showReticuleWidget(4);
break;
case 286:
showReticuleWidget(5);
break;
case 287:
showReticuleWidget(6);
break;
}
}
Removed typos
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Warzone2100-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/warzone2100-commits