diff --git a/changelog.md b/changelog.md index 65bbc62..ea79a48 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ # BetterEdit 6 +## v6.9.1 + * Fix 1/4, 1/8, and Pixel moving buttons not working + ## v6.9.0 * Add LDM Object Count to the pause menu * Fix Supporter names overflowing diff --git a/mod.json b/mod.json index 48fb87b..c144171 100644 --- a/mod.json +++ b/mod.json @@ -1,6 +1,6 @@ { - "geode": "4.0.0-beta.2", - "version": "6.9.0", + "geode": "4.0.0", + "version": "6.9.1", "gd": { "win": "2.2074", "mac": "2.2074", diff --git a/src/features/MoveMenu.cpp b/src/features/MoveMenu.cpp index b70ce9a..8977ce9 100644 --- a/src/features/MoveMenu.cpp +++ b/src/features/MoveMenu.cpp @@ -320,7 +320,7 @@ class CustomEditMenu : public CCNode { } }; -class $modify(EditorUI) { +class $modify(MoreButtonsUI, EditorUI) { $override bool init(LevelEditorLayer* editor) { if (!EditorUI::init(editor)) @@ -356,12 +356,17 @@ class $modify(EditorUI) { } void addMoveButton(const char* id, const char* spr, EditCommand command) { - auto btn = this->getSpriteButton(spr, menu_selector(EditorUI::moveObjectCall), nullptr, .9f); + auto btn = this->getSpriteButton(spr, menu_selector(MoreButtonsUI::onMyMoveObject), nullptr, .9f); btn->setID(id); btn->setTag(static_cast(command)); m_editButtonBar->m_buttonArray->addObject(btn); } + // EditorUI::moveObjectCall was resolving to the wrong callback for some reason + void onMyMoveObject(CCObject* sender) { + this->moveObjectCall(static_cast(sender->getTag())); + } + $override void toggleMode(CCObject* sender) { EditorUI::toggleMode(sender);