mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@21 3b4a5df2-a311-0410-b5c6-a8a6f20db521
112 lines
2.5 KiB
C
112 lines
2.5 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,
|
|
};
|
|
|
|
|
|
/*
|
|
enum{
|
|
MAP_BORDER_RAISE_LEVEL=0,
|
|
MAP_BORDER_LOWER_LEVEL,
|
|
};
|
|
*/
|
|
|
|
|
|
#define MAP_LEVEL_MARKER_X 565
|
|
#define MAP_LEVEL_MARKER_Y 323
|
|
#define MAP_LEVEL_MARKER_DELTA 8
|
|
#define MAP_LEVEL_MARKER_WIDTH ( 620 - MAP_LEVEL_MARKER_X )
|
|
|
|
|
|
extern BOOLEAN fShowTownFlag;
|
|
extern BOOLEAN fShowMineFlag;
|
|
extern BOOLEAN fShowTeamFlag;
|
|
extern BOOLEAN fShowMilitia;
|
|
extern BOOLEAN fShowAircraftFlag;
|
|
extern BOOLEAN fShowItemsFlag;
|
|
extern BOOLEAN fZoomFlag;
|
|
//extern BOOLEAN fShowVehicleFlag;
|
|
|
|
//extern BOOLEAN fMapScrollDueToPanelButton;
|
|
//extern BOOLEAN fCursorIsOnMapScrollButtons;
|
|
//extern BOOLEAN fDisabledMapBorder;
|
|
|
|
// scroll animation
|
|
extern INT32 giScrollButtonState;
|
|
|
|
BOOLEAN LoadMapBorderGraphics( void );
|
|
void DeleteMapBorderGraphics( void );
|
|
void RenderMapBorder( void );
|
|
//void RenderMapBorderCorner( void );
|
|
//void ShowDestinationOfPlottedPath( STR16 pLoc );
|
|
//void ResetAircraftButton( void );
|
|
//void HandleMapScrollButtonStates( void );
|
|
|
|
void ToggleShowTownsMode( void );
|
|
void ToggleShowMinesMode( void );
|
|
void ToggleShowMilitiaMode( void );
|
|
void ToggleShowTeamsMode( void );
|
|
void ToggleAirspaceMode( void );
|
|
void ToggleItemsFilter( void );
|
|
|
|
void TurnOnShowTeamsMode( void );
|
|
void TurnOnAirSpaceMode( void );
|
|
void TurnOnItemFilterMode( void );
|
|
|
|
/*
|
|
// enable disable map border
|
|
void DisableMapBorderRegion( void );
|
|
void EnableMapBorderRegion( void );
|
|
*/
|
|
|
|
// 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 );
|
|
|
|
//void UpdateLevelButtonStates( void );
|
|
|
|
// create mouse regions for level markers
|
|
void CreateMouseRegionsForLevelMarkers( void );
|
|
void DeleteMouseRegionsForLevelMarkers( void );
|
|
|
|
void InitMapScreenFlags( void );
|
|
|
|
void MapBorderButtonOff( UINT8 ubBorderButtonIndex );
|
|
void MapBorderButtonOn( UINT8 ubBorderButtonIndex );
|
|
|
|
|
|
|
|
#endif |