Class ButtonSprite

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

MacOS (ARM): 0x8579c

MacOS (Intel): 0x92640

Windows: 0x3f150

Android

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

MacOS (ARM): 0x84fe0

MacOS (Intel): 0x91db0

Windows: 0x3ee40

Android

No description provided
staticButtonSprite*create(,
intwidth
,
boolabsolute
,
floatheight
,
charconst*texture
,
floatscale
)

MacOS (ARM): Out of line

MacOS (Intel): 0x91d90

Windows: Out of line

iOS: Out of line

Android: 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
)

MacOS (ARM): Out of line

MacOS (Intel): Out of line

Windows: Out of line

iOS: Out of line

Android: 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
)

MacOS (ARM): Out of line

MacOS (Intel): 0x925c0

Windows: Out of line

iOS: Out of line

Android: Out of line

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

MacOS (ARM): Out of line

MacOS (Intel): Out of line

Windows: Out of line

iOS: Out of line

Android: Out of line

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

MacOS (ARM): Out of line

MacOS (Intel): Out of line

Windows: Out of line

iOS: Out of line

Android: Out of line

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

MacOS (ARM): Out of line

MacOS (Intel): 0x92610

Windows: Out of line

iOS: Out of line

Android: Out of line

No description provided
staticButtonSprite*create(
charconst*caption
,
intwidth
,
intp2
,
floatscale
,
boolabsolute
,,)

MacOS (ARM): Out of line

MacOS (Intel): 0x92780

Windows: Out of line

iOS: Out of line

Android: Out of line

No description provided
staticButtonSprite*create(
charconst*caption
,
intwidth
,
intp2
,
floatscale
,
boolabsolute
)

MacOS (ARM): Out of line

MacOS (Intel): 0x925f0

Windows: Out of line

iOS: Out of line

Android: Out of line

No description provided
staticButtonSprite*create(,
intwidth
,
intunused
,
floatheight
,
floatscale
,
boolabsolute
)

MacOS (ARM): Out of line

MacOS (Intel): 0x91d90

Windows: Out of line

iOS: Out of line

Android: Out of line

No description provided
staticButtonSprite*create()

MacOS (ARM): Out of line

MacOS (Intel): 0x91d60

Windows: Out of line

iOS: Out of line

Android: Out of line

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

MacOS (ARM): 0x858d8

MacOS (Intel): 0x92790

Windows: 0x3f220

Android

No description provided
boolinit(,
intwidth
,
intunused
,
floatheight
,
floatscale
,
boolabsolute
,
charconst*bgSprite
,
boolnoScaleSpriteForBG
)

MacOS (ARM): 0x85114

MacOS (Intel): 0x91f00

Windows: 0x3eef0

Android

No description provided
voidsetColor()

MacOS (ARM): Out of line

MacOS (Intel): Out of line

Windows: Out of line

iOS: Out of line

Android: Out of line

No description provided
voidsetString()

MacOS (ARM): 0x85b60

MacOS (Intel): 0x92a40

Windows: 0x3fae0

Android

No description provided
voidupdateBGImage()

MacOS (ARM): 0x85f00

MacOS (Intel): 0x92e20

Windows: 0x3f520

Android

No description provided
voidupdateSpriteBGSize()

MacOS (ARM): 0x85368

MacOS (Intel): 0x92190

Windows: 0x3f660

Android

No description provided
voidupdateSpriteOffset()

MacOS (ARM): 0x8601c

MacOS (Intel): 0x92f40

Windows: Out of line

Android

No description provided
Fields13
intm_mode
;
No description provided
floatm_width
;
No description provided
floatm_unkFloat
;
No description provided
floatm_scale
;
No description provided
floatm_height
;
No description provided
boolm_absolute
;
No description provided
;
No description provided
;
No description provided
cocos2d::CCSprite*m_subBGSprite
;
No description provided
;
No description provided
cocos2d::CCPointm_textOffset
;
No description provided
cocos2d::CCPointm_spritePosition
;
No description provided
gd::stringm_caption
;
No description provided
Protected member functions0
Protected fields0