mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-09-07 02:10:14 -04:00
08321699cd
* Start game execution as soon as a disk image is available * Do not update dDemo_c if prelaunch document is visible * Prevent intro music until prelaunch has popped * Replace "Start Game" references with "Play" * Make prelaunch layout respect mirror mode * Add drop shadow to prelaunch disk-status and version-info * Remove ImGui prelaunch * Add "Change Disk Image" button to prelaunch options * Actually validate discs and make prelaunch very betterer :) * Check your build before pushing dumbass, and go to sleep * "Disc" consistency, adjust restart notice logic * Better LanguageSelect logic * Add restart notice to SaveTypeSelect * Added wind sounds to the pre-launch menu * Add Modal document, use it for disc verification * Consolidate Modal and PresetWindow * Squash various bugs, rearrange document flow * Allow Window inheritors to opt-out of being toggleable * Tweak focus behavior/syntax * Implement "Restart Now" option * Tweaks * Remove a bunch of dynamic_cast * Update README.md --------- Co-authored-by: Luke Street <luke@street.dev>
24 lines
396 B
C++
24 lines
396 B
C++
#pragma once
|
|
#include "component.hpp"
|
|
#include "window.hpp"
|
|
|
|
#include <memory>
|
|
#include <vector>
|
|
|
|
namespace dusk::ui {
|
|
|
|
class PresetWindow : public WindowSmall {
|
|
public:
|
|
PresetWindow();
|
|
|
|
bool focus() override;
|
|
|
|
protected:
|
|
bool handle_nav_command(Rml::Event& event, NavCommand cmd) override;
|
|
|
|
private:
|
|
std::vector<std::unique_ptr<Component>> mButtons;
|
|
};
|
|
|
|
} // namespace dusk::ui
|