43 changed files with 123 additions and 110 deletions
@ -1,72 +0,0 @@
|
||||
//HEADER_GOES_HERE
|
||||
#pragma once |
||||
|
||||
#include <stdint.h> |
||||
|
||||
namespace devilution { |
||||
|
||||
enum _mainmenu_selections : uint8_t { |
||||
MAINMENU_NONE, |
||||
MAINMENU_SINGLE_PLAYER, |
||||
MAINMENU_MULTIPLAYER, |
||||
MAINMENU_REPLAY_INTRO, |
||||
MAINMENU_SHOW_SUPPORT, |
||||
MAINMENU_SHOW_CREDITS, |
||||
MAINMENU_EXIT_DIABLO, |
||||
MAINMENU_ATTRACT_MODE, |
||||
}; |
||||
|
||||
enum _selhero_selections : uint8_t { |
||||
SELHERO_NEW_DUNGEON, |
||||
SELHERO_CONTINUE, |
||||
SELHERO_CONNECT, |
||||
SELHERO_PREVIOUS, |
||||
}; |
||||
|
||||
struct _uidefaultstats { |
||||
Uint16 strength; |
||||
Uint16 magic; |
||||
Uint16 dexterity; |
||||
Uint16 vitality; |
||||
}; |
||||
|
||||
struct _uiheroinfo { |
||||
struct _uiheroinfo *next; |
||||
char name[16]; |
||||
Uint16 level; |
||||
HeroClass heroclass; |
||||
Uint8 herorank; |
||||
Uint16 strength; |
||||
Uint16 magic; |
||||
Uint16 dexterity; |
||||
Uint16 vitality; |
||||
Sint32 gold; |
||||
Sint32 hassaved; |
||||
bool spawned; |
||||
}; |
||||
|
||||
void UiDestroy(); |
||||
void UiTitleDialog(); |
||||
void UiSetSpawned(bool bSpawned); |
||||
void UiInitialize(); |
||||
bool UiValidPlayerName(const char *name); /* check */ |
||||
void UiSelHeroMultDialog(bool (*fninfo)(bool (*fninfofunc)(_uiheroinfo *)), bool (*fncreate)(_uiheroinfo *), bool (*fnremove)(_uiheroinfo *), void (*fnstats)(unsigned int, _uidefaultstats *), _selhero_selections *dlgresult, char (*name)[16]); |
||||
void UiSelHeroSingDialog(bool (*fninfo)(bool (*fninfofunc)(_uiheroinfo *)), bool (*fncreate)(_uiheroinfo *), bool (*fnremove)(_uiheroinfo *), void (*fnstats)(unsigned int, _uidefaultstats *), _selhero_selections *dlgresult, char (*name)[16], _difficulty *difficulty); |
||||
bool UiCreditsDialog(); |
||||
bool UiSupportDialog(); |
||||
bool UiMainMenuDialog(const char *name, _mainmenu_selections *pdwResult, void (*fnSound)(const char *file), int attractTimeOut); |
||||
bool UiProgressDialog(const char *msg, int (*fnfunc)(), int rate); |
||||
void UiProfileCallback(); |
||||
void UiProfileDraw(); |
||||
bool UiCategoryCallback(int a1, int a2, int a3, int a4, int a5, DWORD *a6, DWORD *a7); |
||||
bool UiGetDataCallback(int game_type, int data_code, void *a3, int a4, int a5); |
||||
bool UiAuthCallback(int a1, char *a2, char *a3, char a4, char *a5, char *lpBuffer, int cchBufferMax); |
||||
bool UiSoundCallback(int a1, int type, int a3); |
||||
bool UiDrawDescCallback(int game_type, DWORD color, const char *lpString, char *a4, int a5, UINT align, time_t a7, HDC *a8); |
||||
bool UiCreateGameCallback(int a1, int a2, int a3, int a4, int a5, int a6); |
||||
bool UiArtCallback(int game_type, unsigned int art_code, SDL_Color *pPalette, BYTE *pBuffer, DWORD dwBuffersize, DWORD *pdwWidth, DWORD *pdwHeight, DWORD *pdwBpp); |
||||
int UiSelectGame(GameData *gameData, int *playerId); |
||||
int UiSelectProvider(GameData *gameData); |
||||
void UiSetupPlayerInfo(char *infostr, _uiheroinfo *pInfo, Uint32 type); |
||||
|
||||
} // namespace devilution
|
||||
Loading…
Reference in new issue