From be56281e71d23bcb61a453b1013838648887fc4e Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Mon, 27 Mar 2023 19:35:42 +0300 Subject: [PATCH] Improved layout of 1st welcome screen. Added social buttons --- launcher/firstLaunch/firstlaunch_moc.cpp | 17 +++- launcher/firstLaunch/firstlaunch_moc.h | 6 ++ launcher/firstLaunch/firstlaunch_moc.ui | 109 ++++++++++++++++++----- 3 files changed, 107 insertions(+), 25 deletions(-) diff --git a/launcher/firstLaunch/firstlaunch_moc.cpp b/launcher/firstLaunch/firstlaunch_moc.cpp index c5b519b08..af334374a 100644 --- a/launcher/firstLaunch/firstlaunch_moc.cpp +++ b/launcher/firstLaunch/firstlaunch_moc.cpp @@ -91,7 +91,7 @@ void FirstLaunchView::on_pushButtonDataCopy_clicked() void FirstLaunchView::on_pushButtonDataHelp_clicked() { - static const QUrl vcmibuilderWiki("https://wiki.vcmi.eu/Installation_on_Linux#Installing_Heroes_III_data_files"); + static const QUrl vcmibuilderWiki("https://wiki.vcmi.eu/Using_vcmibuilder"); QDesktopServices::openUrl(vcmibuilderWiki); } @@ -429,3 +429,18 @@ void FirstLaunchView::on_pushButtonPresetNext_clicked() getModView()->doInstallMod(modName); } +void FirstLaunchView::on_pushButtonDiscord_clicked() +{ + QDesktopServices::openUrl(QUrl("https://discord.gg/chBT42V")); +} + +void FirstLaunchView::on_pushButtonSlack_clicked() +{ + QDesktopServices::openUrl(QUrl("https://slack.vcmi.eu/")); +} + +void FirstLaunchView::on_pushButtonGithub_clicked() +{ + QDesktopServices::openUrl(QUrl("https://github.com/vcmi/vcmi")); +} + diff --git a/launcher/firstLaunch/firstlaunch_moc.h b/launcher/firstLaunch/firstlaunch_moc.h index 340a98311..f2ca56eb0 100644 --- a/launcher/firstLaunch/firstlaunch_moc.h +++ b/launcher/firstLaunch/firstlaunch_moc.h @@ -93,6 +93,12 @@ private slots: void on_pushButtonPresetNext_clicked(); + void on_pushButtonDiscord_clicked(); + + void on_pushButtonSlack_clicked(); + + void on_pushButtonGithub_clicked(); + private: Ui::FirstLaunchView * ui; diff --git a/launcher/firstLaunch/firstlaunch_moc.ui b/launcher/firstLaunch/firstlaunch_moc.ui index d73ce313d..9c56697aa 100644 --- a/launcher/firstLaunch/firstlaunch_moc.ui +++ b/launcher/firstLaunch/firstlaunch_moc.ui @@ -6,8 +6,8 @@ 0 0 - 650 - 409 + 745 + 389 @@ -131,6 +131,9 @@ 0 + + 6 + @@ -144,27 +147,14 @@ - - - - Next + + + + 5 - - - Qt::Horizontal - - - - 40 - 20 - - - - - Qt::Vertical @@ -172,19 +162,90 @@ 20 - 40 + 8 - - - - 5 + + + + + + VCMI on Github + + + + + + + VCMI on Slack + + + + + + + VCMI on Discord + + + + + + + Have a question? Found a bug? Want to help? Join us: + + + + + + + + + Thanks for installing VCMI. + +There are a few more steps to be done before you can start playing. + +Keep in mind that in order to use VCMI you need to own original data files, Heroes III: Complete Edition or Shadow of Death. + +Heroes III: HD Edition is currently not supported + + + true + + + + 6 + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Next + + + + + + labelLanguageWelcome + labelLanguageTitle + listWidgetLanguage