mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user