Skip to content

Commit

Permalink
Merge branch 'v6' of https://github.com/HJfod/BetterEdit into v6
Browse files Browse the repository at this point in the history
  • Loading branch information
HJfod committed Sep 18, 2024
2 parents aaa2392 + f070aae commit aa05821
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# BetterEdit 6

## v6.8.0-alpha.5
* Fix color trigger popup crashing (& also make <cc>HSV Preview</c> more responsive)

## v6.8.0-alpha.4
* Fix a bug with servers causing supporter popups to not work

Expand Down
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"geode": "3.7.2",
"version": "6.8.0-alpha.4",
"version": "6.8.0-alpha.5",
"gd": {
"win": "2.206",
"mac": "2.206",
Expand Down
2 changes: 1 addition & 1 deletion src/features/about/AboutBEPopup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <utils/Pro.hpp>

#ifdef BETTEREDIT_PRO
#include <pro/ui/SupportersPopup.hpp>
#include <pro/features/supporters/SupportersPopup.hpp>
#endif

struct Dev {
Expand Down
2 changes: 1 addition & 1 deletion src/features/backups/QuickSave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static std::filesystem::path getAutoSaveDir() {
}

static bool CREATING_AUTO_SAVE = false;
void ::createAutoSave(LevelEditorLayer* lel) {
void createAutoSave(LevelEditorLayer* lel) {
CREATING_AUTO_SAVE = true;
fakeEditorPauseLayer(lel)->saveLevel();
CREATING_AUTO_SAVE = false;
Expand Down
8 changes: 5 additions & 3 deletions src/features/scaling/EditorUIScaling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,11 @@ class $modify(ScaledUI, EditorUI) {
auto winSize = CCDirector::get()->getWinSize();
for (auto c : CCArrayExt<CCNode*>(this->getChildren())) {
if (auto bar = typeinfo_cast<EditButtonBar*>(c)) {
getChild(bar, 0)->setPositionX(-winSize.width / 2 + 5);
if (auto menu = getChildOfType<CCMenu>(bar, 0)) {
menu->setPositionX(winSize.width / 2 + 5);
if (bar->getChildrenCount() > 0) {
getChild(bar, 0)->setPositionX(-winSize.width / 2 + 5);
if (auto menu = getChildOfType<CCMenu>(bar, 0)) {
menu->setPositionX(winSize.width / 2 + 5);
}
}
bar->setPositionX(winSize.width / 2);
}
Expand Down

0 comments on commit aa05821

Please sign in to comment.