mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Due to erroneous code, the encyclopedia feature has been deactivated. for more info, see http://thepit.ja-galaxy-forum.com/index.php?t=msg&th=23090&goto=345928&#msg_345928
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8273 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1655,8 +1655,11 @@ BOOLEAN DisplayMercsInventory(UINT8 ubMercID)
|
|||||||
{
|
{
|
||||||
PosX += WEAPONBOX_SIZE_X_NSGI;
|
PosX += WEAPONBOX_SIZE_X_NSGI;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
//Moa: update encyclopedia item visibility when item gets displayed
|
//Moa: update encyclopedia item visibility when item gets displayed
|
||||||
EncyclopediaSetItemAsVisible( usItem, ENC_ITEM_DISCOVERED_NOT_INSPECTABLE );
|
EncyclopediaSetItemAsVisible( usItem, ENC_ITEM_DISCOVERED_NOT_INSPECTABLE );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1725,8 +1728,10 @@ BOOLEAN DisplayMercsInventory(UINT8 ubMercID)
|
|||||||
|
|
||||||
PosX += WEAPONBOX_SIZE_X;
|
PosX += WEAPONBOX_SIZE_X;
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
//Moa: update encyclopedia item visibility when item gets displayed
|
//Moa: update encyclopedia item visibility when item gets displayed
|
||||||
EncyclopediaSetItemAsVisible( usItem, ENC_ITEM_DISCOVERED_NOT_INSPECTABLE );
|
EncyclopediaSetItemAsVisible( usItem, ENC_ITEM_DISCOVERED_NOT_INSPECTABLE );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2446,8 +2446,10 @@ void DisplayItemNameAndInfo(UINT16 usPosY, UINT16 usIndex, UINT16 usBobbyIndex,
|
|||||||
LoadBRDesc(usIndex,sText);
|
LoadBRDesc(usIndex,sText);
|
||||||
DisplayWrappedString(BOBBYR_ITEM_DESC_START_X, usPosY, BOBBYR_ITEM_DESC_START_WIDTH, 2, BOBBYR_ITEM_DESC_TEXT_FONT, BOBBYR_ITEM_DESC_TEXT_COLOR, sText, FONT_MCOLOR_BLACK, FALSE, LEFT_JUSTIFIED);
|
DisplayWrappedString(BOBBYR_ITEM_DESC_START_X, usPosY, BOBBYR_ITEM_DESC_START_WIDTH, 2, BOBBYR_ITEM_DESC_TEXT_FONT, BOBBYR_ITEM_DESC_TEXT_COLOR, sText, FONT_MCOLOR_BLACK, FALSE, LEFT_JUSTIFIED);
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
//Moa: update encyclopedia item visibility when item gets displayed
|
//Moa: update encyclopedia item visibility when item gets displayed
|
||||||
EncyclopediaSetItemAsVisible( usIndex, ENC_ITEM_DISCOVERED_NOT_INSPECTABLE );
|
EncyclopediaSetItemAsVisible( usIndex, ENC_ITEM_DISCOVERED_NOT_INSPECTABLE );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -18,11 +18,6 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#define MAX_FILTR_LOCATION_BUTTONS 11
|
#define MAX_FILTR_LOCATION_BUTTONS 11
|
||||||
#define FILTR_INVENTORY_BUTTONS 5
|
#define FILTR_INVENTORY_BUTTONS 5
|
||||||
#define FILTR_BUTTONS_CHARACTER 8
|
#define FILTR_BUTTONS_CHARACTER 8
|
||||||
@@ -31,11 +26,15 @@
|
|||||||
|
|
||||||
|
|
||||||
UINT32 gFiltrBox = -1;
|
UINT32 gFiltrBox = -1;
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
INT32 guiEncyclopediaLocationPageButton[3] = { -1,-1,-1 };
|
INT32 guiEncyclopediaLocationPageButton[3] = { -1,-1,-1 };
|
||||||
INT32 guiEncyclopediaLocationPageButtonImage = -1;
|
INT32 guiEncyclopediaLocationPageButtonImage = -1;
|
||||||
INT32 guiEncyclopediaPageButton[3] = { -1,-1,-1 };
|
INT32 guiEncyclopediaPageButton[3] = { -1,-1,-1 };
|
||||||
INT32 guiEncyclopediaiPageButtonImage = -1;
|
INT32 guiEncyclopediaiPageButtonImage = -1;
|
||||||
UINT32 guiEncyclopediaPopUp;
|
UINT32 guiEncyclopediaPopUp;
|
||||||
|
#endif
|
||||||
|
|
||||||
INT32 ID = 0;
|
INT32 ID = 0;
|
||||||
INT32 IDimage = 0;
|
INT32 IDimage = 0;
|
||||||
INT32 MaxImages = 1;
|
INT32 MaxImages = 1;
|
||||||
@@ -74,8 +73,12 @@ void InitData ( BOOLEAN bInit );
|
|||||||
#define ENCYCLOPEDIA_IMAGE_X LAPTOP_SCREEN_UL_X
|
#define ENCYCLOPEDIA_IMAGE_X LAPTOP_SCREEN_UL_X
|
||||||
#define ENCYCLOPEDIA_IMAGE_Y iScreenHeightOffset + LAPTOP_SCREEN_WEB_DELTA_Y
|
#define ENCYCLOPEDIA_IMAGE_Y iScreenHeightOffset + LAPTOP_SCREEN_WEB_DELTA_Y
|
||||||
#define ENCYCLOPEDIA_FILTR_BUTTON_GAP 16
|
#define ENCYCLOPEDIA_FILTR_BUTTON_GAP 16
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
void SelectEncyclopediaLocationPageRegionCallBack(GUI_BUTTON * btn, INT32 reason );
|
void SelectEncyclopediaLocationPageRegionCallBack(GUI_BUTTON * btn, INT32 reason );
|
||||||
void SelectEncyclopediaLocationRegionCallBack(GUI_BUTTON * btn, INT32 reason );
|
void SelectEncyclopediaLocationRegionCallBack(GUI_BUTTON * btn, INT32 reason );
|
||||||
|
#endif
|
||||||
|
|
||||||
void SelectFiltrButtonsRegionCallBack(GUI_BUTTON * btn, INT32 reason );
|
void SelectFiltrButtonsRegionCallBack(GUI_BUTTON * btn, INT32 reason );
|
||||||
|
|
||||||
//void BtnEncyclopediaTogglesCallback( GUI_BUTTON *btn, INT32 reason );
|
//void BtnEncyclopediaTogglesCallback( GUI_BUTTON *btn, INT32 reason );
|
||||||
@@ -91,8 +94,9 @@ void UnLoadMenuButtons ();
|
|||||||
|
|
||||||
#define MAX_NUMBER_OF_OPTION_TOGGLES 5
|
#define MAX_NUMBER_OF_OPTION_TOGGLES 5
|
||||||
|
|
||||||
//UINT32 guiEncyclopediaToggles[ MAX_NUMBER_OF_OPTION_TOGGLES ];
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
MOUSE_REGION gSelectedEncyclopediaTextRegion[ MAX_FILTR_LOCATION_BUTTONS ];
|
MOUSE_REGION gSelectedEncyclopediaTextRegion[ MAX_FILTR_LOCATION_BUTTONS ];
|
||||||
|
#endif
|
||||||
|
|
||||||
BOOLEAN bBriefingRoom = FALSE;
|
BOOLEAN bBriefingRoom = FALSE;
|
||||||
BOOLEAN bBriefingRoomSpecialMission = FALSE;
|
BOOLEAN bBriefingRoomSpecialMission = FALSE;
|
||||||
@@ -197,49 +201,6 @@ BOOLEAN DisplayEncyclopediaLocationText()
|
|||||||
return(TRUE);
|
return(TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GameInitEncyclopediaLocation()
|
|
||||||
{/*
|
|
||||||
UINT32 typeSize = 0,total = 0;
|
|
||||||
CHAR buffer[150];
|
|
||||||
|
|
||||||
typeSize = sizeof (BRIEFINGROOM_M_DATA);
|
|
||||||
//backup data
|
|
||||||
total += sizeof(gEncyclopediaLocationDataBackup);
|
|
||||||
total += sizeof(gEncyclopediaProfilesDataBackup);
|
|
||||||
total += sizeof(gEncyclopediaInventoryDataBackup);
|
|
||||||
total += sizeof(gEncyclopediaOldProfilesDataBackup);
|
|
||||||
total += sizeof(gEncyclopediaQuestsDataBackup);
|
|
||||||
//actual data
|
|
||||||
total += sizeof(gEncyclopediaLocationData);
|
|
||||||
total += sizeof(gEncyclopediaProfilesData);
|
|
||||||
total += sizeof(gEncyclopediaInventoryData);
|
|
||||||
total += sizeof(gEncyclopediaOldProfilesData);
|
|
||||||
total += sizeof(gEncyclopediaQuestsData);
|
|
||||||
//save data
|
|
||||||
total += sizeof(saveEncyclopediaLocationData);
|
|
||||||
total += sizeof(saveEncyclopediaProfilesData);
|
|
||||||
total += sizeof(saveEncyclopediaInventoryData);
|
|
||||||
total += sizeof(saveEncyclopediaOldProfilesData);
|
|
||||||
total += sizeof(saveEncyclopediaQuestsData);
|
|
||||||
//working data
|
|
||||||
total += sizeof(gbriefingRoomDataTemp);
|
|
||||||
total /= 1024*1024;
|
|
||||||
sprintf(buffer,"Memory usage by Encyclopedia: %d MegaBytes\n",total);
|
|
||||||
OutputDebugString( buffer );
|
|
||||||
int tmpFlag = _CrtSetDbgFlag( _CRTDBG_REPORT_FLAG );
|
|
||||||
|
|
||||||
// Turn on leak-checking bit.
|
|
||||||
tmpFlag |= _CRTDBG_LEAK_CHECK_DF;
|
|
||||||
|
|
||||||
// Turn off CRT block checking bit.
|
|
||||||
tmpFlag &= ~_CRTDBG_CHECK_CRT_DF;
|
|
||||||
|
|
||||||
// Set flag to the new value.
|
|
||||||
_CrtSetDbgFlag( tmpFlag );
|
|
||||||
|
|
||||||
DumpMemoryInfoIntoFile( "ExtremeMemoryDump.txt", FALSE );*/
|
|
||||||
}
|
|
||||||
|
|
||||||
void ResetTemp()
|
void ResetTemp()
|
||||||
{
|
{
|
||||||
#ifdef ENABLE_BRIEFINGROOM
|
#ifdef ENABLE_BRIEFINGROOM
|
||||||
@@ -309,8 +270,6 @@ void CopyToTemp ( BRIEFINGROOM_M_DATA *Ency, BOOLEAN bFiltr, INT32 sort, INT32 T
|
|||||||
|
|
||||||
NUM_TEMP = NUM_MISSION;
|
NUM_TEMP = NUM_MISSION;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for(i=0; i<NUM_TEMP; i++)
|
for(i=0; i<NUM_TEMP; i++)
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -440,12 +399,12 @@ void InitData ( BOOLEAN bInit)
|
|||||||
BOOLEAN EnterEncyclopediaLocation()
|
BOOLEAN EnterEncyclopediaLocation()
|
||||||
{
|
{
|
||||||
#ifdef ENABLE_BRIEFINGROOM
|
#ifdef ENABLE_BRIEFINGROOM
|
||||||
UINT16 usPosX, usPosY, i;
|
|
||||||
CHAR8 str[MAX_ENCYCLOPEDIA_CHARS];
|
CHAR8 str[MAX_ENCYCLOPEDIA_CHARS];
|
||||||
|
|
||||||
|
|
||||||
InitData (ResetVal);
|
InitData (ResetVal);
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
|
UINT16 usPosX, usPosY, i;
|
||||||
InitEncyclopediaDefaults();
|
InitEncyclopediaDefaults();
|
||||||
|
|
||||||
guiEncyclopediaLocationPageButtonImage = LoadButtonImage("ENCYCLOPEDIA\\BottomButtons2.sti", -1,0,-1,1,-1 );
|
guiEncyclopediaLocationPageButtonImage = LoadButtonImage("ENCYCLOPEDIA\\BottomButtons2.sti", -1,0,-1,1,-1 );
|
||||||
@@ -486,6 +445,7 @@ BOOLEAN EnterEncyclopediaLocation()
|
|||||||
|
|
||||||
usPosX += ENCYCLOPEDIA_LOCATION_PAGE_GAP+60;
|
usPosX += ENCYCLOPEDIA_LOCATION_PAGE_GAP+60;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
fFirstTimeInEncyclopediaLocation = FALSE;
|
fFirstTimeInEncyclopediaLocation = FALSE;
|
||||||
|
|
||||||
@@ -493,16 +453,20 @@ BOOLEAN EnterEncyclopediaLocation()
|
|||||||
|
|
||||||
RenderButtonDisabled();
|
RenderButtonDisabled();
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
DisableButton( guiEncyclopediaPageButton[0] );
|
DisableButton( guiEncyclopediaPageButton[0] );
|
||||||
DisableButton( guiEncyclopediaLocationPageButton[0] );
|
DisableButton( guiEncyclopediaLocationPageButton[0] );
|
||||||
|
#endif
|
||||||
|
|
||||||
if ( gbriefingRoomDataTemp[LocationID].CheckMission == MISSIONSTART || gbriefingRoomDataTemp[LocationID].CheckMission == MISSIONEND )
|
if ( gbriefingRoomDataTemp[LocationID].CheckMission == MISSIONSTART || gbriefingRoomDataTemp[LocationID].CheckMission == MISSIONEND )
|
||||||
DisableButton ( guiSoundButtons[1] );
|
DisableButton ( guiSoundButtons[1] );
|
||||||
else if ( gbriefingRoomDataTemp[LocationID].CheckMission == MISSIONNOSTARTED )
|
else if ( gbriefingRoomDataTemp[LocationID].CheckMission == MISSIONNOSTARTED )
|
||||||
EnableButton ( guiSoundButtons[1] );
|
EnableButton ( guiSoundButtons[1] );
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
if ( MaxLocation == -1 || MaxLocation == 0 || MaxLocation == 1 )
|
if ( MaxLocation == -1 || MaxLocation == 0 || MaxLocation == 1 )
|
||||||
DisableButton( guiEncyclopediaLocationPageButton[2] );
|
DisableButton( guiEncyclopediaLocationPageButton[2] );
|
||||||
|
#endif
|
||||||
|
|
||||||
sprintf(str, "BriefingRoom\\mission%d.wav", gbriefingRoomDataTemp[LocationID].MissionID,IDimage);
|
sprintf(str, "BriefingRoom\\mission%d.wav", gbriefingRoomDataTemp[LocationID].MissionID,IDimage);
|
||||||
if( FileExists(str) )
|
if( FileExists(str) )
|
||||||
@@ -525,6 +489,8 @@ void UnLoadMenuButtons ()
|
|||||||
void ExitEncyclopediaLocation()
|
void ExitEncyclopediaLocation()
|
||||||
{
|
{
|
||||||
UINT16 i;
|
UINT16 i;
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
RemoveEncyclopediaDefaults();
|
RemoveEncyclopediaDefaults();
|
||||||
|
|
||||||
if (guiEncyclopediaiPageButtonImage != -1 )
|
if (guiEncyclopediaiPageButtonImage != -1 )
|
||||||
@@ -538,6 +504,7 @@ UINT16 i;
|
|||||||
|
|
||||||
for(i=0; i<3; i++)
|
for(i=0; i<3; i++)
|
||||||
RemoveButton( guiEncyclopediaLocationPageButton[i] );
|
RemoveButton( guiEncyclopediaLocationPageButton[i] );
|
||||||
|
#endif
|
||||||
|
|
||||||
if ( bSoundButtons == TRUE )
|
if ( bSoundButtons == TRUE )
|
||||||
{
|
{
|
||||||
@@ -569,6 +536,7 @@ void HandleEncyclopediaLocation()
|
|||||||
void RenderButtonDisabled()
|
void RenderButtonDisabled()
|
||||||
{
|
{
|
||||||
#ifdef ENABLE_BRIEFINGROOM
|
#ifdef ENABLE_BRIEFINGROOM
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
if ( bPage2 == FALSE && bPage3 == FALSE )
|
if ( bPage2 == FALSE && bPage3 == FALSE )
|
||||||
{
|
{
|
||||||
DisableButton( guiEncyclopediaPageButton[0] );
|
DisableButton( guiEncyclopediaPageButton[0] );
|
||||||
@@ -578,34 +546,41 @@ void RenderButtonDisabled()
|
|||||||
{
|
{
|
||||||
EnableButton( guiEncyclopediaPageButton[2] );
|
EnableButton( guiEncyclopediaPageButton[2] );
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#endif // ENABLE_BRIEFINGROOM
|
#endif // ENABLE_BRIEFINGROOM
|
||||||
}
|
}
|
||||||
|
|
||||||
void RenderButtonDisabled2()
|
void RenderButtonDisabled2()
|
||||||
{
|
{
|
||||||
#ifdef ENABLE_BRIEFINGROOM
|
#ifdef ENABLE_BRIEFINGROOM
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
DisableButton( guiEncyclopediaPageButton[0] );
|
DisableButton( guiEncyclopediaPageButton[0] );
|
||||||
EnableButton( guiEncyclopediaPageButton[2] );
|
EnableButton( guiEncyclopediaPageButton[2] );
|
||||||
|
#endif
|
||||||
#endif // ENABLE_BRIEFINGROOM
|
#endif // ENABLE_BRIEFINGROOM
|
||||||
}
|
}
|
||||||
|
|
||||||
void RenderButtonDisabled3()
|
void RenderButtonDisabled3()
|
||||||
{
|
{
|
||||||
#ifdef ENABLE_BRIEFINGROOM
|
#ifdef ENABLE_BRIEFINGROOM
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
DisableButton( guiEncyclopediaLocationPageButton[0] );
|
DisableButton( guiEncyclopediaLocationPageButton[0] );
|
||||||
|
|
||||||
if ( MaxLocation == -1 || MaxLocation == 0 || MaxLocation == 1 )
|
if ( MaxLocation == -1 || MaxLocation == 0 || MaxLocation == 1 )
|
||||||
DisableButton( guiEncyclopediaLocationPageButton[2] );
|
DisableButton( guiEncyclopediaLocationPageButton[2] );
|
||||||
else
|
else
|
||||||
EnableButton( guiEncyclopediaLocationPageButton[2] );
|
EnableButton( guiEncyclopediaLocationPageButton[2] );
|
||||||
|
#endif
|
||||||
#endif // ENABLE_BRIEFINGROOM
|
#endif // ENABLE_BRIEFINGROOM
|
||||||
}
|
}
|
||||||
|
|
||||||
void RenderButtonDisabled4()
|
void RenderButtonDisabled4()
|
||||||
{
|
{
|
||||||
#ifdef ENABLE_BRIEFINGROOM
|
#ifdef ENABLE_BRIEFINGROOM
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
DisableButton( guiEncyclopediaPageButton[0] );
|
DisableButton( guiEncyclopediaPageButton[0] );
|
||||||
DisableButton( guiEncyclopediaPageButton[2] );
|
DisableButton( guiEncyclopediaPageButton[2] );
|
||||||
|
#endif
|
||||||
#endif // ENABLE_BRIEFINGROOM
|
#endif // ENABLE_BRIEFINGROOM
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -616,6 +591,7 @@ void RenderBoxDisabledButton()
|
|||||||
MaxLocation = 0;
|
MaxLocation = 0;
|
||||||
IDimage = 0;
|
IDimage = 0;
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
DisableButton( guiEncyclopediaLocationPageButton[0] );
|
DisableButton( guiEncyclopediaLocationPageButton[0] );
|
||||||
//DisableButton( guiEncyclopediaLocationPageButton[1] );
|
//DisableButton( guiEncyclopediaLocationPageButton[1] );
|
||||||
DisableButton( guiEncyclopediaLocationPageButton[2] );
|
DisableButton( guiEncyclopediaLocationPageButton[2] );
|
||||||
@@ -623,6 +599,7 @@ void RenderBoxDisabledButton()
|
|||||||
DisableButton( guiEncyclopediaPageButton[0] );
|
DisableButton( guiEncyclopediaPageButton[0] );
|
||||||
DisableButton( guiEncyclopediaPageButton[1] );
|
DisableButton( guiEncyclopediaPageButton[1] );
|
||||||
DisableButton( guiEncyclopediaPageButton[2] );
|
DisableButton( guiEncyclopediaPageButton[2] );
|
||||||
|
#endif
|
||||||
#endif // ENABLE_BRIEFINGROOM
|
#endif // ENABLE_BRIEFINGROOM
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -797,13 +774,13 @@ void RenderEncyclopediaLocation( BOOLEAN bHidden )
|
|||||||
if ( ResetVal == TRUE )
|
if ( ResetVal == TRUE )
|
||||||
DisplayWrappedString(ENCYCLOPEDIA_LOCATION_BOX_DESC_X, ENCYCLOPEDIA_LOCATION_BOX_DESC_Y + 13, ENCYCLOPEDIA_LOCATION_BOX_TEXT_WIDTH, 6, ENCYCLOPEDIA_LOCATION_BOX_FONT, ENCYCLOPEDIA_LOCATION_BOX_COLOR, L"", FONT_MCOLOR_BLACK, FALSE, LEFT_JUSTIFIED);
|
DisplayWrappedString(ENCYCLOPEDIA_LOCATION_BOX_DESC_X, ENCYCLOPEDIA_LOCATION_BOX_DESC_Y + 13, ENCYCLOPEDIA_LOCATION_BOX_TEXT_WIDTH, 6, ENCYCLOPEDIA_LOCATION_BOX_FONT, ENCYCLOPEDIA_LOCATION_BOX_COLOR, L"", FONT_MCOLOR_BLACK, FALSE, LEFT_JUSTIFIED);
|
||||||
|
|
||||||
|
|
||||||
MarkButtonsDirty( );
|
MarkButtonsDirty( );
|
||||||
RenderWWWProgramTitleBar( );
|
RenderWWWProgramTitleBar( );
|
||||||
|
|
||||||
if ( ENCYCLOPEDIA_PAGE == -1 || ENCYCLOPEDIA_PAGE == 0 )
|
if ( ENCYCLOPEDIA_PAGE == -1 || ENCYCLOPEDIA_PAGE == 0 )
|
||||||
RenderButtonDisabled4();
|
RenderButtonDisabled4();
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
if ( bHidden == TRUE && ( MaxImages == 0 || MaxImages == -1 || MaxImages == 1 ) ) //|| gbriefingRoomDataTemp[0].MaxImages == 1 ) )
|
if ( bHidden == TRUE && ( MaxImages == 0 || MaxImages == -1 || MaxImages == 1 ) ) //|| gbriefingRoomDataTemp[0].MaxImages == 1 ) )
|
||||||
DisableButton( guiEncyclopediaPageButton[1] );
|
DisableButton( guiEncyclopediaPageButton[1] );
|
||||||
else if ( bHidden == FALSE && MaxImages > 1 )
|
else if ( bHidden == FALSE && MaxImages > 1 )
|
||||||
@@ -812,6 +789,7 @@ void RenderEncyclopediaLocation( BOOLEAN bHidden )
|
|||||||
//Reset
|
//Reset
|
||||||
if ( ResetVal == TRUE )
|
if ( ResetVal == TRUE )
|
||||||
DisableButton( guiEncyclopediaPageButton[1] );
|
DisableButton( guiEncyclopediaPageButton[1] );
|
||||||
|
#endif
|
||||||
|
|
||||||
if ( gbriefingRoomDataTemp[LocationID].CheckMission == MISSIONSTART || gbriefingRoomDataTemp[LocationID].CheckMission == MISSIONEND )
|
if ( gbriefingRoomDataTemp[LocationID].CheckMission == MISSIONSTART || gbriefingRoomDataTemp[LocationID].CheckMission == MISSIONEND )
|
||||||
DisableButton ( guiSoundButtons[1] );
|
DisableButton ( guiSoundButtons[1] );
|
||||||
@@ -844,8 +822,10 @@ void SelectEncyclopediaLocationPageRegionCallBack(GUI_BUTTON * btn, INT32 reason
|
|||||||
{
|
{
|
||||||
ID++;
|
ID++;
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
if ( ID == ENCYCLOPEDIA_PAGE || ID > ENCYCLOPEDIA_PAGE ) DisableButton( guiEncyclopediaPageButton[2] );
|
if ( ID == ENCYCLOPEDIA_PAGE || ID > ENCYCLOPEDIA_PAGE ) DisableButton( guiEncyclopediaPageButton[2] );
|
||||||
if ( ID > 0 ) EnableButton( guiEncyclopediaPageButton[0] );
|
if ( ID > 0 ) EnableButton( guiEncyclopediaPageButton[0] );
|
||||||
|
#endif
|
||||||
|
|
||||||
RenderEncyclopediaLocation(FALSE);
|
RenderEncyclopediaLocation(FALSE);
|
||||||
RenderMap();
|
RenderMap();
|
||||||
@@ -854,8 +834,11 @@ void SelectEncyclopediaLocationPageRegionCallBack(GUI_BUTTON * btn, INT32 reason
|
|||||||
{
|
{
|
||||||
ID--;
|
ID--;
|
||||||
//if ( ID < 0 ) ID = 0;
|
//if ( ID < 0 ) ID = 0;
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
if ( ID == 0 ) DisableButton( guiEncyclopediaPageButton[0] );
|
if ( ID == 0 ) DisableButton( guiEncyclopediaPageButton[0] );
|
||||||
if ( ID < ENCYCLOPEDIA_PAGE ) EnableButton( guiEncyclopediaPageButton[2] );
|
if ( ID < ENCYCLOPEDIA_PAGE ) EnableButton( guiEncyclopediaPageButton[2] );
|
||||||
|
#endif
|
||||||
RenderEncyclopediaLocation(FALSE);
|
RenderEncyclopediaLocation(FALSE);
|
||||||
RenderMap();
|
RenderMap();
|
||||||
}
|
}
|
||||||
@@ -898,8 +881,10 @@ void SelectEncyclopediaLocationRegionCallBack(GUI_BUTTON * btn, INT32 reason )
|
|||||||
|
|
||||||
LocationID = IDNewLocation;
|
LocationID = IDNewLocation;
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
if ( IDNewLocation == MaxLocation - 1 || IDNewLocation == -1 ) DisableButton( guiEncyclopediaLocationPageButton[2] );
|
if ( IDNewLocation == MaxLocation - 1 || IDNewLocation == -1 ) DisableButton( guiEncyclopediaLocationPageButton[2] );
|
||||||
if ( IDNewLocation > 0 ) EnableButton( guiEncyclopediaLocationPageButton[0] );
|
if ( IDNewLocation > 0 ) EnableButton( guiEncyclopediaLocationPageButton[0] );
|
||||||
|
#endif
|
||||||
|
|
||||||
IDimage = 0;
|
IDimage = 0;
|
||||||
|
|
||||||
@@ -909,10 +894,12 @@ void SelectEncyclopediaLocationRegionCallBack(GUI_BUTTON * btn, INT32 reason )
|
|||||||
if ( ENCYCLOPEDIA_PAGE == -1 || ENCYCLOPEDIA_PAGE == 0 )
|
if ( ENCYCLOPEDIA_PAGE == -1 || ENCYCLOPEDIA_PAGE == 0 )
|
||||||
RenderButtonDisabled4();
|
RenderButtonDisabled4();
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
if ( MaxImages == -1 || MaxImages == 0 || MaxImages == 1 )
|
if ( MaxImages == -1 || MaxImages == 0 || MaxImages == 1 )
|
||||||
DisableButton( guiEncyclopediaPageButton[1] );
|
DisableButton( guiEncyclopediaPageButton[1] );
|
||||||
else
|
else
|
||||||
EnableButton( guiEncyclopediaPageButton[1] );
|
EnableButton( guiEncyclopediaPageButton[1] );
|
||||||
|
#endif
|
||||||
|
|
||||||
if( uiSoundSampleBR!=NO_SAMPLE )
|
if( uiSoundSampleBR!=NO_SAMPLE )
|
||||||
{
|
{
|
||||||
@@ -930,8 +917,10 @@ void SelectEncyclopediaLocationRegionCallBack(GUI_BUTTON * btn, INT32 reason )
|
|||||||
|
|
||||||
LocationID = IDNewLocation;
|
LocationID = IDNewLocation;
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
if ( IDNewLocation == 0 || IDNewLocation == -1 ) DisableButton( guiEncyclopediaLocationPageButton[0] );
|
if ( IDNewLocation == 0 || IDNewLocation == -1 ) DisableButton( guiEncyclopediaLocationPageButton[0] );
|
||||||
if ( IDNewLocation < MaxLocation-1) EnableButton( guiEncyclopediaLocationPageButton[2] );
|
if ( IDNewLocation < MaxLocation-1) EnableButton( guiEncyclopediaLocationPageButton[2] );
|
||||||
|
#endif
|
||||||
|
|
||||||
IDimage = 0;
|
IDimage = 0;
|
||||||
|
|
||||||
@@ -941,10 +930,12 @@ void SelectEncyclopediaLocationRegionCallBack(GUI_BUTTON * btn, INT32 reason )
|
|||||||
if ( ENCYCLOPEDIA_PAGE == -1 || ENCYCLOPEDIA_PAGE == 0 )
|
if ( ENCYCLOPEDIA_PAGE == -1 || ENCYCLOPEDIA_PAGE == 0 )
|
||||||
RenderButtonDisabled4();
|
RenderButtonDisabled4();
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
if ( MaxImages == -1 || MaxImages == 0 || MaxImages == 1 )
|
if ( MaxImages == -1 || MaxImages == 0 || MaxImages == 1 )
|
||||||
DisableButton( guiEncyclopediaPageButton[1] );
|
DisableButton( guiEncyclopediaPageButton[1] );
|
||||||
else
|
else
|
||||||
EnableButton( guiEncyclopediaPageButton[1] );
|
EnableButton( guiEncyclopediaPageButton[1] );
|
||||||
|
#endif
|
||||||
|
|
||||||
if( uiSoundSampleBR!=NO_SAMPLE )
|
if( uiSoundSampleBR!=NO_SAMPLE )
|
||||||
{
|
{
|
||||||
@@ -967,18 +958,19 @@ void SelectEncyclopediaLocationRegionCallBack(GUI_BUTTON * btn, INT32 reason )
|
|||||||
{
|
{
|
||||||
if(!fFirstTimeInEncyclopediaLocation) guiCurrentLaptopMode = LAPTOP_MODE_BRIEFING_ROOM_ENTER;
|
if(!fFirstTimeInEncyclopediaLocation) guiCurrentLaptopMode = LAPTOP_MODE_BRIEFING_ROOM_ENTER;
|
||||||
}
|
}
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if(!fFirstTimeInEncyclopediaLocation) guiCurrentLaptopMode = LAPTOP_MODE_ENCYCLOPEDIA;
|
if(!fFirstTimeInEncyclopediaLocation) guiCurrentLaptopMode = LAPTOP_MODE_ENCYCLOPEDIA;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if(reason & MSYS_CALLBACK_REASON_LOST_MOUSE)
|
if(reason & MSYS_CALLBACK_REASON_LOST_MOUSE)
|
||||||
{
|
{
|
||||||
btn->uiFlags &= (~BUTTON_CLICKED_ON );
|
btn->uiFlags &= (~BUTTON_CLICKED_ON );
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif // ENABLE_BRIEFINGROOM
|
#endif // ENABLE_BRIEFINGROOM
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
#include "Quests.h"
|
#include "Quests.h"
|
||||||
|
|
||||||
void GameInitEncyclopediaLocation();
|
|
||||||
BOOLEAN EnterEncyclopediaLocation();
|
BOOLEAN EnterEncyclopediaLocation();
|
||||||
void ExitEncyclopediaLocation();
|
void ExitEncyclopediaLocation();
|
||||||
void HandleEncyclopediaLocation();
|
void HandleEncyclopediaLocation();
|
||||||
|
|||||||
@@ -32,6 +32,7 @@
|
|||||||
#include "Quests.h"
|
#include "Quests.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
/** @ingroup ENCYCLOPEDIA
|
/** @ingroup ENCYCLOPEDIA
|
||||||
* @file
|
* @file
|
||||||
* Encyclopedia data page in laptop.
|
* Encyclopedia data page in laptop.
|
||||||
@@ -65,8 +66,11 @@ struct ENC_DATA_ENTRY_T {
|
|||||||
UINT8 uiTextPage; ///< Current text page. Number of pages is currently 2 as there is no use for more at the moment. To define different pages modify \ref CreateData() and \ref BtnEncyclopedia_Data_NextPreviousTextBtnCallBack() accordingly.
|
UINT8 uiTextPage; ///< Current text page. Number of pages is currently 2 as there is no use for more at the moment. To define different pages modify \ref CreateData() and \ref BtnEncyclopedia_Data_NextPreviousTextBtnCallBack() accordingly.
|
||||||
} gstEncyclopediaDataEntry; ///< Current data.
|
} gstEncyclopediaDataEntry; ///< Current data.
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
UINT8 gbEncyclopediaData_ItemVisible[MAXITEMS];///< Visibility of items. If an item should be visible the value is not 0. Gets loaded from savegame, updated by \ref EncyclopediaSetItemAsVisible() and reset by \ref EncyclopediaInitItemsVisibility().
|
UINT8 gbEncyclopediaData_ItemVisible[MAXITEMS];///< Visibility of items. If an item should be visible the value is not 0. Gets loaded from savegame, updated by \ref EncyclopediaSetItemAsVisible() and reset by \ref EncyclopediaInitItemsVisibility().
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
/// Various filters for locations. Only filtered locations are shown. Subfilters, if any, are handled by callback function.
|
/// Various filters for locations. Only filtered locations are shown. Subfilters, if any, are handled by callback function.
|
||||||
enum ENC_DATA_FILTER_LOCATION {
|
enum ENC_DATA_FILTER_LOCATION {
|
||||||
ENC_DATA_FILTER_L_ALL = 0, ///< All locations visible
|
ENC_DATA_FILTER_L_ALL = 0, ///< All locations visible
|
||||||
@@ -1728,3 +1732,5 @@ void RenderEncyclopediaData_NEW( )
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include "Item Types.h"
|
#include "Item Types.h"
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
|
|
||||||
#define ENC_NUM_DATAPAGES MAXITEMS
|
#define ENC_NUM_DATAPAGES MAXITEMS
|
||||||
|
|
||||||
@@ -13,3 +14,5 @@ extern BOOLEAN EnterEncyclopediaData_NEW( );
|
|||||||
extern BOOLEAN ExitEncyclopediaData_NEW( );
|
extern BOOLEAN ExitEncyclopediaData_NEW( );
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -53,9 +53,10 @@
|
|||||||
//#include "Campaign Types.h"
|
//#include "Campaign Types.h"
|
||||||
//#include "Quests.h"
|
//#include "Quests.h"
|
||||||
//#include "Tactical Save.h"
|
//#include "Tactical Save.h"
|
||||||
//#include "Encyclopedia_Data_new.h"
|
#include "Encyclopedia_Data_new.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
/** @defgroup ENCYCLOPEDIA Encyclopedia
|
/** @defgroup ENCYCLOPEDIA Encyclopedia
|
||||||
* Encyclopedia shows discovered places, characters, known items and quests.
|
* Encyclopedia shows discovered places, characters, known items and quests.
|
||||||
*/
|
*/
|
||||||
@@ -352,6 +353,8 @@ void EncyclopediaInitItemsVisibility()
|
|||||||
memset( gbEncyclopediaData_ItemVisible, ENC_ITEM_NOT_DISCOVERED, MAXITEMS*sizeof(UINT8) );
|
memset( gbEncyclopediaData_ItemVisible, ENC_ITEM_NOT_DISCOVERED, MAXITEMS*sizeof(UINT8) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Saves Item visibility array to file.
|
* @brief Saves Item visibility array to file.
|
||||||
*
|
*
|
||||||
@@ -381,6 +384,7 @@ BOOLEAN LoadEncyclopediaItemVisibility( HWFILE hFile )
|
|||||||
}
|
}
|
||||||
///@}
|
///@}
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
/**
|
/**
|
||||||
* @brief Prepares a change to a different subpage.
|
* @brief Prepares a change to a different subpage.
|
||||||
* Subpages currently available: Loactions, Characters, Items, Quests.
|
* Subpages currently available: Loactions, Characters, Items, Quests.
|
||||||
@@ -460,3 +464,5 @@ void BtnEncyclopedia_newSelectDataPageRegionCallBack( MOUSE_REGION * pRegion, IN
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
#ifndef __Encyclopedia_new_H
|
#ifndef __Encyclopedia_new_H
|
||||||
#define __Encyclopedia_new_H
|
#define __Encyclopedia_new_H
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
|
|
||||||
/// For switching between data sub pages.
|
/// For switching between data sub pages.
|
||||||
enum ENC_SUBPAGE_T {
|
enum ENC_SUBPAGE_T {
|
||||||
ENC_MAINPAGE = 0,
|
ENC_MAINPAGE = 0,
|
||||||
@@ -20,18 +22,23 @@ ENC_ITEM_DISCOVERED_NOT_INSPECTABLE, ///< item is visible in encyclopedia if ext
|
|||||||
ENC_ITEM_DISCOVERED_INSPECTABLE, ///< item is visible in encyclopedia if external option allows inspectable items to be added as discovered. Item is potentially reachable and can be inspected. example: discovering from a dealers inventory, discovering from sector stash.
|
ENC_ITEM_DISCOVERED_INSPECTABLE, ///< item is visible in encyclopedia if external option allows inspectable items to be added as discovered. Item is potentially reachable and can be inspected. example: discovering from a dealers inventory, discovering from sector stash.
|
||||||
ENC_ITEM_DISCOVERED ///< item is visible in encyclopedia. Item can be fully inspected. example: item is in merc inventory.
|
ENC_ITEM_DISCOVERED ///< item is visible in encyclopedia. Item can be fully inspected. example: item is in merc inventory.
|
||||||
};
|
};
|
||||||
extern UINT8 gbEncyclopediaData_ItemVisible[];
|
|
||||||
extern void EncyclopediaInitItemsVisibility();
|
extern void EncyclopediaInitItemsVisibility();
|
||||||
extern void EncyclopediaSetItemAsVisible( UINT16 itemIndex, ENC_ITEM_VISIBILITY_T visibility );
|
extern void EncyclopediaSetItemAsVisible( UINT16 itemIndex, ENC_ITEM_VISIBILITY_T visibility );
|
||||||
|
|
||||||
extern BOOLEAN LoadEncyclopediaItemVisibility( HWFILE hFile );
|
#endif
|
||||||
extern BOOLEAN SaveEncyclopediaItemVisibility( HWFILE hFile );
|
extern UINT8 gbEncyclopediaData_ItemVisible[];
|
||||||
|
|
||||||
|
BOOLEAN LoadEncyclopediaItemVisibility( HWFILE hFile );
|
||||||
|
BOOLEAN SaveEncyclopediaItemVisibility( HWFILE hFile );
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
extern void GameInitEncyclopedia_NEW( );
|
extern void GameInitEncyclopedia_NEW( );
|
||||||
extern void HandleEncyclopedia_NEW( );
|
extern void HandleEncyclopedia_NEW( );
|
||||||
extern void RenderEncyclopedia_NEW( );
|
extern void RenderEncyclopedia_NEW( );
|
||||||
extern BOOLEAN EnterEncyclopedia_NEW( );
|
extern BOOLEAN EnterEncyclopedia_NEW( );
|
||||||
extern BOOLEAN ExitEncyclopedia_NEW( );
|
extern BOOLEAN ExitEncyclopedia_NEW( );
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+29
-13
@@ -788,11 +788,14 @@ UINT32 LaptopScreenInit()
|
|||||||
GameInitFiles();
|
GameInitFiles();
|
||||||
GameInitPersonnel();
|
GameInitPersonnel();
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
//legion
|
//legion
|
||||||
/* GameInitEncyclopedia();
|
/* GameInitEncyclopedia();
|
||||||
GameInitEncyclopediaLocation();*/
|
GameInitEncyclopediaLocation();*/
|
||||||
GameInitEncyclopedia_NEW();
|
GameInitEncyclopedia_NEW();
|
||||||
GameInitEncyclopediaData_NEW();
|
GameInitEncyclopediaData_NEW();
|
||||||
|
#endif
|
||||||
|
|
||||||
GameInitBriefingRoom();
|
GameInitBriefingRoom();
|
||||||
GameInitBriefingRoomEnter();
|
GameInitBriefingRoomEnter();
|
||||||
|
|
||||||
@@ -1046,8 +1049,10 @@ INT32 EnterLaptop()
|
|||||||
{
|
{
|
||||||
SetBookMark( AIM_BOOKMARK );
|
SetBookMark( AIM_BOOKMARK );
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
if ( gGameExternalOptions.gEncyclopedia )
|
if ( gGameExternalOptions.gEncyclopedia )
|
||||||
SetBookMark( ENCYCLOPEDIA_BOOKMARK );
|
SetBookMark( ENCYCLOPEDIA_BOOKMARK );
|
||||||
|
#endif
|
||||||
|
|
||||||
if ( gGameExternalOptions.gBriefingRoom )
|
if ( gGameExternalOptions.gBriefingRoom )
|
||||||
SetBookMark( BRIEFING_ROOM_BOOKMARK );
|
SetBookMark( BRIEFING_ROOM_BOOKMARK );
|
||||||
@@ -1261,6 +1266,7 @@ void RenderLaptop()
|
|||||||
DrawDeskTopBackground( );
|
DrawDeskTopBackground( );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
case LAPTOP_MODE_ENCYCLOPEDIA: //LEGION
|
case LAPTOP_MODE_ENCYCLOPEDIA: //LEGION
|
||||||
// RenderEncyclopedia();
|
// RenderEncyclopedia();
|
||||||
RenderEncyclopedia_NEW();
|
RenderEncyclopedia_NEW();
|
||||||
@@ -1270,6 +1276,7 @@ void RenderLaptop()
|
|||||||
// RenderEncyclopediaLocation(FALSE);
|
// RenderEncyclopediaLocation(FALSE);
|
||||||
RenderEncyclopediaData_NEW();
|
RenderEncyclopediaData_NEW();
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
case LAPTOP_MODE_BRIEFING_ROOM_PAGE:
|
case LAPTOP_MODE_BRIEFING_ROOM_PAGE:
|
||||||
RenderBriefingRoom();
|
RenderBriefingRoom();
|
||||||
@@ -1638,14 +1645,16 @@ void EnterNewLaptopMode()
|
|||||||
if( gLaptopProgramStates[ LAPTOP_PROGRAM_WEB_BROWSER ] == LAPTOP_PROGRAM_MINIMIZED )
|
if( gLaptopProgramStates[ LAPTOP_PROGRAM_WEB_BROWSER ] == LAPTOP_PROGRAM_MINIMIZED )
|
||||||
{
|
{
|
||||||
|
|
||||||
if ( guiCurrentLaptopMode == LAPTOP_MODE_ENCYCLOPEDIA_DATA || guiCurrentLaptopMode == LAPTOP_MODE_ENCYCLOPEDIA )
|
if ( guiCurrentLaptopMode == LAPTOP_MODE_BRIEFING_ROOM_PAGE || guiCurrentLaptopMode == LAPTOP_MODE_BRIEFING_ROOM || guiCurrentLaptopMode == LAPTOP_MODE_BRIEFING_ROOM_ENTER )
|
||||||
{
|
|
||||||
guiCurrentLaptopMode = LAPTOP_MODE_ENCYCLOPEDIA;
|
|
||||||
}
|
|
||||||
else if ( guiCurrentLaptopMode == LAPTOP_MODE_BRIEFING_ROOM_PAGE || guiCurrentLaptopMode == LAPTOP_MODE_BRIEFING_ROOM || guiCurrentLaptopMode == LAPTOP_MODE_BRIEFING_ROOM_ENTER )
|
|
||||||
{
|
{
|
||||||
guiCurrentLaptopMode = LAPTOP_MODE_BRIEFING_ROOM_ENTER;
|
guiCurrentLaptopMode = LAPTOP_MODE_BRIEFING_ROOM_ENTER;
|
||||||
}
|
}
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
|
else if ( guiCurrentLaptopMode == LAPTOP_MODE_ENCYCLOPEDIA_DATA || guiCurrentLaptopMode == LAPTOP_MODE_ENCYCLOPEDIA )
|
||||||
|
{
|
||||||
|
guiCurrentLaptopMode = LAPTOP_MODE_ENCYCLOPEDIA;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// minized, maximized
|
// minized, maximized
|
||||||
if( fMaximizingProgram == FALSE )
|
if( fMaximizingProgram == FALSE )
|
||||||
@@ -1733,6 +1742,7 @@ void EnterNewLaptopMode()
|
|||||||
//Initialize the new mode.
|
//Initialize the new mode.
|
||||||
switch( guiCurrentLaptopMode )
|
switch( guiCurrentLaptopMode )
|
||||||
{
|
{
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
//legion
|
//legion
|
||||||
case LAPTOP_MODE_ENCYCLOPEDIA:
|
case LAPTOP_MODE_ENCYCLOPEDIA:
|
||||||
// EnterEncyclopedia();
|
// EnterEncyclopedia();
|
||||||
@@ -1743,6 +1753,7 @@ void EnterNewLaptopMode()
|
|||||||
// EnterEncyclopediaLocation();
|
// EnterEncyclopediaLocation();
|
||||||
EnterEncyclopediaData_NEW();
|
EnterEncyclopediaData_NEW();
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
case LAPTOP_MODE_BRIEFING_ROOM_PAGE:
|
case LAPTOP_MODE_BRIEFING_ROOM_PAGE:
|
||||||
EnterBriefingRoom();
|
EnterBriefingRoom();
|
||||||
@@ -1999,6 +2010,7 @@ void HandleLapTopHandles()
|
|||||||
|
|
||||||
switch( guiCurrentLaptopMode )
|
switch( guiCurrentLaptopMode )
|
||||||
{
|
{
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
//legion
|
//legion
|
||||||
case LAPTOP_MODE_ENCYCLOPEDIA:
|
case LAPTOP_MODE_ENCYCLOPEDIA:
|
||||||
// HandleEncyclopedia();
|
// HandleEncyclopedia();
|
||||||
@@ -2009,6 +2021,7 @@ void HandleLapTopHandles()
|
|||||||
// HandleEncyclopediaLocation();
|
// HandleEncyclopediaLocation();
|
||||||
HandleEncyclopediaData_NEW();
|
HandleEncyclopediaData_NEW();
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
case LAPTOP_MODE_BRIEFING_ROOM_PAGE:
|
case LAPTOP_MODE_BRIEFING_ROOM_PAGE:
|
||||||
HandleBriefingRoom();
|
HandleBriefingRoom();
|
||||||
@@ -2587,7 +2600,7 @@ UINT32 ExitLaptopMode(UINT32 uiMode)
|
|||||||
|
|
||||||
switch( uiMode )
|
switch( uiMode )
|
||||||
{
|
{
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
case LAPTOP_MODE_ENCYCLOPEDIA:
|
case LAPTOP_MODE_ENCYCLOPEDIA:
|
||||||
ExitEncyclopedia_NEW();
|
ExitEncyclopedia_NEW();
|
||||||
// ExitEncyclopedia();
|
// ExitEncyclopedia();
|
||||||
@@ -2598,6 +2611,7 @@ UINT32 ExitLaptopMode(UINT32 uiMode)
|
|||||||
// ExitEncyclopediaLocation();
|
// ExitEncyclopediaLocation();
|
||||||
ExitEncyclopediaData_NEW();
|
ExitEncyclopediaData_NEW();
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
case LAPTOP_MODE_BRIEFING_ROOM_PAGE:
|
case LAPTOP_MODE_BRIEFING_ROOM_PAGE:
|
||||||
ExitBriefingRoom();
|
ExitBriefingRoom();
|
||||||
@@ -4195,6 +4209,7 @@ void GoToWebPage(INT32 iPageId )
|
|||||||
|
|
||||||
//LEGION
|
//LEGION
|
||||||
case ENCYCLOPEDIA_BOOKMARK:
|
case ENCYCLOPEDIA_BOOKMARK:
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
guiCurrentWWWMode=LAPTOP_MODE_ENCYCLOPEDIA;
|
guiCurrentWWWMode=LAPTOP_MODE_ENCYCLOPEDIA;
|
||||||
guiCurrentLaptopMode=LAPTOP_MODE_ENCYCLOPEDIA;
|
guiCurrentLaptopMode=LAPTOP_MODE_ENCYCLOPEDIA;
|
||||||
|
|
||||||
@@ -4211,6 +4226,7 @@ void GoToWebPage(INT32 iPageId )
|
|||||||
fLoadPendingFlag = TRUE;
|
fLoadPendingFlag = TRUE;
|
||||||
fFastLoadFlag = TRUE;
|
fFastLoadFlag = TRUE;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case BRIEFING_ROOM_BOOKMARK:
|
case BRIEFING_ROOM_BOOKMARK:
|
||||||
@@ -5920,16 +5936,16 @@ void SetCurrentToLastProgramOpened( void )
|
|||||||
break;
|
break;
|
||||||
case( LAPTOP_PROGRAM_WEB_BROWSER ):
|
case( LAPTOP_PROGRAM_WEB_BROWSER ):
|
||||||
// last www mode
|
// last www mode
|
||||||
if ( guiCurrentLaptopMode == LAPTOP_MODE_ENCYCLOPEDIA_DATA || guiCurrentLaptopMode == LAPTOP_MODE_ENCYCLOPEDIA )
|
if ( guiCurrentLaptopMode == LAPTOP_MODE_BRIEFING_ROOM_PAGE || guiCurrentLaptopMode == LAPTOP_MODE_BRIEFING_ROOM || guiCurrentLaptopMode == LAPTOP_MODE_BRIEFING_ROOM_ENTER )
|
||||||
{
|
|
||||||
guiCurrentLaptopMode = LAPTOP_MODE_ENCYCLOPEDIA;
|
|
||||||
}
|
|
||||||
else if ( guiCurrentLaptopMode == LAPTOP_MODE_BRIEFING_ROOM_PAGE || guiCurrentLaptopMode == LAPTOP_MODE_BRIEFING_ROOM || guiCurrentLaptopMode == LAPTOP_MODE_BRIEFING_ROOM_ENTER )
|
|
||||||
{
|
{
|
||||||
guiCurrentLaptopMode = LAPTOP_MODE_BRIEFING_ROOM_ENTER;
|
guiCurrentLaptopMode = LAPTOP_MODE_BRIEFING_ROOM_ENTER;
|
||||||
}
|
}
|
||||||
//else if( guiCurrentWWWMode != 0 && ( guiCurrentWWWMode == LAPTOP_MODE_ENCYCLOPEDIA_LOCATION || guiCurrentWWWMode == LAPTOP_MODE_ENCYCLOPEDIA || guiCurrentWWWMode == LAPTOP_MODE_BRIEFING_ROOM_PAGE || guiCurrentWWWMode == LAPTOP_MODE_BRIEFING_ROOM || guiCurrentWWWMode == LAPTOP_MODE_BRIEFING_ROOM_ENTER ) )
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
|
else if ( guiCurrentLaptopMode == LAPTOP_MODE_ENCYCLOPEDIA_DATA || guiCurrentLaptopMode == LAPTOP_MODE_ENCYCLOPEDIA )
|
||||||
|
{
|
||||||
|
guiCurrentLaptopMode = LAPTOP_MODE_ENCYCLOPEDIA;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
else if( guiCurrentWWWMode >= LAPTOP_MODE_FINANCES && guiCurrentWWWMode <= LAPTOP_MODE_BOBBYR_SHIPMENTS )
|
else if( guiCurrentWWWMode >= LAPTOP_MODE_FINANCES && guiCurrentWWWMode <= LAPTOP_MODE_BOBBYR_SHIPMENTS )
|
||||||
{
|
{
|
||||||
guiCurrentLaptopMode = guiCurrentWWWMode;
|
guiCurrentLaptopMode = guiCurrentWWWMode;
|
||||||
|
|||||||
@@ -1691,10 +1691,14 @@ BOOLEAN DisplayMERCMercsInventory(UINT8 ubMercID)
|
|||||||
{
|
{
|
||||||
PosX += MERC_WEAPONBOX_SIZE_X_NSGI;
|
PosX += MERC_WEAPONBOX_SIZE_X_NSGI;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
//Moa: update encyclopedia item visibility when item gets displayed
|
//Moa: update encyclopedia item visibility when item gets displayed
|
||||||
EncyclopediaSetItemAsVisible( usItem, ENC_ITEM_DISCOVERED_NOT_INSPECTABLE );
|
EncyclopediaSetItemAsVisible( usItem, ENC_ITEM_DISCOVERED_NOT_INSPECTABLE );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return(TRUE);
|
return(TRUE);
|
||||||
}
|
}
|
||||||
//JMich_MMG: Creating the mouseregion for tooltips
|
//JMich_MMG: Creating the mouseregion for tooltips
|
||||||
|
|||||||
@@ -6085,8 +6085,10 @@ BOOLEAN LoadSavedGame( int ubSavedGameID )
|
|||||||
LoadGameFilePosition( FileGetPos( hFile), "Encyclopedia item visibility" );
|
LoadGameFilePosition( FileGetPos( hFile), "Encyclopedia item visibility" );
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
else
|
else
|
||||||
EncyclopediaInitItemsVisibility();
|
EncyclopediaInitItemsVisibility();
|
||||||
|
#endif
|
||||||
|
|
||||||
if( guiCurrentSaveGameVersion >= CAMPAIGNSTATS )
|
if( guiCurrentSaveGameVersion >= CAMPAIGNSTATS )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -635,15 +635,21 @@ BOOLEAN RenderItemInPoolSlot( INT32 iCurrentSlot, INT32 iFirstSlotOnPage )
|
|||||||
) )
|
) )
|
||||||
{
|
{
|
||||||
//Shade the item, but only if it is an active item!
|
//Shade the item, but only if it is an active item!
|
||||||
if ( pInventoryPoolList[ iCurrentSlot + iFirstSlotOnPage ].object.exists() == true) {
|
if ( pInventoryPoolList[ iCurrentSlot + iFirstSlotOnPage ].object.exists() == true)
|
||||||
|
{
|
||||||
DrawHatchOnInventory( guiSAVEBUFFER, sX, sY, MAP_INVEN_SLOT_WIDTH, MAP_INVEN_SLOT_IMAGE_HEIGHT );
|
DrawHatchOnInventory( guiSAVEBUFFER, sX, sY, MAP_INVEN_SLOT_WIDTH, MAP_INVEN_SLOT_IMAGE_HEIGHT );
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
//Moa: set encyclopedia item visibility (not reachable)
|
//Moa: set encyclopedia item visibility (not reachable)
|
||||||
EncyclopediaSetItemAsVisible( pInventoryPoolList[ iCurrentSlot + iFirstSlotOnPage ].object.usItem, ENC_ITEM_DISCOVERED_NOT_REACHABLE );
|
EncyclopediaSetItemAsVisible( pInventoryPoolList[ iCurrentSlot + iFirstSlotOnPage ].object.usItem, ENC_ITEM_DISCOVERED_NOT_REACHABLE );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
//Moa: set encyclopedia item visibility (reachable)
|
//Moa: set encyclopedia item visibility (reachable)
|
||||||
else if ( pInventoryPoolList[ iCurrentSlot + iFirstSlotOnPage ].object.exists() == true )
|
else if ( pInventoryPoolList[ iCurrentSlot + iFirstSlotOnPage ].object.exists() == true )
|
||||||
EncyclopediaSetItemAsVisible( pInventoryPoolList[ iCurrentSlot + iFirstSlotOnPage ].object.usItem, ENC_ITEM_DISCOVERED_NOT_INSPECTABLE );
|
EncyclopediaSetItemAsVisible( pInventoryPoolList[ iCurrentSlot + iFirstSlotOnPage ].object.usItem, ENC_ITEM_DISCOVERED_NOT_INSPECTABLE );
|
||||||
|
#endif
|
||||||
|
|
||||||
// Flugente: militia equipment
|
// Flugente: militia equipment
|
||||||
if( gGameExternalOptions.fMilitiaUseSectorInventory && ( pInventoryPoolList[ iCurrentSlot + iFirstSlotOnPage ].usFlags & WORLD_ITEM_TABOO_FOR_MILITIA_EQ_ALL ) )
|
if( gGameExternalOptions.fMilitiaUseSectorInventory && ( pInventoryPoolList[ iCurrentSlot + iFirstSlotOnPage ].usFlags & WORLD_ITEM_TABOO_FOR_MILITIA_EQ_ALL ) )
|
||||||
|
|||||||
@@ -3748,8 +3748,10 @@ void INVRenderItem( UINT32 uiBuffer, SOLDIERTYPE * pSoldier, OBJECTTYPE *pObjec
|
|||||||
RestoreExternBackgroundRect( sX, sY, sWidth, sHeight );
|
RestoreExternBackgroundRect( sX, sY, sWidth, sHeight );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
//Moa: set encyclopedia item visibility
|
//Moa: set encyclopedia item visibility
|
||||||
EncyclopediaSetItemAsVisible( pItem->uiIndex, ENC_ITEM_DISCOVERED );
|
EncyclopediaSetItemAsVisible( pItem->uiIndex, ENC_ITEM_DISCOVERED );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
SetFont( ITEM_FONT );
|
SetFont( ITEM_FONT );
|
||||||
|
|||||||
@@ -2830,8 +2830,10 @@ UINT32 DisplayInvSlot( UINT16 ubSlotNum, UINT16 usItemIndex, UINT16 usPosX, UINT
|
|||||||
//blt the item
|
//blt the item
|
||||||
BltVideoObjectOutlineFromIndex( FRAME_BUFFER, GetInterfaceGraphicForItem( pItem ), g_bUsePngItemImages ? 0 : pItem->ubGraphicNum, sCenX, sCenY, Get16BPPColor( FROMRGB( 255, 255, 255 ) ), fHighlighted );
|
BltVideoObjectOutlineFromIndex( FRAME_BUFFER, GetInterfaceGraphicForItem( pItem ), g_bUsePngItemImages ? 0 : pItem->ubGraphicNum, sCenX, sCenY, Get16BPPColor( FROMRGB( 255, 255, 255 ) ), fHighlighted );
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
//Moa: encyclopedia item visibility
|
//Moa: encyclopedia item visibility
|
||||||
EncyclopediaSetItemAsVisible( usItemIndex, ENC_ITEM_DISCOVERED_INSPECTABLE );
|
EncyclopediaSetItemAsVisible( usItemIndex, ENC_ITEM_DISCOVERED_INSPECTABLE );
|
||||||
|
#endif
|
||||||
|
|
||||||
//Display the status of the item
|
//Display the status of the item
|
||||||
DrawItemUIBarEx( pItemObject, 0, (INT16)(usPosX+2), (INT16)(usPosY+2+20), 2, 20, Get16BPPColor( FROMRGB( 140, 136, 119 ) ), Get16BPPColor( FROMRGB( 140, 136, 119 ) ), TRUE, guiRENDERBUFFER );//guiSAVEBUFFER
|
DrawItemUIBarEx( pItemObject, 0, (INT16)(usPosX+2), (INT16)(usPosY+2+20), 2, 20, Get16BPPColor( FROMRGB( 140, 136, 119 ) ), Get16BPPColor( FROMRGB( 140, 136, 119 ) ), TRUE, guiRENDERBUFFER );//guiSAVEBUFFER
|
||||||
|
|||||||
@@ -311,23 +311,32 @@ void SoldierTooltip( SOLDIERTYPE* pSoldier )
|
|||||||
if ( gGameExternalOptions.fEnableSoldierTooltipHelmet )
|
if ( gGameExternalOptions.fEnableSoldierTooltipHelmet )
|
||||||
{
|
{
|
||||||
swprintf( pStrInfo, gzTooltipStrings[STR_TT_CAT_HELMET], pStrInfo, pSoldier->inv[HELMETPOS].usItem ? ItemNames[ pSoldier->inv[HELMETPOS].usItem ] : gzTooltipStrings[STR_TT_NO_HELMET] );
|
swprintf( pStrInfo, gzTooltipStrings[STR_TT_CAT_HELMET], pStrInfo, pSoldier->inv[HELMETPOS].usItem ? ItemNames[ pSoldier->inv[HELMETPOS].usItem ] : gzTooltipStrings[STR_TT_NO_HELMET] );
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
//Moa: encyclopedia item visibility
|
//Moa: encyclopedia item visibility
|
||||||
if ( pSoldier->inv[HELMETPOS].usItem )
|
if ( pSoldier->inv[HELMETPOS].usItem )
|
||||||
EncyclopediaSetItemAsVisible( pSoldier->inv[HELMETPOS].usItem, ENC_ITEM_DISCOVERED_NOT_REACHABLE );
|
EncyclopediaSetItemAsVisible( pSoldier->inv[HELMETPOS].usItem, ENC_ITEM_DISCOVERED_NOT_REACHABLE );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
if ( gGameExternalOptions.fEnableSoldierTooltipVest )
|
if ( gGameExternalOptions.fEnableSoldierTooltipVest )
|
||||||
{
|
{
|
||||||
swprintf( pStrInfo, gzTooltipStrings[STR_TT_CAT_VEST], pStrInfo, pSoldier->inv[VESTPOS].usItem ? ItemNames[ pSoldier->inv[VESTPOS].usItem ] : gzTooltipStrings[STR_TT_NO_VEST] );
|
swprintf( pStrInfo, gzTooltipStrings[STR_TT_CAT_VEST], pStrInfo, pSoldier->inv[VESTPOS].usItem ? ItemNames[ pSoldier->inv[VESTPOS].usItem ] : gzTooltipStrings[STR_TT_NO_VEST] );
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
//Moa: encyclopedia item visibility
|
//Moa: encyclopedia item visibility
|
||||||
if ( pSoldier->inv[VESTPOS].usItem )
|
if ( pSoldier->inv[VESTPOS].usItem )
|
||||||
EncyclopediaSetItemAsVisible( pSoldier->inv[VESTPOS].usItem, ENC_ITEM_DISCOVERED_NOT_REACHABLE );
|
EncyclopediaSetItemAsVisible( pSoldier->inv[VESTPOS].usItem, ENC_ITEM_DISCOVERED_NOT_REACHABLE );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
if ( gGameExternalOptions.fEnableSoldierTooltipLeggings )
|
if ( gGameExternalOptions.fEnableSoldierTooltipLeggings )
|
||||||
{
|
{
|
||||||
swprintf( pStrInfo, gzTooltipStrings[STR_TT_CAT_LEGGINGS], pStrInfo, pSoldier->inv[LEGPOS].usItem ? ItemNames[ pSoldier->inv[LEGPOS].usItem ] : gzTooltipStrings[STR_TT_NO_LEGGING] );
|
swprintf( pStrInfo, gzTooltipStrings[STR_TT_CAT_LEGGINGS], pStrInfo, pSoldier->inv[LEGPOS].usItem ? ItemNames[ pSoldier->inv[LEGPOS].usItem ] : gzTooltipStrings[STR_TT_NO_LEGGING] );
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
//Moa: encyclopedia item visibility
|
//Moa: encyclopedia item visibility
|
||||||
if ( pSoldier->inv[LEGPOS].usItem )
|
if ( pSoldier->inv[LEGPOS].usItem )
|
||||||
EncyclopediaSetItemAsVisible( pSoldier->inv[LEGPOS].usItem, ENC_ITEM_DISCOVERED_NOT_REACHABLE );
|
EncyclopediaSetItemAsVisible( pSoldier->inv[LEGPOS].usItem, ENC_ITEM_DISCOVERED_NOT_REACHABLE );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -380,9 +389,12 @@ void SoldierTooltip( SOLDIERTYPE* pSoldier )
|
|||||||
{
|
{
|
||||||
swprintf( pStrInfo, gzTooltipStrings[STR_TT_CAT_NVG], pStrInfo,
|
swprintf( pStrInfo, gzTooltipStrings[STR_TT_CAT_NVG], pStrInfo,
|
||||||
iNVG ? ItemNames[ pSoldier->inv[ iNVG ].usItem ] : gzTooltipStrings[STR_TT_NO_NVG] );
|
iNVG ? ItemNames[ pSoldier->inv[ iNVG ].usItem ] : gzTooltipStrings[STR_TT_NO_NVG] );
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
//Moa: encyclopedia item visibility
|
//Moa: encyclopedia item visibility
|
||||||
if ( iNVG )
|
if ( iNVG )
|
||||||
EncyclopediaSetItemAsVisible( pSoldier->inv[ iNVG ].usItem, ENC_ITEM_DISCOVERED_NOT_REACHABLE );
|
EncyclopediaSetItemAsVisible( pSoldier->inv[ iNVG ].usItem, ENC_ITEM_DISCOVERED_NOT_REACHABLE );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -397,16 +409,22 @@ void SoldierTooltip( SOLDIERTYPE* pSoldier )
|
|||||||
if ( gGameExternalOptions.fEnableSoldierTooltipHeadItem1 )
|
if ( gGameExternalOptions.fEnableSoldierTooltipHeadItem1 )
|
||||||
{
|
{
|
||||||
swprintf( pStrInfo, gzTooltipStrings[STR_TT_CAT_HEAD_POS_1], pStrInfo, ItemNames[ pSoldier->inv[HEAD1POS].usItem ] );
|
swprintf( pStrInfo, gzTooltipStrings[STR_TT_CAT_HEAD_POS_1], pStrInfo, ItemNames[ pSoldier->inv[HEAD1POS].usItem ] );
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
//Moa: encyclopedia item visibility
|
//Moa: encyclopedia item visibility
|
||||||
if ( pSoldier->inv[HEAD1POS].usItem )
|
if ( pSoldier->inv[HEAD1POS].usItem )
|
||||||
EncyclopediaSetItemAsVisible( pSoldier->inv[ HEAD1POS ].usItem, ENC_ITEM_DISCOVERED_NOT_REACHABLE );
|
EncyclopediaSetItemAsVisible( pSoldier->inv[ HEAD1POS ].usItem, ENC_ITEM_DISCOVERED_NOT_REACHABLE );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
if ( gGameExternalOptions.fEnableSoldierTooltipHeadItem2 )
|
if ( gGameExternalOptions.fEnableSoldierTooltipHeadItem2 )
|
||||||
{
|
{
|
||||||
swprintf( pStrInfo, gzTooltipStrings[STR_TT_CAT_HEAD_POS_2], pStrInfo, ItemNames[ pSoldier->inv[HEAD2POS].usItem ] );
|
swprintf( pStrInfo, gzTooltipStrings[STR_TT_CAT_HEAD_POS_2], pStrInfo, ItemNames[ pSoldier->inv[HEAD2POS].usItem ] );
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
//Moa: encyclopedia item visibility
|
//Moa: encyclopedia item visibility
|
||||||
if ( pSoldier->inv[HEAD2POS].usItem )
|
if ( pSoldier->inv[HEAD2POS].usItem )
|
||||||
EncyclopediaSetItemAsVisible( pSoldier->inv[ HEAD2POS ].usItem, ENC_ITEM_DISCOVERED_NOT_REACHABLE );
|
EncyclopediaSetItemAsVisible( pSoldier->inv[ HEAD2POS ].usItem, ENC_ITEM_DISCOVERED_NOT_REACHABLE );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// head slots info code block end
|
// head slots info code block end
|
||||||
@@ -529,9 +547,12 @@ void DisplayWeaponInfo( SOLDIERTYPE* pSoldier, CHAR16* pStrInfo, UINT8 ubSlot, U
|
|||||||
// display exact weapon model
|
// display exact weapon model
|
||||||
swprintf( pStrInfo, gzTooltipStrings[STR_TT_CAT_WEAPON], pStrInfo,
|
swprintf( pStrInfo, gzTooltipStrings[STR_TT_CAT_WEAPON], pStrInfo,
|
||||||
WeaponInHand( pSoldier ) ? ItemNames[ pSoldier->inv[ubSlot].usItem ] : gzTooltipStrings[STR_TT_NO_WEAPON] );
|
WeaponInHand( pSoldier ) ? ItemNames[ pSoldier->inv[ubSlot].usItem ] : gzTooltipStrings[STR_TT_NO_WEAPON] );
|
||||||
|
|
||||||
|
#ifdef ENCYCLOPEDIA_WORKS
|
||||||
//Moa: encyclopedia item visibility
|
//Moa: encyclopedia item visibility
|
||||||
if ( pSoldier->inv[ubSlot].usItem )
|
if ( pSoldier->inv[ubSlot].usItem )
|
||||||
EncyclopediaSetItemAsVisible( pSoldier->inv[ ubSlot ].usItem, ENC_ITEM_DISCOVERED_NOT_REACHABLE );
|
EncyclopediaSetItemAsVisible( pSoldier->inv[ ubSlot ].usItem, ENC_ITEM_DISCOVERED_NOT_REACHABLE );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user