Skip to content

Commit

Permalink
Added a small layout fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SMJSGaming committed Jun 19, 2024
1 parent 0b2b824 commit 52aaabb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# GDIntercept Changelog

## v0.1.1-alpha.2 (2024-06-20) - Compatibility Update

- Made the mod compatible with other mods on the menu layer

## v0.1.0-alpha.1 (2024-06-19) - Initial Release

- Added all the basic interface features
Expand Down
7 changes: 4 additions & 3 deletions src/mods/MenuLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ bool ModMenuLayer::init() {

logo->setScale(0.4f);

CCMenu* menu = CCMenu::createWithItem(CCMenuItemSpriteExtra::create(logo, this, menu_selector(ModMenuLayer::onLogoClick)));
CCMenuItemSpriteExtra* logoBtn = CCMenuItemSpriteExtra::create(logo, this, menu_selector(ModMenuLayer::onLogoClick));
CCNode* closeMenu = this->getChildByID("close-menu");

menu->setPosition({ 18, CCDirector::sharedDirector()->getWinSize().height - 55 });
this->addChild(menu);
closeMenu->addChild(logoBtn);
closeMenu->updateLayout();

return true;
}
Expand Down

0 comments on commit 52aaabb

Please sign in to comment.