mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
- New Feature: Display - mines/bombs/tripwires (by Flugente)
- Display bombs/mines/tripwires planted by your team Red is for bomb/mine, yellow is for tripwire and orange is for both at the same tile. o ALT + END: only display as long as the hotkey is pressed o ALT + SHIFT + V: toggle permanent display on/off - Display ALL (also enemy) planted BOMBS / MINES / TRIPWIRE when the selected merc has a metal detector in his hand o ALT + DEL only display as long as the hotkey is pressed o ALT + Shift + C toggle permanent display on/off git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5210 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1402,28 +1402,41 @@ void GetPolledKeyboardInput( UINT32 *puiNewEvent )
|
||||
|
||||
if( _KeyDown( DEL ) && !fDeleteDown)
|
||||
{
|
||||
SwitchToEnemyView();
|
||||
if ( _KeyDown( ALT ) )
|
||||
SwitchToHostileTrapsView(); // added by Flugente
|
||||
else
|
||||
SwitchToEnemyView();
|
||||
|
||||
fDeleteDown = TRUE;
|
||||
}
|
||||
|
||||
if( !_KeyDown( DEL ) && fDeleteDown )
|
||||
{
|
||||
SwitchViewOff();
|
||||
|
||||
if ( _KeyDown( ALT ) )
|
||||
SwitchMineViewOff(); // added by Flugente
|
||||
else
|
||||
SwitchViewOff();
|
||||
|
||||
fDeleteDown = FALSE;
|
||||
}
|
||||
|
||||
if( _KeyDown( END ) && !fEndDown)
|
||||
{
|
||||
SwitchToMercView();
|
||||
if ( _KeyDown( ALT ) )
|
||||
SwitchToTrapNetworkView(); // added by Flugente
|
||||
else
|
||||
SwitchToMercView();
|
||||
|
||||
fEndDown = TRUE;
|
||||
}
|
||||
|
||||
if( !_KeyDown( END ) && fEndDown )
|
||||
{
|
||||
SwitchViewOff();
|
||||
if ( _KeyDown( ALT ) )
|
||||
SwitchMineViewOff(); // added by Flugente
|
||||
else
|
||||
SwitchViewOff();
|
||||
|
||||
|
||||
fEndDown = FALSE;
|
||||
}
|
||||
@@ -2948,7 +2961,10 @@ void GetKeyboardInput( UINT32 *puiNewEvent )
|
||||
break;
|
||||
|
||||
case 'C':
|
||||
ToggleEnemyView();
|
||||
if ( fAlt )
|
||||
ToggleHostileTrapsView(); // added by Flugente
|
||||
else
|
||||
ToggleEnemyView();
|
||||
break;
|
||||
case 'd':
|
||||
if( gTacticalStatus.uiFlags & TURNBASED && gTacticalStatus.uiFlags & INCOMBAT )
|
||||
@@ -4338,7 +4354,10 @@ void GetKeyboardInput( UINT32 *puiNewEvent )
|
||||
break;
|
||||
|
||||
case 'V':
|
||||
ToggleMercView();
|
||||
if( fAlt )
|
||||
ToggleTrapNetworkView(); // added by Flugente
|
||||
else
|
||||
ToggleMercView();
|
||||
break;
|
||||
|
||||
case 'w':
|
||||
|
||||
Reference in New Issue
Block a user