mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
Features (by Buggler)
- More AIM sorting options. Default: Sort by Name Laptop\AIM Homepage Screen - Hotkeys 'm': Members Sorting page - Hotkeys 'l': Links page - Hotkeys 'h': History page - Hotkeys 'p': Policies page Laptop\AIM Sorting Screen - Hotkeys BACKSPACE: Back to AIM Homepage Screen - Hotkeys 'm': Mug Shot Index page - Hotkeys 'f': Member page - Hotkeys 'a': Alumni page Laptop\AIM Mug Shot Index Screen - Hotkeys BACKSPACE: Back to AIM Sorting Screen - Hotkeys LEFT ARROW: Previous Page - Hotkeys RIGHT ARROW: Next Page git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5636 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+41
-1
@@ -15,6 +15,8 @@
|
||||
#include "LaptopSave.h"
|
||||
#include "Multi Language Graphic Utils.h"
|
||||
#include "GameSettings.h"
|
||||
#include "english.h"
|
||||
#include "sysutil.h"
|
||||
#endif
|
||||
|
||||
#include "LocalizedStrings.h"
|
||||
@@ -205,6 +207,10 @@ UINT8 GetNextAimAd( UINT8 ubCurrentAd );
|
||||
|
||||
BOOLEAN fFirstTimeIn=TRUE;
|
||||
|
||||
//Hotkey Assignment
|
||||
void HandleAimKeyBoardInput();
|
||||
|
||||
|
||||
//
|
||||
// *********************** Functions *************************
|
||||
//
|
||||
@@ -349,6 +355,8 @@ void HandleAIM()
|
||||
{
|
||||
HandleAdAndWarningArea( gfInitAdArea, FALSE );
|
||||
gfInitAdArea = FALSE;
|
||||
|
||||
HandleAimKeyBoardInput();
|
||||
}
|
||||
|
||||
void RenderAIM()
|
||||
@@ -1303,8 +1311,40 @@ UINT8 GetNextAimAd( UINT8 ubCurrentAd )
|
||||
|
||||
|
||||
|
||||
void HandleAimKeyBoardInput()
|
||||
{
|
||||
InputAtom InputEvent;
|
||||
|
||||
#ifdef USE_HIGHSPEED_GAMELOOP_TIMER
|
||||
while (DequeueSpecificEvent(&InputEvent, KEY_DOWN|KEY_UP|KEY_REPEAT))
|
||||
#else
|
||||
while (DequeueEvent(&InputEvent) == TRUE)
|
||||
#endif
|
||||
|
||||
|
||||
{//!HandleTextInput( &InputEvent ) &&
|
||||
if( InputEvent.usEvent == KEY_DOWN )
|
||||
{
|
||||
switch (InputEvent.usParam)
|
||||
{
|
||||
case 'h':
|
||||
guiCurrentLaptopMode = LAPTOP_MODE_AIM_HISTORY;
|
||||
break;
|
||||
case 'l':
|
||||
guiCurrentLaptopMode = LAPTOP_MODE_AIM_LINKS;
|
||||
break;
|
||||
case 'm':
|
||||
if(!fFirstTimeIn)
|
||||
guiCurrentLaptopMode = LAPTOP_MODE_AIM_MEMBERS_SORTED_FILES;
|
||||
break;
|
||||
case 'p':
|
||||
guiCurrentLaptopMode = LAPTOP_MODE_AIM_POLICIES;
|
||||
break;
|
||||
default:
|
||||
HandleKeyBoardShortCutsForLapTop( InputEvent.usEvent, InputEvent.usParam, InputEvent.usKeyState );
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user