mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-22 07:27:59 -05:00
fix the stupid misaligned controller button
This commit is contained in:
parent
324883140a
commit
f5f336532f
2 changed files with 6 additions and 0 deletions
|
@ -75,6 +75,7 @@ struct CustomMenuLayer : Modify<CustomMenuLayer, MenuLayer> {
|
||||||
|
|
||||||
this->fixSocialMenu();
|
this->fixSocialMenu();
|
||||||
|
|
||||||
|
//this code doesnt run have fun figuring out why idc enough
|
||||||
if (auto node = this->getChildByID("settings-gamepad-icon")) {
|
if (auto node = this->getChildByID("settings-gamepad-icon")) {
|
||||||
node->setPositionX(
|
node->setPositionX(
|
||||||
bottomMenu->getChildByID("settings-button")->getPositionX() + winSize.width / 2
|
bottomMenu->getChildByID("settings-button")->getPositionX() + winSize.width / 2
|
||||||
|
|
|
@ -46,6 +46,11 @@ $register_ids(MenuLayer) {
|
||||||
}
|
}
|
||||||
|
|
||||||
setIDSafe<CCLabelBMFont>(this, labelOffset++, "player-username");
|
setIDSafe<CCLabelBMFont>(this, labelOffset++, "player-username");
|
||||||
|
|
||||||
|
if(auto node = this->getChildByID("settings-gamepad-icon")) {
|
||||||
|
// hide it until someone figures out how to bind the positioning to the actual button
|
||||||
|
node->setVisible(false);
|
||||||
|
}
|
||||||
|
|
||||||
// main menu
|
// main menu
|
||||||
if (auto menu = this->getChildByType<CCMenu>(0)) {
|
if (auto menu = this->getChildByType<CCMenu>(0)) {
|
||||||
|
|
Loading…
Reference in a new issue