Updated CVar API

This commit is contained in:
Jack Andersen 2018-01-22 18:40:54 -10:00
parent 37d78c03f1
commit 2c56c16cf2
1 changed files with 5 additions and 5 deletions

View File

@ -40,9 +40,9 @@ LaunchMenu::LaunchMenu(hecl::CVarCommons& commons, QWidget* parent)
m_apiMenu.addActions(m_apiGroup.actions());
m_msaaMenu.addActions(m_msaaGroup.actions());
m_anisoMenu.addActions(m_anisoGroup.actions());
addMenu(&m_apiMenu)->setToolTip(QStringLiteral("Graphics API to use for rendering graphics."));
addMenu(&m_msaaMenu)->setToolTip(QStringLiteral("Select number of samples for MSAA rendering."));
addMenu(&m_anisoMenu)->setToolTip(QStringLiteral("Select number of samples for anisotropic texture filtering."));
addMenu(&m_apiMenu)->setToolTip(m_commons.m_graphicsApi->rawHelp().data());
addMenu(&m_msaaMenu)->setToolTip(m_commons.m_drawSamples->rawHelp().data());
addMenu(&m_anisoMenu)->setToolTip(m_commons.m_texAnisotropy->rawHelp().data());
initDeepColor();
initDeveloperMode();
@ -78,7 +78,7 @@ void LaunchMenu::initAnisoAction(const QString& action)
void LaunchMenu::initDeepColor()
{
QAction* act = addAction("Deep Color");
act->setToolTip(QStringLiteral("Use 48-bit framebuffer for deep-color displays (e.g. 4K with HDR)."));
act->setToolTip(m_commons.m_deepColor->rawHelp().data());
act->setCheckable(true);
act->setChecked(m_commons.getDeepColor());
connect(act, SIGNAL(triggered()), this, SLOT(deepColorTriggered()));
@ -87,7 +87,7 @@ void LaunchMenu::initDeepColor()
void LaunchMenu::initDeveloperMode()
{
QAction* act = addAction("Developer Mode");
act->setToolTip(QStringLiteral("Enable developer mode to use in-engine console commands."));
act->setToolTip(hecl::com_developer->rawHelp().data());
act->setCheckable(true);
act->setChecked(hecl::com_developer->toBoolean());
connect(act, SIGNAL(triggered()), this, SLOT(developerModeTriggered()));