raze/source/launcher/playgamepage.h

33 lines
673 B
C
Raw Normal View History

2024-01-11 23:22:08 +00:00
#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;
};