Skip to content

Commit df54760

Browse files
committed
v1.0.7
1 parent 0af4b00 commit df54760

File tree

5 files changed

+32
-4
lines changed

5 files changed

+32
-4
lines changed

about.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SUBMIT THUMBNAILS IN THE [DISCORD SERVER](https://discord.gg/K6M4RduZxY)
1+
# SUBMIT THUMBNAILS IN THE [DISCORD SERVER](https://discord.gg/GuagJDsqds)
22

33
# Level Thumbnails
44

changelog.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# v1.0.7
2+
- Buggy zooming and thumbnail popup bugfixes
3+
- Crash fixes
4+
- Popup
5+
16
# v1.0.6
27
- Removed a swear word from `about.md`
38

mod.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"android": "2.206",
66
"mac": "2.206"
77
},
8-
"version": "v1.0.6",
8+
"version": "v1.0.7",
99
"id": "cdc.level_thumbnails",
1010
"name": "Level Thumbnails",
1111
"developer": "cdc",

src/ThumbnailPopup.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ void ThumbnailPopup::openDiscordServerPopup(CCObject* sender){
2222
"No Thanks", "JOIN!",
2323
[this](auto, bool btn2) {
2424
if (btn2) {
25-
CCApplication::sharedApplication()->openURL("https://discord.gg/K6M4RduZxY");
25+
CCApplication::sharedApplication()->openURL("https://discord.gg/GuagJDsqds");
2626
}
2727
}
2828
);

src/main.cpp

+24-1
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,34 @@
44
using namespace geode::prelude;
55

66
#include <Geode/modify/LevelCell.hpp>
7+
#include <Geode/modify/MenuLayer.hpp>
78
#include <Geode/utils/web.hpp>
89
#include "utils.hpp"
910
#include "ImageCache.hpp"
1011
#include "Zoom.hpp"
11-
12+
class $modify(MenuLayer){
13+
bool init(){
14+
MenuLayer::init();
15+
if (Mod::get()->getSavedValue<bool>("temp_newServerNotifOpened")){
16+
return true;
17+
}
18+
auto flalert = createQuickPopup(
19+
"Update!",
20+
"The <cj>Thumbnails</c> mod has a new <cb>Discord</c> now!\n"
21+
"Wanna <cg>join</c> to submit <cy>Thumbnails</c> and <cg>more</c>?",
22+
"No Thanks", "JOIN!",
23+
[this](auto, bool btn2) {
24+
if (btn2) {
25+
CCApplication::sharedApplication()->openURL("https://discord.gg/GuagJDsqds");
26+
}
27+
Mod::get()->setSavedValue<bool>("temp_newServerNotifOpened",true);
28+
},false);
29+
flalert->m_scene = this;
30+
flalert->changeWidth(600);
31+
flalert->show();
32+
return true;
33+
}
34+
};
1235
class $modify(MyLevelCell, LevelCell) {
1336

1437
struct Fields{

0 commit comments

Comments
 (0)