mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +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:
@@ -970,6 +970,23 @@ void QueryTBRightButton( UINT32 *puiNewEvent )
|
||||
{
|
||||
// ATE:
|
||||
if ( gusSelectedSoldier != NOBODY )
|
||||
{
|
||||
// sevenfm: ALT+RMB - TraitsMenu
|
||||
if(_KeyDown(ALT))
|
||||
{
|
||||
switch( gCurrentUIMode )
|
||||
{
|
||||
case MOVE_MODE:
|
||||
case TALKCURSOR_MODE:
|
||||
case ACTION_MODE:
|
||||
case CONFIRM_ACTION_MODE:
|
||||
case LOOKCURSOR_MODE:
|
||||
TraitsMenu(usMapPos);
|
||||
fClickIntercepted = TRUE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Switch on UI mode
|
||||
switch( gCurrentUIMode )
|
||||
@@ -1028,6 +1045,7 @@ void QueryTBRightButton( UINT32 *puiNewEvent )
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user