From 36ac8397cee3717b328aa8cb710ee233c0ce27c4 Mon Sep 17 00:00:00 2001 From: qimiko <25387744+qimiko@users.noreply.github.com> Date: Sun, 4 Jun 2023 04:30:47 -0700 Subject: [PATCH] add dialog enum types to bindings --- bindings/GeometryDash.bro | 5 +++-- loader/include/Geode/Enums.hpp | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/bindings/GeometryDash.bro b/bindings/GeometryDash.bro index 7bd5283f..4bf81a17 100644 --- a/bindings/GeometryDash.bro +++ b/bindings/GeometryDash.bro @@ -1016,8 +1016,9 @@ class DialogLayer : cocos2d::CCLayerColor { } static DialogLayer* createDialogLayer(DialogObject*, cocos2d::CCArray*, int) = mac 0x2047d0, win 0x6D470, ios 0x459d0; - bool init(DialogLayer*, DialogObject*, cocos2d::CCArray*, int) = win 0x6D520; - cocos2d::CCAction* animateIn(int location) = win 0x6E130; + bool init(DialogObject*, cocos2d::CCArray*, int) = win 0x6D520; + void animateIn(DialogAnimationType location) = win 0x6E130, mac 0x205a70; + void updateChatPlacement(DialogChatPlacement placement) = mac 0x205360; ~DialogLayer() = mac 0x204720; virtual void onEnter() = mac 0x205900, win 0x23750; // same as every other FLAlertLayer diff --git a/loader/include/Geode/Enums.hpp b/loader/include/Geode/Enums.hpp index 76cbf22a..d4476266 100644 --- a/loader/include/Geode/Enums.hpp +++ b/loader/include/Geode/Enums.hpp @@ -313,6 +313,21 @@ enum class LevelLeaderboardType { Weekly = 2 }; +enum class DialogChatPlacement { + Center = 0, + Top = 1, + Bottom = 2, +}; + +enum class DialogAnimationType { + Instant = 0, + FromCenter = 1, + FromLeft = 2, + FromRight = 3, + FromTop = 4, + // a 5th type is defined which acts exactly the same as FromTop +}; + // Geode Addition enum class ComparisonType { Equals = 0,