mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-27 14:32:26 +00:00
0dc670da8e
Mainly to have the crossfade, the other styles are mostly bonus. This also adds proper scoping to the cutscene code, which needs to run in UI scope.
54 lines
1.4 KiB
C++
54 lines
1.4 KiB
C++
#pragma once
|
|
|
|
#include "zstring.h"
|
|
#include "intrect.h"
|
|
|
|
struct event_t;
|
|
class FRenderState;
|
|
class FGameTexture;
|
|
enum EUpscaleFlags : int;
|
|
|
|
struct SystemCallbacks
|
|
{
|
|
bool (*WantGuiCapture)();
|
|
bool (*WantLeftButton)();
|
|
bool (*NetGame)();
|
|
bool (*WantNativeMouse)();
|
|
bool (*CaptureModeInGame)();
|
|
void (*CrashInfo)(char* buffer, size_t bufflen, const char* lfstr);
|
|
void (*PlayStartupSound)(const char* name);
|
|
bool (*IsSpecialUI)();
|
|
bool (*DisableTextureFilter)();
|
|
void (*OnScreenSizeChanged)();
|
|
IntRect(*GetSceneRect)();
|
|
FString(*GetLocationDescription)();
|
|
void (*MenuDim)();
|
|
FString(*GetPlayerName)(int i);
|
|
bool (*DispatchEvent)(event_t* ev);
|
|
bool (*CheckGame)(const char* nm);
|
|
int (*GetGender)();
|
|
void (*MenuClosed)();
|
|
bool (*CheckMenudefOption)(const char* opt);
|
|
void (*ConsoleToggled)(int state);
|
|
bool (*PreBindTexture)(FRenderState* state, FGameTexture*& tex, EUpscaleFlags& flags, int& scaleflags, int& clampmode, int& translation, int& overrideshader);
|
|
void (*FontCharCreated)(FGameTexture* base, FGameTexture* untranslated);
|
|
void (*ToggleFullConsole)();
|
|
void (*StartCutscene)(bool blockui);
|
|
void (*SetTransition)(int type);
|
|
};
|
|
|
|
extern SystemCallbacks sysCallbacks;
|
|
|
|
struct WadStuff
|
|
{
|
|
FString Path;
|
|
FString Name;
|
|
};
|
|
|
|
|
|
extern FString endoomName;
|
|
extern bool batchrun;
|
|
extern float menuBlurAmount;
|
|
extern bool generic_ui;
|
|
|
|
void UpdateGenericUI(bool cvar);
|