mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
- 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:
@@ -18,6 +18,26 @@ void Display2Line2ShadowHorizontal( UINT16 usStartX, UINT16 usStartY, UINT16 End
|
||||
// the maximum number of entries that can be shown at once. Increase requires recompilation!
|
||||
#define DROPDOWN_REGIONS 8
|
||||
|
||||
// different dropdowns can interfere with each other
|
||||
enum definedDropDowns
|
||||
{
|
||||
DROPDOWNNR_APPEARANCE = 0,
|
||||
DROPDOWNNR_APPEARANCECARE,
|
||||
DROPDOWNNR_REFINEMENT,
|
||||
DROPDOWNNR_REFINEMENTCARE,
|
||||
DROPDOWNNR_NATIONALITY,
|
||||
DROPDOWNNR_HATEDNATIONALITY,
|
||||
DROPDOWNNR_HATEDNATIONALITYCARE,
|
||||
DROPDOWNNR_RACIST,
|
||||
DROPDOWNNR_RACE,
|
||||
DROPDOWNNR_SEXIST,
|
||||
DROPDOWNNR_RACISTFEATURE,
|
||||
|
||||
DROPDOWNNR_MERCCOMPARE1,
|
||||
DROPDOWNNR_MERCCOMPARE2,
|
||||
DROPDOWNNR_MERCCOMPARE_SQUADSELECTION,
|
||||
};
|
||||
|
||||
/*
|
||||
* As we cannot directly add our callbacks (we need a static callback due to the way MSYS_DefineRegion(...) works, which utterly fails if we have multiple instance of a class),
|
||||
* we use a very odd looking workaround.
|
||||
@@ -118,6 +138,11 @@ public:
|
||||
*/
|
||||
INT16 GetSelectedEntryKey() { return mEntryVector[mSelectedEntry].first; }
|
||||
|
||||
/*
|
||||
* If aKey exists among our keys, set it as the current one
|
||||
*/
|
||||
void SetSelectedEntryKey( INT16 aKey );
|
||||
|
||||
/*
|
||||
* Get width of entire DropDownBase
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user