Files
source/Ja2/mainmenuscreen.h
Marco Antonio J. Costaandmajcosta 86ad401186 add newline at end of file where it's lacking
.editorconfig already enforces it but it's getting changed piecemeal in
every commit. just get it done with.

the script:
```

find . -type f -not -path "./.git/*" -not -path "./.vs/*" | while read -r file; do
	isFile=$(file -0 "$file" | cut -d $'\0' -f2)
	case "$isFile" in
		(*text*)
			echo "$file is text"
			if [[ $(tail -c 1 "$file" | wc -l) -ne 1 ]]; then
				echo "" >> "$file"
			fi
			;;
		(*)
			echo "file isn't text"
			;;
	esac
done
```
2024-12-14 19:05:48 -03:00

41 lines
842 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