diff --git a/bindings/GeometryDash.bro b/bindings/GeometryDash.bro index 966cf2b3..4eeb9345 100644 --- a/bindings/GeometryDash.bro +++ b/bindings/GeometryDash.bro @@ -2436,7 +2436,7 @@ class GJItemIcon : cocos2d::CCSprite { bool, bool, bool, cocos2d::ccColor3B ) = win 0x12ccf0; - GJItemIcon* createBrowserIcon(UnlockType _type, int _id) { + static GJItemIcon* createBrowserIcon(UnlockType _type, int _id) { return GJItemIcon::create(_type, _id, { 0xaf, 0xaf, 0xaf }, { 0xff, 0xff, 0xff }, false, true, true, @@ -2491,6 +2491,14 @@ class GJRequestCell : TableViewCell { class GJRewardDelegate {} +class GJRewardItem : cocos2d::CCObject { + int m_chestID; + int m_timeRemaining; + GJRewardType m_rewardType; + cocos2d::CCArray* m_rewardObjects; + bool m_unk; +} + class GJRewardObject : cocos2d::CCObject { SpecialRewardItem m_specialRewardItem; UnlockType m_unlockType; @@ -5120,6 +5128,10 @@ class RetryLevelLayer { static RetryLevelLayer* create() = mac 0x28dd60, win 0x216390; } +class RewardsPage : FLAlertLayer { + bool init() = win 0x2178F0; +} + class RingObject : EffectGameObject { bool create(char const*) = win 0x252220; bool init(char const*) = win 0x2522E0; diff --git a/loader/include/Geode/Enums.hpp b/loader/include/Geode/Enums.hpp index 5665a7c5..e2583b8b 100644 --- a/loader/include/Geode/Enums.hpp +++ b/loader/include/Geode/Enums.hpp @@ -289,6 +289,13 @@ enum class GJLevelType { Saved = 3 }; +enum class GJRewardType +{ + Unknown = 0x0, + Small = 0x1, + Large = 0x2 +}; + enum class IconType { Cube = 0, Ship = 1,