Skip to content

Commit

Permalink
Fix arrow buttons position to be not as close to edge
Browse files Browse the repository at this point in the history
  • Loading branch information
Alphalaneous committed Oct 22, 2024
1 parent 5b815f2 commit a4673d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/scaling/EditorUIScaling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class $modify(BetterEditButtonBar, EditButtonBar) {
navMenu->setContentSize(menu->getContentSize());
navMenu->setScale(menu->getScale());

float xOffset = (winSize.width / getScale())/2 - 104;
float xOffset = (winSize.width / getScale())/2 - 108;

CCSprite* prevSpr = CCSprite::createWithSpriteFrameName("GJ_arrow_02_001.png");
prevSpr->setScale(0.6f);
Expand Down Expand Up @@ -104,7 +104,7 @@ class $modify(BetterEditButtonBar, EditButtonBar) {
buttonMenu->setPositionY(ui->m_toolbarHeight / getScale() - 7);
buttonMenu->updateLayout();

float outerWidth = (winSize.width / getScale()) - 235;
float outerWidth = (winSize.width / getScale()) - 240;
float outerHeight = (ui->m_toolbarHeight / getScale()) - 15;
float scaleW = outerWidth / width;
float scaleH = outerHeight / height;
Expand Down

0 comments on commit a4673d4

Please sign in to comment.