diff --git a/bindings/Cocos2d.bro b/bindings/Cocos2d.bro index 296b5165..fb733dd1 100644 --- a/bindings/Cocos2d.bro +++ b/bindings/Cocos2d.bro @@ -288,6 +288,8 @@ class cocos2d::CCIMEDispatcher { class cocos2d::CCImage { CCImage() = mac 0x24fa00; virtual ~CCImage() = mac 0x24fa80; + auto initWithImageFile(const char*, cocos2d::CCImage::EImageFormat imageType); + auto initWithImageFileThreadSafe(const char*, cocos2d::CCImage::EImageFormat imageType); auto initWithImageData(void*, int, cocos2d::CCImage::EImageFormat, int, int, int) = mac 0x24fcb0; } @@ -929,6 +931,8 @@ class cocos2d::CCTexture2D { auto initWithData(void const*, cocos2d::CCTexture2DPixelFormat, unsigned int, unsigned int, cocos2d::CCSize const&) = mac 0x2465d0; auto setAliasTexParameters() = mac 0x247a20; auto setAntiAliasTexParameters() = mac 0x247a80; + static void setDefaultAlphaPixelFormat(cocos2d::CCTexture2DPixelFormat); + static cocos2d::CCTexture2DPixelFormat defaultAlphaPixelFormat(); auto setMaxS(float) = mac 0x2464f0; auto setMaxT(float) = mac 0x246510; auto setShaderProgram(cocos2d::CCGLProgram*) = mac 0x246530; diff --git a/bindings/GeometryDash.bro b/bindings/GeometryDash.bro index 27fb3e81..4bd56ff5 100644 --- a/bindings/GeometryDash.bro +++ b/bindings/GeometryDash.bro @@ -5555,9 +5555,27 @@ class UploadPopupDelegate { class UserInfoDelegate {} class VideoOptionsLayer : FLAlertLayer { - PAD = win 0x18; + VideoOptionsLayer* create() = win 0x1e0d70; + bool init() = win 0x1e0e10; + void onAdvanced(cocos2d::CCObject*) = win 0x1e1b40; + void onFullscreen(cocos2d::CCObject*) = win 0x1e1b60; + void onTextureQualityNext(cocos2d::CCObject*) = win 0x1e1b80; + void onTextureQualityPrev(cocos2d::CCObject*) = win 0x1e1b90; + void updateTextureQuality(int index) = win 0x1e1ba0; + void onResolutionPrev(cocos2d::CCObject*) = win 0x1e1c40; + void onResolutionNext(cocos2d::CCObject*) = win 0x1e1c50; + void updateResolution(int index) = win 0x1e1c60; + void toggleResolution() = win 0x1e1d90; + void onApply(cocos2d::CCObject*) = win 0x1e1e70; + + CCMenuItemSpriteExtra* m_prevResolution; + CCMenuItemSpriteExtra* m_nextResolution; + cocos2d::CCLabelBMFont* m_resolutionLabel; + cocos2d::CCLabelBMFont* m_resolutionText; + cocos2d::CCLabelBMFont* m_qualityLabel; + cocos2d::TextureQuality m_quality; cocos2d::CCArray* m_resolutions; - PAD = win 0x4; + bool m_isFullscreen; int m_currentResolution; } diff --git a/loader/include/Geode/cocos/platform/win32/CCEGLView.h b/loader/include/Geode/cocos/platform/win32/CCEGLView.h index 556e3c7d..6b27a802 100644 --- a/loader/include/Geode/cocos/platform/win32/CCEGLView.h +++ b/loader/include/Geode/cocos/platform/win32/CCEGLView.h @@ -153,7 +153,13 @@ protected: RT_ADD( GLFWwindow* m_pMainWindow; GLFWmonitor* m_pPrimaryMonitor; - CCSize m_obWindowedSize; + ) +public: + RT_ADD( + CC_SYNTHESIZE_NV(CCSize, m_obWindowedSize, WindowedSize); + ) +protected: + RT_ADD( float m_fMouseX; float m_fMouseY; bool m_bIsFullscreen;