mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-26 17:36:05 -05:00
fix editorpauselayer guideline button missing
This commit is contained in:
parent
8826aa9ecc
commit
f5983a251e
3 changed files with 12 additions and 8 deletions
|
@ -2857,8 +2857,8 @@ class GameManager : GManager {
|
|||
LevelEditorLayer* m_levelEditorLayer;
|
||||
int m_unknown1;
|
||||
MenuLayer* m_menuLayer;
|
||||
bool m_unknownBool2;
|
||||
int m_unknownInt2;
|
||||
bool m_inMenuLayer;
|
||||
void* m_unknownVariable;
|
||||
bool m_unknownBool3;
|
||||
bool m_unknownPlayLayerBool;
|
||||
bool m_unknownBool4;
|
||||
|
|
|
@ -8,7 +8,7 @@ USE_GEODE_NAMESPACE();
|
|||
// (not gonna reinterpret_cast that into the members)
|
||||
class GuidelinesButton : public CCMenuItemSpriteExtra {
|
||||
protected:
|
||||
bool init() {
|
||||
bool init() override {
|
||||
if (!CCMenuItemSpriteExtra::init(
|
||||
CCSprite::createWithSpriteFrameName("GJ_audioOffBtn_001.png"),
|
||||
nullptr,
|
||||
|
@ -215,8 +215,8 @@ $register_ids(EditorPauseLayer) {
|
|||
auto glToggle = GuidelinesButton::create();
|
||||
glToggle->setID("guidelines-enable-toggle");
|
||||
guidelinesMenu->insertBefore(glToggle, nullptr);
|
||||
m_guidelinesOffButton = m_guidelinesOnButton = glToggle;
|
||||
this->updateSongButton();
|
||||
m_guidelinesOffButton = m_guidelinesOnButton = nullptr;
|
||||
// this->updateSongButton();
|
||||
|
||||
guidelinesMenu->setID("guidelines-menu");
|
||||
guidelinesMenu->setContentSize({ winSize.width / 2, 50.f });
|
||||
|
@ -246,12 +246,12 @@ $register_ids(EditorPauseLayer) {
|
|||
child->setLayoutOptions(
|
||||
AxisLayoutOptions::create()
|
||||
->setMinScale(.1f)
|
||||
->setMaxScale(.6f)
|
||||
->setMaxScale(.5f)
|
||||
->setBreakLine(true)
|
||||
);
|
||||
}
|
||||
menu->setContentSize({ 165.f, 100.f });
|
||||
menu->setPosition(85.f, winSize.height - 55.f);
|
||||
menu->setPosition(75.f, winSize.height - 55.f);
|
||||
menu->updateLayout();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,7 +28,11 @@ GEODE_MEMBER_CHECK(PlayLayer, m_shouldTryToKick, 0x7a8);
|
|||
// GameManager
|
||||
GEODE_MEMBER_CHECK(GameManager, m_playLayer, 0x180);
|
||||
GEODE_MEMBER_CHECK(GameManager, m_levelEditorLayer, 0x188);
|
||||
// GEODE_MEMBER_CHECK(GameManager, m_clickedGarage, 0x2a2); // todo: find why this is not 0x2a2
|
||||
GEODE_MEMBER_CHECK(GameManager, m_menuLayer, 0x198);
|
||||
GEODE_MEMBER_CHECK(GameManager, m_playerUDID, 0x1b8);
|
||||
GEODE_MEMBER_CHECK(GameManager, m_playerUserID, 0x1cc);
|
||||
GEODE_MEMBER_CHECK(GameManager, m_playerFrame, 0x200);
|
||||
GEODE_MEMBER_CHECK(GameManager, m_clickedGarage, 0x2a2); // todo: find why this is not 0x2a2
|
||||
|
||||
// GameObject
|
||||
GEODE_MEMBER_CHECK(GameObject, m_baseColorID, 0x27c);
|
||||
|
|
Loading…
Reference in a new issue