launcher shit
This commit is contained in:
1 parent
9d015621e6
commit
427acfd0b1
3 files changed
+4
-14
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
+4
-14
@@ -68,15 +68,13 @@ class $modify(MenuLayerMod, MenuLayer) {
|
|||||||
CircleBaseColor::Green,
|
CircleBaseColor::Green,
|
||||||
CircleBaseSize::MediumAlt
|
CircleBaseSize::MediumAlt
|
||||||
);
|
);
|
||||||
auto blankSprite = CCSprite::createWithSpriteFrameName("GJ_longBtn01_001.png");
|
auto websiteSprite = CCSprite::createWithSpriteFrameName("xps-website-button.png"_spr);
|
||||||
|
auto dashboardSprite = CCSprite::createWithSpriteFrameName("xps-dashboard-button.png"_spr);
|
||||||
auto discordSprite = CCSprite::createWithSpriteFrameName("gj_discordIcon_001.png");
|
auto discordSprite = CCSprite::createWithSpriteFrameName("gj_discordIcon_001.png");
|
||||||
auto twitterSprite = CCSprite::createWithSpriteFrameName("gj_twIcon_001.png");
|
auto twitterSprite = CCSprite::createWithSpriteFrameName("gj_twIcon_001.png");
|
||||||
auto youtubeSprite = CCSprite::createWithSpriteFrameName("gj_ytIcon_001.png");
|
auto youtubeSprite = CCSprite::createWithSpriteFrameName("gj_ytIcon_001.png");
|
||||||
auto twitchSprite = CCSprite::createWithSpriteFrameName("gj_twitchIcon_001.png");
|
auto twitchSprite = CCSprite::createWithSpriteFrameName("gj_twitchIcon_001.png");
|
||||||
|
|
||||||
CCLabelBMFont* xpsDashboardLabel = CCLabelBMFont::create("Dashboard", "bigFont.fnt");
|
|
||||||
CCLabelBMFont* xpsWebsiteLabel = CCLabelBMFont::create("Website", "bigFont.fnt");
|
|
||||||
|
|
||||||
auto xpsButton = CCMenuItemSpriteExtra::create(
|
auto xpsButton = CCMenuItemSpriteExtra::create(
|
||||||
xpsSprite,
|
xpsSprite,
|
||||||
this,
|
this,
|
||||||
@@ -85,14 +83,14 @@ class $modify(MenuLayerMod, MenuLayer) {
|
|||||||
xpsButton->setID("xps-button"_spr);
|
xpsButton->setID("xps-button"_spr);
|
||||||
|
|
||||||
auto xpsWebsiteButton = CCMenuItemSpriteExtra::create(
|
auto xpsWebsiteButton = CCMenuItemSpriteExtra::create(
|
||||||
blankSprite,
|
websiteSprite,
|
||||||
this,
|
this,
|
||||||
menu_selector(MenuLayerMod::openWebsiteLink)
|
menu_selector(MenuLayerMod::openWebsiteLink)
|
||||||
);
|
);
|
||||||
xpsWebsiteButton->setID("xps-website-button"_spr);
|
xpsWebsiteButton->setID("xps-website-button"_spr);
|
||||||
|
|
||||||
auto xpsDashboardButton = CCMenuItemSpriteExtra::create(
|
auto xpsDashboardButton = CCMenuItemSpriteExtra::create(
|
||||||
blankSprite,
|
dashboardSprite,
|
||||||
this,
|
this,
|
||||||
menu_selector(MenuLayerMod::openDashboardLink)
|
menu_selector(MenuLayerMod::openDashboardLink)
|
||||||
);
|
);
|
||||||
@@ -130,14 +128,6 @@ class $modify(MenuLayerMod, MenuLayer) {
|
|||||||
xpsWebsiteButton->setID("xps-website-button"_spr);
|
xpsWebsiteButton->setID("xps-website-button"_spr);
|
||||||
xpsDashboardButton->setID("xps-dashboard-button"_spr);
|
xpsDashboardButton->setID("xps-dashboard-button"_spr);
|
||||||
|
|
||||||
xpsDashboardLabel->setScale(0.4);
|
|
||||||
xpsWebsiteLabel->setScale(0.55f);
|
|
||||||
xpsDashboardLabel->setPosition(45, 17.5);
|
|
||||||
xpsWebsiteLabel->setPosition(45, 17.5);
|
|
||||||
|
|
||||||
xpsDashboardButton->addChild(xpsDashboardLabel);
|
|
||||||
xpsWebsiteButton->addChild(xpsWebsiteLabel);
|
|
||||||
|
|
||||||
if (auto bottomMenu = this->getChildByID("bottom-menu")) {
|
if (auto bottomMenu = this->getChildByID("bottom-menu")) {
|
||||||
bottomMenu->removeChildByID("newgrounds-button");
|
bottomMenu->removeChildByID("newgrounds-button");
|
||||||
if (Mod::get()->getSettingValue<bool>("show-xps-android-launcher-note-button")) {
|
if (Mod::get()->getSettingValue<bool>("show-xps-android-launcher-note-button")) {
|
||||||
|
|||||||
Reference in new issue
Block a user