Skip to content

Commit 1e1f0f1

Browse files
committed
Link controls fixes
1 parent 726af22 commit 1e1f0f1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/modules/ImprovedLinkControls.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ void ImprovedLinkControls::onEditor() {
77
auto linkMenu = m_editorUI->getChildByID("link-menu");
88
linkMenu->setContentSize({ 125.f, zoomMenu->getContentHeight() + 29.f });
99
linkMenu->setPosition({linkMenu->getPositionX() - 5, zoomMenu->getPositionY()});
10-
static_cast<AxisLayout*>(linkMenu->getLayout())->setGap(0.f);
10+
static_cast<AxisLayout*>(linkMenu->getLayout())->setGap(3.f);
1111
linkMenu->updateLayout();
1212

1313
// for BetterEdit

src/modules/UIScaling.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ void UIScaling::setScaling(float scale, bool toolbar, bool topAlign, bool fullRe
260260
if (auto zoomMenu = m_editorUI->getChildByID("zoom-menu")) {
261261
if (GEODE_MOBILE(true ||) ImprovedLinkControls::isEnabled()) {
262262
linkMenu->setScale(scale GEODE_DESKTOP(* 0.8f));
263-
linkMenu->setPosition(CCPoint{9.8f * scale + zoomMenu->getScaledContentWidth() + linkMenu->getScaledContentWidth() / 2 + 5 * scale, playtestMenu->getPositionY() + 3 * scale - linkMenu->getScaledContentHeight() / 2 - 29.f * scale} + getSafeOffset());
263+
linkMenu->setPosition(CCPoint{9.8f * scale + zoomMenu->getScaledContentWidth() + linkMenu->getScaledContentWidth() / 2 + 5 * scale, playtestMenu->getPositionY() + 3 * scale - linkMenu->getScaledContentHeight() / 2 - 26.f * scale} + getSafeOffset());
264264
}
265265
else {
266266
linkMenu->setScale(scale);
@@ -318,7 +318,7 @@ void UIScaling::setScaling(float scale, bool toolbar, bool topAlign, bool fullRe
318318
if (auto zoomMenu = m_editorUI->getChildByID("zoom-menu")) {
319319
if (GEODE_MOBILE(true ||) ImprovedLinkControls::isEnabled()) {
320320
linkMenu->setScale(scale GEODE_DESKTOP(* 0.8f));
321-
linkMenu->setPosition(CCPoint{9.8f * scale + zoomMenu->getScaledContentWidth() + linkMenu->getScaledContentWidth() / 2 + 5 * scale, playtestMenu->getPositionY() + 3 * scale - linkMenu->getScaledContentHeight() / 2 - 29.f * scale} + getSafeOffset());
321+
linkMenu->setPosition(CCPoint{9.8f * scale + zoomMenu->getScaledContentWidth() + linkMenu->getScaledContentWidth() / 2 + 5 * scale, playtestMenu->getPositionY() + 3 * scale - linkMenu->getScaledContentHeight() / 2 - 26.f * scale} + getSafeOffset());
322322
}
323323
else {
324324
linkMenu->setScale(scale);

0 commit comments

Comments
 (0)