raze/source/launcher/launcherwindow.h
2024-01-12 00:22:08 +01:00

37 lines
760 B
C++

#pragma once
#include <zwidget/core/widget.h>
#include "tarray.h"
#include "zstring.h"
class TabWidget;
class LauncherBanner;
class LauncherButtonbar;
class PlayGamePage;
class SettingsPage;
struct WadStuff;
class LauncherWindow : public Widget
{
public:
static int ExecModal(WadStuff* wads, int numwads, int defaultiwad, int* autoloadflags);
LauncherWindow(WadStuff* wads, int numwads, int defaultiwad, int* autoloadflags);
void UpdateLanguage();
void Start();
void Exit();
private:
void OnClose() override;
void OnGeometryChanged() override;
LauncherBanner* Banner = nullptr;
TabWidget* Pages = nullptr;
LauncherButtonbar* Buttonbar = nullptr;
PlayGamePage* PlayGame = nullptr;
SettingsPage* Settings = nullptr;
int ExecResult = -1;
};