This commit is contained in:
Justin Pridgen 2024-09-10 16:15:21 -04:00
parent 93e463bf19
commit 0597416d48
2 changed files with 5 additions and 2 deletions

View file

@ -83,7 +83,8 @@
"description": "When enabled, the Geode menu has a <ca>Geode-themed color scheme</c>. <cy>This does not affect any other menus!</c>"
},
"copy-mods": {
"type": "custom:copy-mods"
"type": "custom:copy-mods",
"name": ""
},
"developer-title": {
"type": "title",

View file

@ -10,6 +10,7 @@ public:
auto root = checkJson(json, "CopyButtonSetting");
res->init(key, modID, root);
res->parseNameAndDescription(root);
return root.ok(res);
}
@ -41,7 +42,8 @@ protected:
buttonSprite, this, menu_selector(CopyButtonSettingNode::onCopy)
);
this->getButtonMenu()->addChildAtPosition(button, Anchor::Center);
this->getButtonMenu()->setContentWidth(60);
this->getButtonMenu()->setPosition(getContentSize() / 2);
this->getButtonMenu()->setAnchorPoint({ .5f, .5f });
this->getButtonMenu()->updateLayout();
this->updateState(nullptr);