summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSky <git@bunnies.cc>2013-10-08 22:25:56 +0100
committerSky <git@bunnies.cc>2013-10-08 22:25:56 +0100
commit9edc486f137c9719bd62c8c63ecc3d195f9dc79e (patch)
treead127020649817ef6203fbea22d3eff954b5b110
parentbf951c3eb82f90a83e5496b6a897f95f585aff89 (diff)
downloadMultiMC-9edc486f137c9719bd62c8c63ecc3d195f9dc79e.tar
MultiMC-9edc486f137c9719bd62c8c63ecc3d195f9dc79e.tar.gz
MultiMC-9edc486f137c9719bd62c8c63ecc3d195f9dc79e.tar.lz
MultiMC-9edc486f137c9719bd62c8c63ecc3d195f9dc79e.tar.xz
MultiMC-9edc486f137c9719bd62c8c63ecc3d195f9dc79e.zip
Show defaults if mod type is 'folder'
-rw-r--r--gui/MCModInfoFrame.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/gui/MCModInfoFrame.cpp b/gui/MCModInfoFrame.cpp
index e7e669ec..70cfd46a 100644
--- a/gui/MCModInfoFrame.cpp
+++ b/gui/MCModInfoFrame.cpp
@@ -18,6 +18,17 @@
void handleModInfoUpdate(Mod &m, MCModInfoFrame *frame)
{
+ if(m.type() == m.MOD_FOLDER)
+ {
+ frame->setName("<p><span style=\" font-size:9pt; font-weight:600; font-style:italic;\">Select a mod to view information...</span></p>");
+ frame->setDescription("<p><span style=\" font-style:italic;\">Mod description</span></p>");
+ frame->setAuthors("<p><span style=\" font-style:italic; color:#4a4a4a;\">Mod authors</span></p>");
+ frame->setCredits("<p><span style=\" font-style:italic; color:#4a4a4a;\">Mod credits</span></p>");
+ frame->setWebsite("<p><span style=\" font-style:italic; color:#4a4a4a;\">Mod website</span></p>");
+
+ return;
+ }
+
QString missing = "<p><span style=\" font-style:italic; color:#4a4a4a;\">Missing from mcmod.info</span></p>";
QString name = m.name();