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

32 lines
673 B
C++

#pragma once
#include <zwidget/core/widget.h>
class LauncherWindow;
class TextLabel;
class ListView;
class LineEdit;
struct WadStuff;
class PlayGamePage : public Widget
{
public:
PlayGamePage(LauncherWindow* launcher, WadStuff* wads, int numwads, int defaultiwad);
void UpdateLanguage();
std::string GetExtraArgs();
int GetSelectedGame();
private:
void OnGeometryChanged() override;
void OnSetFocus() override;
void OnGamesListActivated();
LauncherWindow* Launcher = nullptr;
TextLabel* WelcomeLabel = nullptr;
TextLabel* SelectLabel = nullptr;
TextLabel* ParametersLabel = nullptr;
ListView* GamesList = nullptr;
LineEdit* ParametersEdit = nullptr;
};