Skip to content

Commit 8ca0d44

Browse files
committed
stuff
1 parent 0cd8dee commit 8ca0d44

22 files changed

+388
-41
lines changed

changelog.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# 2.8.4
2+
3+
- Added Gravity Arrow
4+
- Added Show button in Editor
5+
- Added Show button in Endscreen
6+
- Added Show button in Level
7+
- Made mod data save when closing the menu
8+
- Changed Button to only appear after the end screen has appeared
9+
- Fixed crashing using cross fade transition on Android
10+
- Fixed cross fade transition not updating every frame
11+
- Fixed crash entering editor with show trajectory enabled
12+
- Fixed menus being clipped wrong with fade animation
13+
114
# 2.8.3
215

316
- Optimised UI

mod-2.2074.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"geode": "4.10.0",
3-
"version": "v2.8.3-beta.1",
3+
"version": "v2.8.4-beta.1",
44
"gd": {
55
"win": "2.2074",
66
"android": "2.2074",

mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"geode": "5.5.3",
3-
"version": "v2.8.3",
3+
"version": "v2.8.4",
44
"gd": {
55
"win": "2.2081",
66
"android": "2.2081",

resources/translations

src/Client/CategoryNode.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include "../Utils/Casts.hpp"
33
#include "../GUI/BetterMouseDispatcher.hpp"
44
#include "../Utils/Num.hpp"
5+
#include <ScrollLayer.hpp>
56

67
CategoryNode* CategoryNode::create()
78
{
@@ -133,12 +134,10 @@ bool CategoryNode::init()
133134
bg = EasyBG::create();
134135
bg->setContentSize(getContentSize());
135136

136-
scroll = geode::ScrollLayer::create(this->getContentSize());
137-
scroll->setUserObject("MouseDispatcherExt"_spr, CCNode::create());
137+
scroll = qolmod::ScrollLayer::create(this->getContentSize());
138138
scroll->m_peekLimitTop = 15;
139139
scroll->m_peekLimitBottom = 15;
140140
scroll->setTouchEnabled(false);
141-
scroll->setUserObject("user95401.scrollbar_everywhere/scrollbar", CCNode::create());
142141

143142
scrollbar = BetterScrollbar::create(scroll);
144143
// updates size

src/GUI/AndroidBall.cpp

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ void AndroidBall::reloadTextures()
109109
setColonThreeSecret(colonThreeEnabled);
110110
}
111111

112+
#include "Modules/ButtonVisibility.hpp"
113+
112114
bool AndroidBall::shouldFunction()
113115
{
114116
#ifdef GEODE_IS_DESKTOP
@@ -127,8 +129,23 @@ bool AndroidBall::shouldFunction()
127129
if (CCScene::get() && CCScene::get()->getChildByType<LoadingLayer>(0))
128130
return false;
129131

130-
if (PlayLayer::get() && (!PlayLayer::get()->m_levelEndAnimationStarted && !PlayLayer::get()->m_isPaused))
131-
return false;
132+
if (!ShowButtonInEditor::get()->getRealEnabled())
133+
{
134+
if (LevelEditorLayer::get() && !LevelEditorLayer::get()->getChildByType<EditorPauseLayer>(0))
135+
return false;
136+
}
137+
138+
if (auto pl = PlayLayer::get())
139+
{
140+
if (ShowButtonInEndScreen::get()->getRealEnabled() && pl->getChildByType<EndLevelLayer>(0))
141+
return true;
142+
143+
if (pl->m_isPaused)
144+
return true;
145+
146+
if (!ShowButtonInGame::get()->getRealEnabled())
147+
return false;
148+
}
132149

133150
return true;
134151
}

src/GUI/AndroidUI.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@ AndroidUI::~AndroidUI()
224224
{
225225
if (instance == this)
226226
instance = nullptr;
227+
228+
(void)Mod::get()->saveData();
227229
}
228230

229231
void AndroidUI::close()

src/GUI/Categories/LabelsNode.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "../../Utils/Num.hpp"
66
#include "../BetterButtonSprite.hpp"
77
#include <Button.hpp>
8+
#include <ScrollLayer.hpp>
89

910
using namespace qolmod;
1011

@@ -23,12 +24,10 @@ bool LabelsNode::init()
2324
bg->setAnchorPoint(ccp(0, 0));
2425
bg->setContentSize(ccp((getContentWidth() - PRESETS_SIZE - 5), bg->getContentHeight() - ((TOPBAR_SIZE + 5))));
2526

26-
labelsScroll = ScrollLayer::create(bg->getContentSize());
27-
labelsScroll->setUserObject("MouseDispatcherExt"_spr, CCNode::create());
27+
labelsScroll = qolmod::ScrollLayer::create(bg->getContentSize());
2828
labelsScroll->m_peekLimitTop = 15;
2929
labelsScroll->m_peekLimitBottom = 15;
3030
labelsScroll->setTouchEnabled(false);
31-
labelsScroll->setUserObject("user95401.scrollbar_everywhere/scrollbar", CCNode::create());
3231

3332
auto bgTopbar = CCScale9Sprite::create("square02b_small.png");
3433
bgTopbar->setContentSize(ccp(this->getContentWidth(), TOPBAR_SIZE) / 0.5f);

src/GUI/CategorySelectMenu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ bool CategorySelectMenu::init()
5959
setAnchorPoint(ccp(0.5f, 0.5f));
6060
setContentSize(ccp(0, 0));
6161

62-
scroll = ScrollLayer::create(ccp(100, 100));
62+
scroll = qolmod::ScrollLayer::create(ccp(100, 100));
6363
scroll->setID("category-select-menu-scroll");
6464
scroll->setUserObject("MouseDispatcherExt"_spr, CCNode::create());
6565
scroll->m_peekLimitTop = 15;

src/GUI/CategorySelectMenu.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "CategoryTabSprite.hpp"
66
#include <CCMenuExt.hpp>
77
#include <Button.hpp>
8+
#include <ScrollLayer.hpp>
89

910
using namespace geode::prelude;
1011

@@ -19,7 +20,7 @@ class CategorySelectMenu : public CCMenu
1920
{
2021
protected:
2122
float inset = 2.5f;
22-
ScrollLayer* scroll = nullptr;
23+
qolmod::ScrollLayer* scroll = nullptr;
2324
BetterScrollbar* scrollbar = nullptr;
2425
qolmod::CCMenuExt* bottomBtns = nullptr;
2526
qolmod::CCMenuExt* standardBtns = nullptr;

0 commit comments

Comments
 (0)