diff options
author | Sky <git@bunnies.cc> | 2013-10-08 22:25:56 +0100 |
---|---|---|
committer | Sky <git@bunnies.cc> | 2013-10-08 22:25:56 +0100 |
commit | 9edc486f137c9719bd62c8c63ecc3d195f9dc79e (patch) | |
tree | ad127020649817ef6203fbea22d3eff954b5b110 /gui/MCModInfoFrame.cpp | |
parent | bf951c3eb82f90a83e5496b6a897f95f585aff89 (diff) | |
download | MultiMC-9edc486f137c9719bd62c8c63ecc3d195f9dc79e.tar MultiMC-9edc486f137c9719bd62c8c63ecc3d195f9dc79e.tar.gz MultiMC-9edc486f137c9719bd62c8c63ecc3d195f9dc79e.tar.lz MultiMC-9edc486f137c9719bd62c8c63ecc3d195f9dc79e.tar.xz MultiMC-9edc486f137c9719bd62c8c63ecc3d195f9dc79e.zip |
Show defaults if mod type is 'folder'
Diffstat (limited to 'gui/MCModInfoFrame.cpp')
-rw-r--r-- | gui/MCModInfoFrame.cpp | 11 |
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(); |