mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
- added xml options mor main menu - StretchImage if 1 the image is stretched to the screen size - CenterImage if 1 the image is centered in X - ImagePositionRelative if 0 the image is displayed on the same place on any resolution, ignored when StretchImage is active - removed obsolete tags - new buttons in main menu: "n" new game, "q" quit git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5498 3b4a5df2-a311-0410-b5c6-a8a6f20db521
40 lines
841 B
C
40 lines
841 B
C
#ifndef _MAINMENU_H
|
|
#define _MAINMENU_H
|
|
|
|
//MainMenu by Jazz
|
|
#define MAX_MAIN_MENU_IMAGE 200
|
|
#define MAX_MAIN_MENU_CHARS 500
|
|
#define MAX_ELEMENT 20
|
|
|
|
typedef struct
|
|
{
|
|
UINT32 uiIndex; // add
|
|
BOOLEAN Visible;
|
|
CHAR8 Description[MAX_MAIN_MENU_CHARS];
|
|
CHAR8 FileName[MAX_MAIN_MENU_CHARS];
|
|
BOOLEAN FitToScreen;
|
|
BOOLEAN StretchImage;
|
|
BOOLEAN CenterImage;
|
|
BOOLEAN ImagePositionRelative;
|
|
INT32 ImagePositionX;
|
|
INT32 ImagePositionY;
|
|
|
|
UINT32 MAINMENU_Y;
|
|
UINT32 MAINMENU_Y_SPACE;
|
|
UINT32 MAINMENU_X;
|
|
|
|
} MAIN_MENU_VALUES;
|
|
|
|
//Main Menu layout by Jazz
|
|
extern MAIN_MENU_VALUES gMainMenulayout[MAX_MAIN_MENU_IMAGE];
|
|
|
|
extern UINT32 MAINMENU_Y;
|
|
extern UINT32 MAINMENU_X;
|
|
extern UINT32 MAINMENU_Y_SPACE;
|
|
|
|
BOOLEAN InitMainMenu( );
|
|
void ClearMainMenu( );
|
|
|
|
void InitDependingGameStyleOptions();
|
|
|
|
#endif |