mirror of https://github.com/AxioDL/metaforce.git
Merge commit '5f7b858'
This commit is contained in:
commit
37d78c03f1
hecl-gui
|
@ -1,7 +1,7 @@
|
||||||
#include "LaunchMenu.hpp"
|
#include "LaunchMenu.hpp"
|
||||||
#include "hecl/CVarCommons.hpp"
|
#include "hecl/CVarCommons.hpp"
|
||||||
|
|
||||||
extern hecl::BoolCVar* hecl::com_developer;
|
extern hecl::CVar* hecl::com_developer;
|
||||||
|
|
||||||
LaunchMenu::LaunchMenu(hecl::CVarCommons& commons, QWidget* parent)
|
LaunchMenu::LaunchMenu(hecl::CVarCommons& commons, QWidget* parent)
|
||||||
: QMenu("Launch Menu", parent),
|
: QMenu("Launch Menu", parent),
|
||||||
|
@ -86,10 +86,10 @@ void LaunchMenu::initDeepColor()
|
||||||
|
|
||||||
void LaunchMenu::initDeveloperMode()
|
void LaunchMenu::initDeveloperMode()
|
||||||
{
|
{
|
||||||
QAction* act = addAction("&Developer Mode");
|
QAction* act = addAction("Developer Mode");
|
||||||
act->setToolTip(QStringLiteral("Enable developer mode to use in-engine console commands."));
|
act->setToolTip(QStringLiteral("Enable developer mode to use in-engine console commands."));
|
||||||
act->setCheckable(true);
|
act->setCheckable(true);
|
||||||
act->setChecked(hecl::com_developer->value());
|
act->setChecked(hecl::com_developer->toBoolean());
|
||||||
connect(act, SIGNAL(triggered()), this, SLOT(developerModeTriggered()));
|
connect(act, SIGNAL(triggered()), this, SLOT(developerModeTriggered()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue