Alternate new shortcut "ALT + Right Mouse Button" for showing skill (traits) menu in Tactical (by Sevenfm)

- Old also working shortcut: "SHIFT + 4"
- moved menu to cursor position instead of soldier's position
- see (youtube): https://www.youtube.com/watch?v=RS7AKv0rWq0



git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6731 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2014-01-06 15:30:18 +00:00
parent 907a4b6b40
commit 27fb0562ee
3 changed files with 88 additions and 48 deletions
+6 -1
View File
@@ -11,6 +11,9 @@
#include "DisplayCover.h"
#include "worldman.h"
// sevenfm: need this for correct calculation of traits menu position
extern INT16 gsInterfaceLevel;
UINT16 usTraitMenuPosX = 0;
UINT16 usTraitMenuPosY = 0;
@@ -143,7 +146,9 @@ TraitSelection::Setup( UINT32 aVal )
// grab soldier's x,y screen position
INT16 sX, sY;
GetSoldierScreenPos( pSoldier, &sX, &sY );
// sevenfm: changed TraitsMenu position from soldier to mouse
//GetSoldierScreenPos( pSoldier, &sX, &sY );
GetGridNoScreenPos( sTraitsMenuTargetGridNo, gsInterfaceLevel, &sX, &sY );
if( sX < 0 ) sX = 0;
if( sY < 0 ) sY = 0;