- New Feature: dynamic opinions allows mercs to form opinions about each other depening on actions they/the player take or do not take. These can be viewed in the 'MeLoDY 'website. See also http://www.bears-pit.com/board/ubbthreads.php/topics/333259.html#Post333259

- Requires GameDir r2050.
- new background property: <dislikebackground> allows mercs to dislike specific backgrounds
- Fix: snitches did not correctly prevent misbehaviour
- Fix: morale event was not handled
- Fix: DropDowns did not refresh when using the arrow buttons

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7240 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2014-05-28 22:10:42 +00:00
parent 6ea1d5dd8d
commit 5e9289b450
56 changed files with 3988 additions and 138 deletions
+99 -6
View File
@@ -87,6 +87,7 @@
#include "Encyclopedia_Data_new.h"
#include "CampaignHistoryMain.h" // added by Flugente
#include "CampaignHistory_Summary.h" // added by Flugente
#include "MercCompare.h" // added by Flugente
#endif
#include "connect.h"
@@ -1048,14 +1049,17 @@ INT32 EnterLaptop()
//JA25 UB
SetBookMark(MERC_BOOKMARK);
#endif
if ( gGameExternalOptions.gEncyclopedia == TRUE && !is_networked )
if ( gGameExternalOptions.gEncyclopedia && !is_networked )
SetBookMark(ENCYCLOPEDIA_BOOKMARK);
if ( gGameExternalOptions.gBriefingRoom == TRUE && !is_networked )
if ( gGameExternalOptions.gBriefingRoom && !is_networked )
SetBookMark(BRIEFING_ROOM_BOOKMARK);
if ( gGameExternalOptions.fCampaignHistoryWebSite && !is_networked )
SetBookMark(CAMPAIGNHISTORY_BOOKMARK);
if ( !is_networked )
SetBookMark( MERCCOMPARE_BOOKMARK );
LoadLoadPending( );
@@ -1443,18 +1447,30 @@ void RenderLaptop()
case LAPTOP_MODE_CAMPAIGNHISTORY_ABOUTTUS:
RenderCampaignHistory();
break;
case LAPTOP_MODE_MERCCOMPARE_MATRIX:
RenderMercCompareMatrix( );
break;
case LAPTOP_MODE_MERCCOMPARE_ANALYZE:
RenderMercCompareAnalyze( );
break;
case LAPTOP_MODE_MERCCOMPARE_CUSTOMERS:
RenderMercCompareCustomers();
break;
case LAPTOP_MODE_MERCCOMPARE_MAIN:
RenderMercCompareMain();
break;
}
if( guiCurrentLaptopMode >= LAPTOP_MODE_WWW )
{
// render program bar for www program
RenderWWWProgramTitleBar( );
}
if(fLoadPendingFlag)
{
guiCurrentLaptopMode = uiTempMode;
@@ -1860,6 +1876,22 @@ void EnterNewLaptopMode()
EnterCampaignHistory();
break;
case LAPTOP_MODE_MERCCOMPARE_MATRIX:
EnterMercCompareMatrix( );
break;
case LAPTOP_MODE_MERCCOMPARE_ANALYZE:
EnterMercCompareAnalyze( );
break;
case LAPTOP_MODE_MERCCOMPARE_CUSTOMERS:
EnterMercCompareCustomers();
break;
case LAPTOP_MODE_MERCCOMPARE_MAIN:
EnterMercCompareMain( );
break;
case LAPTOP_MODE_BOBBYR_SHIPMENTS:
EnterBobbyRShipments();
break;
@@ -2097,6 +2129,22 @@ void HandleLapTopHandles()
case LAPTOP_MODE_CAMPAIGNHISTORY_ABOUTTUS:
HandleCampaignHistory();
break;
case LAPTOP_MODE_MERCCOMPARE_MATRIX:
HandleMercCompareMatrix( );
break;
case LAPTOP_MODE_MERCCOMPARE_ANALYZE:
HandleMercCompareAnalyze( );
break;
case LAPTOP_MODE_MERCCOMPARE_CUSTOMERS:
HandleMercCompareCustomers();
break;
case LAPTOP_MODE_MERCCOMPARE_MAIN:
HandleMercCompareMain();
break;
}
}
@@ -2652,6 +2700,22 @@ UINT32 ExitLaptopMode(UINT32 uiMode)
case LAPTOP_MODE_CAMPAIGNHISTORY_ABOUTTUS:
ExitCampaignHistory();
break;
case LAPTOP_MODE_MERCCOMPARE_MATRIX:
ExitMercCompareMatrix( );
break;
case LAPTOP_MODE_MERCCOMPARE_ANALYZE:
ExitMercCompareAnalyze( );
break;
case LAPTOP_MODE_MERCCOMPARE_CUSTOMERS:
ExitMercCompareCustomers( );
break;
case LAPTOP_MODE_MERCCOMPARE_MAIN:
ExitMercCompareMain();
break;
}
if( ( uiMode != LAPTOP_MODE_NONE )&&( uiMode < LAPTOP_MODE_WWW ) )
@@ -4250,6 +4314,35 @@ if( (gubQuest[ QUEST_FIX_LAPTOP ] != QUESTINPROGRESS) || (gGameUBOptions.LaptopQ
}
break;
case MERCCOMPARE_BOOKMARK:
{
// if the option is off, we instead link to a 'broken' website
if ( !gGameExternalOptions.fCampaignHistoryWebSite )
{
guiCurrentWWWMode=LAPTOP_MODE_BROKEN_LINK;
guiCurrentLaptopMode=LAPTOP_MODE_BROKEN_LINK;
return GoToWebPage(LAPTOP_MODE_BROKEN_LINK);
}
guiCurrentWWWMode = LAPTOP_MODE_MERCCOMPARE_MAIN;
guiCurrentLaptopMode = LAPTOP_MODE_MERCCOMPARE_MAIN;
// do we have to have a World Wide Wait
if ( LaptopSaveInfo.fVisitedBookmarkAlready[MERCCOMPARE_BOOKMARK] == FALSE )
{
// reset flag and set load pending flag
LaptopSaveInfo.fVisitedBookmarkAlready[MERCCOMPARE_BOOKMARK] = TRUE;
fLoadPendingFlag = TRUE;
}
else
{
// fast reload
fLoadPendingFlag = TRUE;
fFastLoadFlag = TRUE;
}
}
break;
}
#ifdef JA2UB