diff --git a/changelog.md b/changelog.md index 2a75f58..555c848 100644 --- a/changelog.md +++ b/changelog.md @@ -1,8 +1,9 @@ # BetterEdit 6 - -## v6.6.5 - - * Should fix issues with BetterEdit not being loaded on Android due to Custom Keybinds missing + +## v6.6.5 + * Fix Next Free not taking into account trigger Target Group IDs on Android + * Fix issues with BetterEdit not being loaded on Android due to Custom Keybinds missing + * Fix layer input misplacement when using UI Scale ## v6.6.4 * Add keybinds for Increase Grid Size and Decrease Grid Size diff --git a/src/features/GridScaling.cpp b/src/features/GridScaling.cpp index 4d4bcb4..9ede780 100644 --- a/src/features/GridScaling.cpp +++ b/src/features/GridScaling.cpp @@ -1,6 +1,9 @@ #include "GridScaling.hpp" #include #include +#include +#include +#include #include #include diff --git a/src/features/HideUIButton.cpp b/src/features/HideUIButton.cpp index 73a36e8..8cfdcf5 100644 --- a/src/features/HideUIButton.cpp +++ b/src/features/HideUIButton.cpp @@ -1,4 +1,7 @@ #include +#include +#include +#include #include using namespace geode::prelude; diff --git a/src/features/MoveMenu.cpp b/src/features/MoveMenu.cpp index b2053dd..6d51bb8 100644 --- a/src/features/MoveMenu.cpp +++ b/src/features/MoveMenu.cpp @@ -1,5 +1,8 @@ #include #include +#include +#include +#include #include #include #include diff --git a/src/features/NextFreeOffset.cpp b/src/features/NextFreeOffset.cpp index a0d0fc9..046edb9 100644 --- a/src/features/NextFreeOffset.cpp +++ b/src/features/NextFreeOffset.cpp @@ -26,7 +26,6 @@ struct GroupIDSource final { if (auto eobj = typeinfo_cast(obj)) { used.insert(eobj->m_centerGroupID); used.insert(eobj->m_targetGroupID); - log::info("targetGroupID: {}", eobj->m_targetGroupID); } } }; diff --git a/src/features/ViewTab/ViewTab.cpp b/src/features/ViewTab/ViewTab.cpp index b12c3bd..f84e564 100644 --- a/src/features/ViewTab/ViewTab.cpp +++ b/src/features/ViewTab/ViewTab.cpp @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include diff --git a/src/features/backups/AutoSave.cpp b/src/features/backups/AutoSave.cpp index 39a3ba1..ec77a90 100644 --- a/src/features/backups/AutoSave.cpp +++ b/src/features/backups/AutoSave.cpp @@ -1,4 +1,6 @@ #include +#include +#include #include "Backup.hpp" #include "QuickSave.hpp" diff --git a/src/features/backups/BackupItem.cpp b/src/features/backups/BackupItem.cpp index 33a4551..d12575d 100644 --- a/src/features/backups/BackupItem.cpp +++ b/src/features/backups/BackupItem.cpp @@ -3,6 +3,7 @@ #include #include #include +#include bool BackupItem::init(BackupPtr backup) { if (!CCNode::init()) diff --git a/src/features/backups/BackupListPopup.cpp b/src/features/backups/BackupListPopup.cpp index c48e69f..11923b3 100644 --- a/src/features/backups/BackupListPopup.cpp +++ b/src/features/backups/BackupListPopup.cpp @@ -1,5 +1,7 @@ #include "BackupListPopup.hpp" #include "Backup.hpp" +#include +#include bool BackupListPopup::setup(GJGameLevel* level) { m_level = level; diff --git a/src/utils/EditableBMLabelProxy.cpp b/src/utils/EditableBMLabelProxy.cpp index 4dcc87d..ac7fdf5 100644 --- a/src/utils/EditableBMLabelProxy.cpp +++ b/src/utils/EditableBMLabelProxy.cpp @@ -3,6 +3,7 @@ EditableBMLabelProxy* EditableBMLabelProxy::create() { auto ret = new EditableBMLabelProxy(); if (ret && ret->init()) { + ret->scheduleUpdate(); ret->autorelease(); return ret; } @@ -45,6 +46,22 @@ EditableBMLabelProxy* EditableBMLabelProxy::replace( return proxy; } +static float getWorldScale(CCNode* node) { + if (auto parent = node->getParent()) { + return getWorldScale(parent) * node->getScale(); + } + return node->getScale(); +} + +void EditableBMLabelProxy::update(float) { + if (m_input) { + m_input->setPosition( + m_inputParent->convertToNodeSpace(this->getParent()->convertToWorldSpace(m_obPosition)) + ); + m_input->setScale(getWorldScale(this) * 1.15f); + } +} + void EditableBMLabelProxy::setPosition(CCPoint const& pos) { CCLabelBMFont::setPosition(pos); if (m_input) m_input->setPosition( diff --git a/src/utils/EditableBMLabelProxy.hpp b/src/utils/EditableBMLabelProxy.hpp index 7e7fce9..edd6c9a 100644 --- a/src/utils/EditableBMLabelProxy.hpp +++ b/src/utils/EditableBMLabelProxy.hpp @@ -26,6 +26,8 @@ class EditableBMLabelProxy : public CCLabelBMFont, TextInputDelegate { std::function onUpdate = nullptr ); + void update(float) override; + #define PROXY_FWD_1(fun, param_ty) \ void fun(param_ty x) override { \ CCLabelBMFont::fun(x); \