#pragma once #include #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; };