From 1657313105804e3c0230ad39255684927e29625c Mon Sep 17 00:00:00 2001 From: Sky Date: Fri, 11 Apr 2014 02:59:30 +0100 Subject: Add Patreon button. Needs an icon (used I for now). --- gui/MainWindow.cpp | 5 +++++ gui/MainWindow.h | 2 ++ gui/MainWindow.ui | 17 +++++++++++++++++ 3 files changed, 24 insertions(+) diff --git a/gui/MainWindow.cpp b/gui/MainWindow.cpp index 19c5c66f..dcb6d3b5 100644 --- a/gui/MainWindow.cpp +++ b/gui/MainWindow.cpp @@ -1015,6 +1015,11 @@ void MainWindow::on_actionReportBug_triggered() openWebPage(QUrl("https://github.com/MultiMC/MultiMC5/issues")); } +void MainWindow::on_actionPatreon_triggered() +{ + openWebPage(QUrl("http://www.patreon.com/multimc")); +} + void MainWindow::on_actionMoreNews_triggered() { openWebPage(QUrl("http://multimc.org/posts.html")); diff --git a/gui/MainWindow.h b/gui/MainWindow.h index 5ddfef7b..d610a87d 100644 --- a/gui/MainWindow.h +++ b/gui/MainWindow.h @@ -85,6 +85,8 @@ slots: void on_actionReportBug_triggered(); + void on_actionPatreon_triggered(); + void on_actionMoreNews_triggered(); void newsButtonClicked(); diff --git a/gui/MainWindow.ui b/gui/MainWindow.ui index 2bd8ec22..74b7a0f3 100644 --- a/gui/MainWindow.ui +++ b/gui/MainWindow.ui @@ -74,6 +74,7 @@ + @@ -268,6 +269,22 @@ Open the bug tracker to report a bug with MultiMC. + + + + + + + + Support us on Patreon + + + Open the MultiMC Patreon page. + + + Open the MultiMC Patreon page. + + -- cgit From 86830967b66123cd3dc179ebf3ea674d6f98c20a Mon Sep 17 00:00:00 2001 From: Sky Date: Sat, 12 Apr 2014 02:05:42 +0100 Subject: Give the Patreon button a logo --- gui/MainWindow.ui | 4 ++-- resources/multimc/16x16/patreon.png | Bin 0 -> 682 bytes resources/multimc/22x22/patreon.png | Bin 0 -> 976 bytes resources/multimc/24x24/patreon.png | Bin 0 -> 1034 bytes resources/multimc/32x32/patreon.png | Bin 0 -> 1450 bytes resources/multimc/48x48/patreon.png | Bin 0 -> 2317 bytes resources/multimc/64x64/patreon.png | Bin 0 -> 3212 bytes resources/multimc/multimc.qrc | 8 ++++++++ 8 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 resources/multimc/16x16/patreon.png create mode 100644 resources/multimc/22x22/patreon.png create mode 100644 resources/multimc/24x24/patreon.png create mode 100644 resources/multimc/32x32/patreon.png create mode 100644 resources/multimc/48x48/patreon.png create mode 100644 resources/multimc/64x64/patreon.png diff --git a/gui/MainWindow.ui b/gui/MainWindow.ui index 74b7a0f3..1d7fbec9 100644 --- a/gui/MainWindow.ui +++ b/gui/MainWindow.ui @@ -271,12 +271,12 @@ - + - Support us on Patreon + Support us on Patreon! Open the MultiMC Patreon page. diff --git a/resources/multimc/16x16/patreon.png b/resources/multimc/16x16/patreon.png new file mode 100644 index 00000000..cde2b326 Binary files /dev/null and b/resources/multimc/16x16/patreon.png differ diff --git a/resources/multimc/22x22/patreon.png b/resources/multimc/22x22/patreon.png new file mode 100644 index 00000000..b6235ad2 Binary files /dev/null and b/resources/multimc/22x22/patreon.png differ diff --git a/resources/multimc/24x24/patreon.png b/resources/multimc/24x24/patreon.png new file mode 100644 index 00000000..c1da080f Binary files /dev/null and b/resources/multimc/24x24/patreon.png differ diff --git a/resources/multimc/32x32/patreon.png b/resources/multimc/32x32/patreon.png new file mode 100644 index 00000000..f5ae8a5e Binary files /dev/null and b/resources/multimc/32x32/patreon.png differ diff --git a/resources/multimc/48x48/patreon.png b/resources/multimc/48x48/patreon.png new file mode 100644 index 00000000..2708a85a Binary files /dev/null and b/resources/multimc/48x48/patreon.png differ diff --git a/resources/multimc/64x64/patreon.png b/resources/multimc/64x64/patreon.png new file mode 100644 index 00000000..7b4814ec Binary files /dev/null and b/resources/multimc/64x64/patreon.png differ diff --git a/resources/multimc/multimc.qrc b/resources/multimc/multimc.qrc index 363347de..d3068ff4 100644 --- a/resources/multimc/multimc.qrc +++ b/resources/multimc/multimc.qrc @@ -26,6 +26,14 @@ 48x48/bug.png 64x64/bug.png + + 16x16/patreon.png + 22x22/patreon.png + 24x24/patreon.png + 32x32/patreon.png + 48x48/patreon.png + 64x64/patreon.png + 16x16/cat.png 22x22/cat.png -- cgit