Class ButtonSprite

#include <Geode/binding/ButtonSprite.hpp>
classButtonSprite:publiccocos2d::CCSprite{ ... }
No description provided
Examples0
Public static methods7
staticButtonSprite*create(,
intwidth
,
boolabsolute
,
floatheight
,
charconst*texture
,
floatscale
)

Out of line

Create a ButtonSprite with a top sprite and a texture.

Parameters

topSprite

The top sprite to add on top of the sprite

width

Sprite width; ignored if `absolute` is false

absolute

Whether to use absolute width or not

texture

The name of the background sprite file (can't be in a spritesheet)

height

The height of the button, leave 0 for automatic

scale

Scale of top spri *
staticButtonSprite*create(
charconst*caption
,
intwidth
,
boolabsolute
,,
charconst*texture
,
floatheight
,
floatscale
)

Out of line

Create a ButtonSprite with text, a font and a texture.

Parameters

caption

The text of the ButtonSprite

width

Sprite width; ignored if `absolute` is false

absolute

Whether to use absolute width or not

font

The name of the BM font file to use

texture

The name of the background sprite file (can't be in a spritesheet)

height

The height of the button, leave 0 for automatic

scale

Scale of text
Return value
Pointer to the created ButtonSprite, or nullptr on err *
staticButtonSprite*create(
charconst*caption
)

Out of line

No description provided
staticButtonSprite*create(
charconst*caption
,,
charconst*texture
)

Out of line

No description provided
staticButtonSprite*create(
charconst*caption
,,
charconst*texture
,
floatscale
)

Out of line

No description provided
staticButtonSprite*create(,
intp1
,
intp2
,,,,,)

Windows: 0x1feb0

Android

No description provided
staticButtonSprite*create(,
intwidth
,
intunused
,
floatheight
,,,
charconst*bgSprite
,
boolnoScaleSpriteForBG
)

Windows: 0x1fb90

Android

No description provided
Public member functions6
boolinit(,
intp1
,
intp2
,,,,,)

Windows: 0x1ff80

Android

No description provided
boolinit(,
intwidth
,
intunused
,
floatscale
,
floatheight
,
boolunkBool
,
charconst*bgSprite
,
booluseNormalCCSpriteForBG
)

Windows: 0x1fc60

Android

No description provided
voidsetColor()

Windows: 0x20b20

Android

No description provided
voidsetString()

Windows: 0x20770

Android

No description provided
voidupdateBGImage()

Windows: 0x20230

Android

No description provided
voidupdateSpriteBGSize()

Windows: 0x20340

Android

No description provided
Fields7
uint8_t[24]__pad179
;
No description provided
;
No description provided
;
No description provided
cocos2d::CCSprite*m_subBGSprite
;
No description provided
;
No description provided
uint8_t[8]__pad184
;
No description provided
cocos2d::CCPointm_spritePosition
;
No description provided
Protected member functions0
Protected fields0