added render backend selection to the new IWAD picker.

Unlike VkDoom we still need this.
This commit is contained in:
Christoph Oelckers 2024-01-04 19:25:25 +01:00
commit a2a7667442
5 changed files with 78 additions and 135 deletions

View file

@ -16,6 +16,8 @@ public:
void Toggle();
double GetPreferredHeight() const;
std::function<void(bool)> FuncChanged;
void SetRadioStyle(bool on) { radiostyle = on; }
protected:
void OnPaint(Canvas* canvas) override;
@ -27,5 +29,7 @@ protected:
private:
std::string text;
bool checked = false;
bool radiostyle = false;
bool mouseDownActive = false;
};