mirror of
https://github.com/geode-sdk/geode.git
synced 2024-12-02 12:17:10 -05:00
FINALLY
This commit is contained in:
parent
93e463bf19
commit
0597416d48
2 changed files with 5 additions and 2 deletions
|
@ -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",
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue