mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Added features (by Buggler)
- 'Ctrl+Tab' for next tab in Enhanced Description Box at Strategic & Tactical Screen ('Tab' also possible in Strategic Screen as previously not in used)
- 'M' for Multiplayer in Main Menu Screen
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5668 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -12457,40 +12457,31 @@ void DeletePool(ITEM_POOL *pItemPool)
|
||||
|
||||
void ItemDescTabButtonCallback( GUI_BUTTON *btn, INT32 reason )
|
||||
{
|
||||
switch (btn->UserData[0])
|
||||
{
|
||||
case 0:
|
||||
gubDescBoxPage = 0;
|
||||
InternalInitEDBTooltipRegion( gpItemDescObject, guiCurrentItemDescriptionScreen );
|
||||
RenderItemDescriptionBox();
|
||||
gubDescBoxPage = btn->UserData[0];
|
||||
HandleItemDescTabButton( );
|
||||
}
|
||||
|
||||
if (giItemDescAmmoButton > -1)
|
||||
MarkAButtonDirty( giItemDescAmmoButton ); // Required for tactical screen
|
||||
|
||||
void HandleItemDescTabButton( )
|
||||
{
|
||||
InternalInitEDBTooltipRegion( gpItemDescObject, guiCurrentItemDescriptionScreen );
|
||||
RenderItemDescriptionBox();
|
||||
|
||||
if (giItemDescAmmoButton > -1)
|
||||
MarkAButtonDirty( giItemDescAmmoButton ); // Required for tactical screen
|
||||
|
||||
switch (gubDescBoxPage)
|
||||
{
|
||||
case 0:
|
||||
ItemDescTabButtonOn( 0 );
|
||||
ItemDescTabButtonOff( 1 );
|
||||
ItemDescTabButtonOff( 2 );
|
||||
break;
|
||||
case 1:
|
||||
gubDescBoxPage = 1;
|
||||
InternalInitEDBTooltipRegion( gpItemDescObject, guiCurrentItemDescriptionScreen );
|
||||
RenderItemDescriptionBox();
|
||||
|
||||
if (giItemDescAmmoButton > -1)
|
||||
MarkAButtonDirty( giItemDescAmmoButton ); // Required for tactical screen
|
||||
|
||||
ItemDescTabButtonOff( 0 );
|
||||
ItemDescTabButtonOn( 1 );
|
||||
ItemDescTabButtonOff( 2 );
|
||||
break;
|
||||
case 2:
|
||||
gubDescBoxPage = 2;
|
||||
InternalInitEDBTooltipRegion( gpItemDescObject, guiCurrentItemDescriptionScreen );
|
||||
RenderItemDescriptionBox();
|
||||
|
||||
if (giItemDescAmmoButton > -1)
|
||||
MarkAButtonDirty( giItemDescAmmoButton ); // Required for tactical screen
|
||||
|
||||
ItemDescTabButtonOff( 0 );
|
||||
ItemDescTabButtonOff( 1 );
|
||||
ItemDescTabButtonOn( 2 );
|
||||
|
||||
Reference in New Issue
Block a user