Skip to content

Commit 0a8189f

Browse files
LoadingCircleSprite bindings
1 parent 625f928 commit 0a8189f

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

bindings/2.2074/GeometryDash.bro

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13618,16 +13618,21 @@ class LoadingCircleSprite : cocos2d::CCSprite {
1361813618

1361913619
/// Create a Loading Circle Sprite with a spinning action
1362013620
/// @param spinSpeed A speed modifier, higher is faster and lower is slower
13621-
static LoadingCircleSprite* create(float spinSpeed) = win 0x6bc30, imac 0x4ac190;
13621+
static LoadingCircleSprite* create(float spinSpeed) = win 0x6bc30, m1 0x415268, imac 0x4ac190;
1362213622

1362313623
cocos2d::CCAction* fadeInCircle(bool, float, float) = win 0x6bd30, imac 0x4ac330, m1 0x4153e4;
13624-
void hideCircle() = win inline, m1 0x415470 {
13624+
void hideCircle() = win inline, m1 0x415470, imac 0x4ac3b0 {
1362513625
this->stopActionByTag(0);
1362613626
this->setOpacity(0);
1362713627
this->setVisible(false);
1362813628
}
1362913629

13630-
bool init(float);
13630+
bool init(float spinSpeed) = win inline, m1 0x41534c, imac 0x4ac270 {
13631+
if (!CCSprite::initWithFile("loadingCircle.png")) return false;
13632+
this->setBlendFunc({ GL_SRC_ALPHA, GL_ONE });
13633+
this->runAction(cocos2d::CCRepeatForever::create(cocos2d::CCRotateBy::create(1.f, spinSpeed * 360.f)));
13634+
return true;
13635+
}
1363113636
}
1363213637

1363313638
[[link(android)]]

0 commit comments

Comments
 (0)