Skip to content

Commit

Permalink
change platformer (i) position
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvolton committed Jan 13, 2024
1 parent 2e49dce commit 37b3bad
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions src/hooks/LevelAreaInnerLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ class $modify(BILevelAreaInnerLayer, LevelAreaInnerLayer) {
*/
void addInfoBtn(int levelID, CCPoint position) {
auto sprite = CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png");
sprite->setScale(0.6f);
//sprite->setScale(0.6f);
sprite->setScale(0.5f);
auto btn = CCMenuItemSpriteExtra::create(
sprite,
this,
Expand All @@ -49,13 +50,25 @@ class $modify(BILevelAreaInnerLayer, LevelAreaInnerLayer) {
m_fields->m_menu = CCMenu::create();
m_fields->m_menu->setPosition({0, 0});
m_fields->m_menu->setZOrder(10);
m_fields->m_menu->setID("info-menu"_spr);
static_cast<CCNode*>(getChildren()->objectAtIndex(getChildrenCount() - 1))->addChild(m_fields->m_menu);

addInfoBtn(5001, {-58, -79});
addInfoBtn(5002, {138, -22});
addInfoBtn(5003, {-61, 35});
addInfoBtn(5004, {93, 89});

/*addInfoBtn(5001, {-58, -106});
//addInfoBtn(5002, {139, -50});
addInfoBtn(5002, {68, -51});
addInfoBtn(5003, {-58, 5});
//addInfoBtn(5004, {94, 59});
addInfoBtn(5004, {22, 58});*/

/*addInfoBtn(5001, {-95.5f, -124});
addInfoBtn(5002, {102.5f, -70});
addInfoBtn(5003, {-95.5f, -13});
addInfoBtn(5004, {57.5f, 41});*/

addInfoBtn(5001, {-60, -108.5f});
addInfoBtn(5002, {68, -52.5f});
addInfoBtn(5003, {-60, 2});
addInfoBtn(5004, {57.5f, 41});

return true;
}
Expand Down

0 comments on commit 37b3bad

Please sign in to comment.