Skip to content

Commit

Permalink
pro stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
HJfod committed Aug 10, 2024
1 parent 7061594 commit d8371fe
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 6 deletions.
13 changes: 9 additions & 4 deletions mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@
],
"ViewTabSheet": [
"resources/view/*.png"
],
"SupportSheet": [
"resources/images/support-shard-*.png"
]
},
"sprites": [
"resources/images/*.png"
]
}
},
"settings": {
"auto-save-rate": {
Expand Down Expand Up @@ -172,6 +172,11 @@
"default": false,
"name": "Developer Mode",
"description": "Enables some features intended for Developers"
},
"better-select": {
"type": "bool",
"default": false,
"name": "Better Warp Selection (WIP + Supporter-Only)"
}
},
"tags": ["editor", "enhancement", "utility", "customization"]
Expand Down
Binary file added resources/images/support-shard-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/images/support-shard-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/images/support-shard-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/images/support-shard-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 13 additions & 2 deletions src/features/about/SupportPopup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,19 @@
bool SupportPopup::setup(bool showDontShowAgain) {
m_bgSprite->setVisible(false);

auto bg = CCSprite::create("support-popup.png"_spr);
m_mainLayer->addChildAtPosition(bg, Anchor::Center);
// This incredibly silly practice is just to avoid CLI build times due to it not caching singular sprites
auto bg0 = CCSprite::createWithSpriteFrameName("support-shard-0.png"_spr);
bg0->setAnchorPoint({ 1, 0 });
m_mainLayer->addChildAtPosition(bg0, Anchor::Center);
auto bg1 = CCSprite::createWithSpriteFrameName("support-shard-1.png"_spr);
bg1->setAnchorPoint({ 0, 0 });
m_mainLayer->addChildAtPosition(bg1, Anchor::Center);
auto bg2 = CCSprite::createWithSpriteFrameName("support-shard-2.png"_spr);
bg2->setAnchorPoint({ 1, 1 });
m_mainLayer->addChildAtPosition(bg2, Anchor::Center);
auto bg3 = CCSprite::createWithSpriteFrameName("support-shard-3.png"_spr);
bg3->setAnchorPoint({ 0, 1 });
m_mainLayer->addChildAtPosition(bg3, Anchor::Center);

auto invisibleSupportSpr = ButtonSprite::create("Support", "goldFont.fnt", "GJ_button_01.png", .8f);
invisibleSupportSpr->setScale(1.8f);
Expand Down

0 comments on commit d8371fe

Please sign in to comment.