2020-04-12 06:21:50 +00:00
|
|
|
#pragma once
|
|
|
|
|
2020-04-23 19:18:40 +00:00
|
|
|
#include "zstring.h"
|
2020-05-26 21:12:04 +00:00
|
|
|
#include "intrect.h"
|
2020-04-12 06:21:50 +00:00
|
|
|
|
2020-09-28 20:36:43 +00:00
|
|
|
struct event_t;
|
2020-11-10 08:08:48 +00:00
|
|
|
class FRenderState;
|
|
|
|
class FGameTexture;
|
2020-11-10 20:44:15 +00:00
|
|
|
enum EUpscaleFlags : int;
|
2020-09-28 20:36:43 +00:00
|
|
|
|
2020-04-12 06:21:50 +00:00
|
|
|
struct SystemCallbacks
|
|
|
|
{
|
|
|
|
bool (*WantGuiCapture)();
|
|
|
|
bool (*WantLeftButton)();
|
|
|
|
bool (*NetGame)();
|
|
|
|
bool (*WantNativeMouse)();
|
|
|
|
bool (*CaptureModeInGame)();
|
2020-04-23 19:18:40 +00:00
|
|
|
void (*CrashInfo)(char* buffer, size_t bufflen, const char* lfstr);
|
2020-04-23 20:58:02 +00:00
|
|
|
void (*PlayStartupSound)(const char* name);
|
2020-05-26 21:12:04 +00:00
|
|
|
bool (*IsSpecialUI)();
|
|
|
|
bool (*DisableTextureFilter)();
|
|
|
|
void (*OnScreenSizeChanged)();
|
|
|
|
IntRect(*GetSceneRect)();
|
|
|
|
FString(*GetLocationDescription)();
|
2020-06-14 16:57:55 +00:00
|
|
|
void (*MenuDim)();
|
2020-08-29 20:07:47 +00:00
|
|
|
FString(*GetPlayerName)(int i);
|
2020-09-28 20:36:43 +00:00
|
|
|
bool (*DispatchEvent)(event_t* ev);
|
2020-10-04 19:15:51 +00:00
|
|
|
bool (*CheckGame)(const char* nm);
|
|
|
|
int (*GetGender)();
|
2020-10-08 16:02:25 +00:00
|
|
|
void (*MenuClosed)();
|
|
|
|
bool (*CheckMenudefOption)(const char* opt);
|
2020-10-25 08:20:26 +00:00
|
|
|
void (*ConsoleToggled)(int state);
|
2020-11-10 15:22:02 +00:00
|
|
|
bool (*PreBindTexture)(FRenderState* state, FGameTexture*& tex, EUpscaleFlags& flags, int& scaleflags, int& clampmode, int& translation, int& overrideshader);
|
2021-05-30 21:00:06 +00:00
|
|
|
void (*FontCharCreated)(FGameTexture* base, FGameTexture* untranslated);
|
2021-05-22 11:02:34 +00:00
|
|
|
void (*ToggleFullConsole)();
|
|
|
|
void (*StartCutscene)(bool blockui);
|
2020-04-12 06:21:50 +00:00
|
|
|
};
|
|
|
|
|
2020-10-03 15:04:45 +00:00
|
|
|
extern SystemCallbacks sysCallbacks;
|
2020-04-23 19:18:40 +00:00
|
|
|
|
|
|
|
struct WadStuff
|
|
|
|
{
|
|
|
|
FString Path;
|
|
|
|
FString Name;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
extern FString endoomName;
|
|
|
|
extern bool batchrun;
|
2020-09-27 08:03:53 +00:00
|
|
|
extern float menuBlurAmount;
|
2020-10-04 22:46:24 +00:00
|
|
|
extern bool generic_ui;
|
|
|
|
|
|
|
|
void UpdateGenericUI(bool cvar);
|