From 72728464bba9eebab01f981b5806955c19dfca0d Mon Sep 17 00:00:00 2001 From: hjfod Date: Wed, 22 Mar 2023 17:31:47 +0200 Subject: [PATCH] editor stuff --- bindings/GeometryDash.bro | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bindings/GeometryDash.bro b/bindings/GeometryDash.bro index 09d69200..dee0eff2 100644 --- a/bindings/GeometryDash.bro +++ b/bindings/GeometryDash.bro @@ -1111,6 +1111,12 @@ class EditButtonBar : cocos2d::CCNode { } void loadFromItems(cocos2d::CCArray* buttons, int rowCount, int columnCount, bool idk) = mac 0x351010, win 0x6e5e0, ios 0x2dd060; + static EditButtonBar* create( + cocos2d::CCArray* buttons, + cocos2d::CCPoint point, + int idk, bool idk0, + int rowCount, int columnCount + ) = win 0x6e450; cocos2d::CCPoint m_position; int m_unknown; @@ -1249,6 +1255,7 @@ class EditorUI : cocos2d::CCLayer, FLAlertLayerProtocol, ColorSelectDelegate, GJ void selectAll() = win 0x86c40; void selectAllWithDirection(bool left) = win 0x86d80; cocos2d::CCPoint getTouchPoint(cocos2d::CCTouch* touch, cocos2d::CCEvent* event) = win 0x90620; + cocos2d::CCPoint getGridSnappedPos(cocos2d::CCPoint pos) = win 0x90550; void onSelectBuildTab(cocos2d::CCObject* sender) = win 0x887f0; void onCreateButton(cocos2d::CCObject* sender) = win 0x854f0; CCMenuItemSpriteExtra* getSpriteButton(const char* sprite, cocos2d::SEL_MenuHandler callback, cocos2d::CCMenu* menu, float scale) = mac 0xb500, win 0x78bf0; @@ -3640,7 +3647,7 @@ class LevelEditorLayer : GJBaseGameLayer, LevelSettingsDelegate { void getNextFreeBlockID(cocos2d::CCArray*) = mac 0x9a4e0; int getNextFreeGroupID(cocos2d::CCArray*) = mac 0x9a1b0, win 0x164ae0; void getNextFreeItemID(cocos2d::CCArray*) = mac 0x9a390; - void getObjectRect(GameObject*, bool) = mac 0x96240, win 0x1616b0; + cocos2d::CCRect getObjectRect(GameObject* obj, bool updateRect) = mac 0x96240, win 0x1616b0; void getRelativeOffset(GameObject*) = mac 0x96840; bool hasAction(bool) = mac 0x96ff0; void handleAction(bool, cocos2d::CCArray*) = mac 0x97020, win 0x162010;