From 18232b56e449560a4a88cd538f9ed71cd63f5482 Mon Sep 17 00:00:00 2001 From: David Marsh Date: Wed, 31 Jul 2024 14:24:39 +0100 Subject: [PATCH] Add help info --- config-dialog.cpp | 18 ++++++++++++++++++ data/locale/en-US.ini | 4 ++++ 2 files changed, 22 insertions(+) diff --git a/config-dialog.cpp b/config-dialog.cpp index a0c758a..93a86b4 100644 --- a/config-dialog.cpp +++ b/config-dialog.cpp @@ -170,13 +170,31 @@ OBSBasicSettings::OBSBasicSettings(QMainWindow *parent) : QDialog(parent) scrollArea->setFrameShape(QFrame::NoFrame); settingsPages->addWidget(scrollArea); + // Help page auto helpPage = new QWidget; + auto helpPageLayout = new QVBoxLayout; + helpPage->setLayout(helpPageLayout); scrollArea = new QScrollArea; scrollArea->setWidget(helpPage); scrollArea->setWidgetResizable(true); scrollArea->setLineWidth(0); scrollArea->setFrameShape(QFrame::NoFrame); + + auto helpInfoBox = ConfigUtils::generateSettingsGroupBox(QString::fromUtf8(obs_module_text("HelpTitle"))); + helpInfoBox->setStyleSheet("padding-top: 12px"); + auto helpLayout = new QVBoxLayout; + helpInfoBox->setLayout(helpLayout); + + auto helpLabel = new QLabel(QString::fromUtf8(obs_module_text("HelpText"))); + helpLabel->setStyleSheet("font-size: 14px"); + helpLabel->setWordWrap(true); + helpLabel->setTextFormat(Qt::RichText); + helpLabel->setOpenExternalLinks(true); + helpLayout->addWidget(helpLabel, 1); + helpPageLayout->addWidget(helpInfoBox, 1, Qt::AlignTop); + settingsPages->addWidget(scrollArea); + //mainOutputsPage diff --git a/data/locale/en-US.ini b/data/locale/en-US.ini index 492ba3c..7bb65b2 100644 --- a/data/locale/en-US.ini +++ b/data/locale/en-US.ini @@ -50,6 +50,10 @@ SupportButton="Support Aitum" SupportTitle="Supporting Aitum" SupportText="Aitum Multistream is provided free by the Aitum Team for you, the streaming community.

Your support is essential in helping us to continue our journey of making useful tools that empower creators to make awesome content.

If our tools have helped streamline your workflows, enabled your channel to grow or even inspired you to start crearting content, please consider supporting our team.

Support the Aitum Team" +# Help Page +HelpTitle="Getting Help with Aitum Multistream" +HelpText="As Aitum Multistream has only just released, we have yet to discover the burning issues from the community.

In the coming weeks after launch, an update will be released linking a dedicated troubleshooter for Multistream.

Until then, please join our Discord to discuss Multistream & Report issues!" + # Main canvas SettingsMainCanvasTitle="Main Canvas" SettingsMainCanvasDescription="You can manage your Main Canvas (the default canvas) settings here. \nPlease note that to change your Built-in Output settings, you need to do this from within the normal OBS settings."