raze/source/launcher/launcherwindow.h

38 lines
760 B
C
Raw Normal View History

2024-01-04 19:37:57 +00:00
#pragma once
#include <zwidget/core/widget.h>
2024-01-11 23:22:08 +00:00
#include "tarray.h"
#include "zstring.h"
class TabWidget;
class LauncherBanner;
class LauncherButtonbar;
class PlayGamePage;
class SettingsPage;
2024-01-04 19:37:57 +00:00
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);
2024-01-11 23:22:08 +00:00
void UpdateLanguage();
2024-01-04 19:37:57 +00:00
2024-01-11 23:22:08 +00:00
void Start();
void Exit();
2024-01-04 19:37:57 +00:00
2024-01-11 23:22:08 +00:00
private:
2024-01-04 19:37:57 +00:00
void OnClose() override;
void OnGeometryChanged() override;
2024-01-11 23:22:08 +00:00
LauncherBanner* Banner = nullptr;
TabWidget* Pages = nullptr;
LauncherButtonbar* Buttonbar = nullptr;
PlayGamePage* PlayGame = nullptr;
SettingsPage* Settings = nullptr;
2024-01-04 19:37:57 +00:00
int ExecResult = -1;
};