mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
For more info, see http://www.ja-galaxy-forum.com/ubbthreads.php/topics/334918#Post334918 Requires GameDir >= r2099. Does not break savegame compatibility. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7384 3b4a5df2-a311-0410-b5c6-a8a6f20db521
109 lines
3.1 KiB
C
109 lines
3.1 KiB
C
#ifndef __MAP_INTERFACE_BORDER_H
|
|
#define __MAP_INTERFACE_BORDER_H
|
|
|
|
#include "Types.h"
|
|
|
|
//#define MAP_BORDER_START_X 261
|
|
//#define MAP_BORDER_START_Y 0
|
|
|
|
|
|
|
|
|
|
// scroll directions
|
|
enum{
|
|
ZOOM_MAP_SCROLL_UP =0,
|
|
ZOOM_MAP_SCROLL_DWN,
|
|
ZOOM_MAP_SCROLL_RIGHT,
|
|
ZOOM_MAP_SCROLL_LEFT,
|
|
};
|
|
|
|
enum{
|
|
EAST_DIR = 0,
|
|
WEST_DIR,
|
|
NORTH_DIR,
|
|
SOUTH_DIR,
|
|
};
|
|
enum{
|
|
MAP_BORDER_TOWN_BTN =0,
|
|
MAP_BORDER_MINE_BTN,
|
|
MAP_BORDER_TEAMS_BTN,
|
|
MAP_BORDER_AIRSPACE_BTN,
|
|
MAP_BORDER_ITEM_BTN,
|
|
MAP_BORDER_MILITIA_BTN,
|
|
MAP_BORDER_MOBILE_BTN, // HEADROCK HAM 4: Mobile Militia Restrictions button
|
|
MAP_BORDER_DISEASE_BTN, // Flugente: toggle disease views
|
|
NUM_MAP_BORDER_BTNS, // end enumeration marker
|
|
};
|
|
|
|
|
|
// HEADROCK HAM 4: Turned these into EXTERNS to allow dynamic modification
|
|
//#define MAP_LEVEL_MARKER_X (MAP_BORDER_X + ((SCREEN_WIDTH - MAP_BORDER_X) / 2 + 114)) //MAP_BORDER_X + MAP_BORDER_X_OFFSET + 384 //(SCREEN_WIDTH - 75) //565
|
|
extern UINT16 MAP_LEVEL_MARKER_X;
|
|
extern UINT16 MAP_LEVEL_MARKER_Y;
|
|
extern UINT16 MAP_LEVEL_MARKER_DELTA;
|
|
extern UINT16 MAP_LEVEL_MARKER_WIDTH;
|
|
|
|
|
|
extern BOOLEAN fShowTownFlag;
|
|
extern BOOLEAN fShowMineFlag;
|
|
extern BOOLEAN fShowTeamFlag;
|
|
extern BOOLEAN fShowMilitia;
|
|
extern BOOLEAN fShowAircraftFlag;
|
|
extern BOOLEAN fShowItemsFlag;
|
|
extern BOOLEAN fShowMobileRestrictionsFlag; // HEADROCK HAM 4: Manual Mobile Militia mode
|
|
extern UINT8 fShowStrategicDiseaseFlag; // Flugente: disease
|
|
//extern BOOLEAN fShowVehicleFlag;
|
|
|
|
// scroll animation
|
|
extern INT32 giScrollButtonState;
|
|
|
|
BOOLEAN LoadMapBorderGraphics( void );
|
|
void DeleteMapBorderGraphics( void );
|
|
void RenderMapBorder( void );
|
|
//void ShowDestinationOfPlottedPath( STR16 pLoc );
|
|
//void ResetAircraftButton( void );
|
|
|
|
void ToggleShowTownsMode( void );
|
|
void ToggleShowMinesMode( void );
|
|
void ToggleShowMilitiaMode( void );
|
|
void ToggleShowTeamsMode( void );
|
|
void ToggleAirspaceMode( void );
|
|
void ToggleItemsFilter( void );
|
|
// HEADROCK HAM 4: Toggle Mobile Militia Restrictions Filter
|
|
void ToggleMobileFilter( void );
|
|
|
|
// Flugente: disease
|
|
void ToggleDiseaseFilter( );
|
|
|
|
void TurnOnShowTeamsMode( void );
|
|
void TurnOnAirSpaceMode( void );
|
|
void TurnOnItemFilterMode( void );
|
|
// HEADROCK HAM 4: Turn on Mobile Militia Restrictions Filter
|
|
void TurnOnMobileFilterMode( void );
|
|
|
|
// Flugente: disease
|
|
void TurnOnDiseaseFilterMode();
|
|
|
|
// create/destroy buttons for map border region
|
|
void DeleteMapBorderButtons( void );
|
|
BOOLEAN CreateButtonsForMapBorder( void );
|
|
|
|
// render the pop up for eta in path plotting in map screen
|
|
void RenderMapBorderEtaPopUp( void );
|
|
BOOLEAN DoesPlayerHaveAnyMilitia( void );
|
|
// HEADROCK HAM 4: Same with Mobiles.
|
|
UINT8 DoesPlayerHaveAnyMobileMilitia( void );
|
|
|
|
// create mouse regions for level markers
|
|
void CreateMouseRegionsForLevelMarkers( void );
|
|
void DeleteMouseRegionsForLevelMarkers( void );
|
|
|
|
void InitMapScreenFlags( void );
|
|
|
|
void MapBorderButtonOff( UINT8 ubBorderButtonIndex );
|
|
void MapBorderButtonOn( UINT8 ubBorderButtonIndex );
|
|
|
|
// HEADROCK HAM 4: Initialize coordinates for Map Border buttons
|
|
void InitMapBorderButtonCoordinates();
|
|
|
|
#endif |