mirror of https://github.com/AxioDL/metaforce.git
46 lines
918 B
C++
46 lines
918 B
C++
#pragma once
|
|
|
|
#include <QMenu>
|
|
|
|
namespace hecl {
|
|
struct CVarCommons;
|
|
}
|
|
|
|
class QAction;
|
|
|
|
class LaunchMenu : public QMenu {
|
|
Q_OBJECT
|
|
hecl::CVarCommons& m_commons;
|
|
|
|
QMenu m_apiMenu;
|
|
QMenu m_msaaMenu;
|
|
QMenu m_anisoMenu;
|
|
|
|
QActionGroup m_apiGroup;
|
|
QActionGroup m_msaaGroup;
|
|
QActionGroup m_anisoGroup;
|
|
|
|
QAction* m_developerMode = nullptr;
|
|
QAction* m_enableCheats = nullptr;
|
|
|
|
void initApiAction(const QString& action);
|
|
void initMsaaAction(const QString& action);
|
|
void initAnisoAction(const QString& action);
|
|
void initDeepColor();
|
|
void initDeveloperMode();
|
|
void initCheats();
|
|
|
|
public:
|
|
explicit LaunchMenu(hecl::CVarCommons& commons, QWidget* parent = Q_NULLPTR);
|
|
~LaunchMenu() override;
|
|
|
|
public slots:
|
|
void apiTriggered();
|
|
void msaaTriggered();
|
|
void anisoTriggered();
|
|
void deepColorTriggered();
|
|
void developerModeTriggered();
|
|
void cheatsTriggered();
|
|
void editRuntimeArgs();
|
|
};
|