2020-04-12 08:21:50 +02:00
|
|
|
#pragma once
|
|
|
|
|
2020-04-23 21:18:40 +02:00
|
|
|
#include "zstring.h"
|
2020-05-26 23:12:04 +02:00
|
|
|
#include "intrect.h"
|
2020-04-12 08:21:50 +02:00
|
|
|
|
2020-09-28 22:36:43 +02:00
|
|
|
struct event_t;
|
|
|
|
|
2020-04-12 08:21:50 +02:00
|
|
|
struct SystemCallbacks
|
|
|
|
{
|
|
|
|
bool (*WantGuiCapture)();
|
|
|
|
bool (*WantLeftButton)();
|
|
|
|
bool (*NetGame)();
|
|
|
|
bool (*WantNativeMouse)();
|
|
|
|
bool (*CaptureModeInGame)();
|
2020-04-23 21:18:40 +02:00
|
|
|
void (*CrashInfo)(char* buffer, size_t bufflen, const char* lfstr);
|
2020-04-23 22:58:02 +02:00
|
|
|
void (*PlayStartupSound)(const char* name);
|
2020-05-26 23:12:04 +02:00
|
|
|
bool (*IsSpecialUI)();
|
|
|
|
bool (*DisableTextureFilter)();
|
|
|
|
void (*OnScreenSizeChanged)();
|
|
|
|
IntRect(*GetSceneRect)();
|
|
|
|
FString(*GetLocationDescription)();
|
2020-06-14 18:57:55 +02:00
|
|
|
void (*MenuDim)();
|
2020-08-29 22:07:47 +02:00
|
|
|
FString(*GetPlayerName)(int i);
|
2020-09-28 22:36:43 +02:00
|
|
|
bool (*DispatchEvent)(event_t* ev);
|
2020-10-04 21:15:51 +02:00
|
|
|
bool (*CheckGame)(const char* nm);
|
|
|
|
int (*GetGender)();
|
2020-04-12 08:21:50 +02:00
|
|
|
};
|
|
|
|
|
2020-10-03 17:04:45 +02:00
|
|
|
extern SystemCallbacks sysCallbacks;
|
2020-04-23 21:18:40 +02:00
|
|
|
|
|
|
|
struct WadStuff
|
|
|
|
{
|
|
|
|
FString Path;
|
|
|
|
FString Name;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
extern FString endoomName;
|
|
|
|
extern bool batchrun;
|
2020-09-27 10:03:53 +02:00
|
|
|
extern float menuBlurAmount;
|
2020-10-05 00:46:24 +02:00
|
|
|
extern bool generic_ui;
|
|
|
|
|
|
|
|
void UpdateGenericUI(bool cvar);
|