Update
This commit is contained in:
1 parent
e9c7364253
commit
79d7ca2dba
5 files changed
+44
-19
No files matched your search
@@ -1,20 +1,9 @@
|
||||
# xps-mod
|
||||
This is where she makes a mod.
|
||||
# XPS Geode Mod
|
||||
|
||||
The XPS 3.0 mod for Geode.
|
||||
|
||||
<img src="logo.png" width="150" alt="the mod's logo" />
|
||||
|
||||
*Update logo.png to change your mod's icon (please)*
|
||||
|
||||
## Getting started
|
||||
We recommend heading over to [the getting started section on our docs](https://docs.geode-sdk.org/getting-started/) for useful info on what to do next.
|
||||
|
||||
## Build instructions
|
||||
For more info, see [our docs](https://docs.geode-sdk.org/getting-started/create-mod#build)
|
||||
```sh
|
||||
# Assuming you have the Geode CLI set up already
|
||||
geode build
|
||||
```
|
||||
|
||||
# Resources
|
||||
* [Geode SDK Documentation](https://docs.geode-sdk.org/)
|
||||
* [Geode SDK Source Code](https://github.com/geode-sdk/geode/)
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
"mac": "2.2074",
|
||||
"ios": "2.2074"
|
||||
},
|
||||
"early-load": true,
|
||||
"resources": {
|
||||
"sprites": [
|
||||
"resources/*.png"
|
||||
@@ -18,6 +19,13 @@
|
||||
"default": false
|
||||
}
|
||||
},
|
||||
"dependencies": [
|
||||
{
|
||||
"id": "geode.node-ids",
|
||||
"version": "v1.18.0",
|
||||
"importance": "required"
|
||||
}
|
||||
],
|
||||
"id": "xytriza.xps-mod",
|
||||
"name": "XPS",
|
||||
"version": "v1.0.0",
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 9.0 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 7.2 KiB |
+33
-5
@@ -64,13 +64,15 @@ class $modify(MenuLayerMod, MenuLayer) {
|
||||
auto winSize = CCDirector::sharedDirector()->getWinSize();
|
||||
|
||||
auto xpsSprite = CCSprite::create("xps-logo-transparent-gold.png"_spr);
|
||||
auto xpsWebsiteSprite = CCSprite::create("xps-website-button.png"_spr);
|
||||
auto xpsDashboardSprite = CCSprite::create("xps-dashboard-button.png"_spr);
|
||||
auto blankSprite = CCSprite::createWithSpriteFrameName("GJ_longBtn01_001.png");
|
||||
auto discordSprite = CCSprite::createWithSpriteFrameName("gj_discordIcon_001.png");
|
||||
auto twitterSprite = CCSprite::createWithSpriteFrameName("gj_twIcon_001.png");
|
||||
auto youtubeSprite = CCSprite::createWithSpriteFrameName("gj_ytIcon_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(
|
||||
CircleButtonSprite::create(xpsSprite),
|
||||
this,
|
||||
@@ -79,14 +81,14 @@ class $modify(MenuLayerMod, MenuLayer) {
|
||||
xpsButton->setID("xps-button"_spr);
|
||||
|
||||
auto xpsWebsiteButton = CCMenuItemSpriteExtra::create(
|
||||
xpsWebsiteSprite,
|
||||
blankSprite,
|
||||
this,
|
||||
menu_selector(MenuLayerMod::openWebsiteLink)
|
||||
);
|
||||
xpsWebsiteButton->setID("website-button"_spr);
|
||||
|
||||
auto xpsDashboardButton = CCMenuItemSpriteExtra::create(
|
||||
xpsDashboardSprite,
|
||||
blankSprite,
|
||||
this,
|
||||
menu_selector(MenuLayerMod::openDashboardLink)
|
||||
);
|
||||
@@ -124,10 +126,17 @@ class $modify(MenuLayerMod, MenuLayer) {
|
||||
xpsWebsiteButton->setID("website-button"_spr);
|
||||
xpsDashboardButton->setID("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);
|
||||
|
||||
xpsSprite->setScale(0.55f);
|
||||
|
||||
if (auto bottomMenu = this->getChildByID("bottom-menu")) {
|
||||
bottomMenu->removeChildByID("achievements-button");
|
||||
bottomMenu->removeChildByID("newgrounds-button");
|
||||
bottomMenu->addChild(xpsButton);
|
||||
bottomMenu->updateLayout();
|
||||
@@ -154,6 +163,12 @@ class $modify(MenuLayerMod, MenuLayer) {
|
||||
|
||||
this->addChild(xpsButtonsRight);
|
||||
this->addChild(xpsButtonsLeft);
|
||||
|
||||
auto profileName = this->getChildByID("player-username");
|
||||
auto profileButton = this->getChildByID("profile-menu");
|
||||
profileButton->setPosition(101,125);
|
||||
profileName->setPosition(57,161);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -234,6 +249,19 @@ class $modify(CreatorLayer) {
|
||||
}
|
||||
};
|
||||
|
||||
class $modify(LoadingLayer) {
|
||||
bool init(bool p0) {
|
||||
if (!LoadingLayer::init(p0)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
this->getChildByID("cocos2d-logo")->setVisible(false);
|
||||
this->getChildByID("fmod-logo")->setVisible(false);
|
||||
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
class $modify(GameManager) {
|
||||
bool isIconUnlocked(int iconID, IconType type) {
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user