mirror of https://github.com/AxioDL/metaforce.git
Add LaunchMenu tooltips
This commit is contained in:
parent
ac46503212
commit
d1dc0aaa32
|
@ -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);
|
||||
addMenu(&m_msaaMenu);
|
||||
addMenu(&m_anisoMenu);
|
||||
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."));
|
||||
|
||||
initDeepColor();
|
||||
initDeveloperMode();
|
||||
|
@ -78,6 +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->setCheckable(true);
|
||||
act->setChecked(m_commons.getDeepColor());
|
||||
connect(act, SIGNAL(triggered()), this, SLOT(deepColorTriggered()));
|
||||
|
@ -86,6 +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->setCheckable(true);
|
||||
act->setChecked(hecl::com_developer->value());
|
||||
connect(act, SIGNAL(triggered()), this, SLOT(developerModeTriggered()));
|
||||
|
|
|
@ -705,7 +705,7 @@
|
|||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.14286pt; font-weight:400; font-style:normal;">
|
||||
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8pt; font-weight:400; font-style:normal;">
|
||||
<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Sans'; font-size:10pt; font-weight:600;">About HECL Frontend</span></p>
|
||||
<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Sans'; font-size:10pt;"><br />The hecl frontend UI is designed and built by </span><a href="https://axiodl.com"><span style=" font-family:'Noto Sans'; font-size:10pt; text-decoration: underline; color:#007af4;">Axiomatic Data Laboratories</span></a><span style=" font-family:'Noto Sans'; font-size:10pt;"> Copyright 2018<br /><br /></span><span style=" font-family:'Noto Sans'; font-size:10pt; font-weight:600;">Authors:</span><span style=" font-family:'Noto Sans'; font-size:10pt;"><br />Phillip &quot;Antidote&quot; Stephens<br />Jack &quot;jackoalan&quot; Andersen</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New'; font-size:10pt;">The MIT License</span></p>
|
||||
|
@ -810,7 +810,7 @@ p, li { white-space: pre-wrap; }
|
|||
<item>
|
||||
<widget class="QPushButton" name="browseBtn">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
|
|
Loading…
Reference in New Issue