Class ButtonSprite

#include <Geode/binding/ButtonSprite.hpp>
classButtonSprite:publiccocos2d::CCSprite{ ... }
No description provided
Examples0
Public static methods12
staticButtonSprite*create(,
intwidth
,
boolabsolute
,
floatheight
,
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

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): 0x828f8

MacOS (Intel): 0x920c0

Windows: Out of line

iOS: 0x65cf0

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): 0x82938

MacOS (Intel): 0x92110

Windows: Out of line

iOS: Out of line

Android: Out of line

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

MacOS (ARM): 0x8295c

MacOS (Intel): 0x92140

Windows: 0x3e2d0

iOS: 0x65d30

Android

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

MacOS (ARM): 0x82a88

MacOS (Intel): 0x92280

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): 0x82920

MacOS (Intel): 0x920f0

Windows: Out of line

iOS: Out of line

Android: Out of line

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

MacOS (ARM): 0x82188

MacOS (Intel): 0x918c0

Windows: 0x3dfc0

iOS: 0x655fc

Android

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

MacOS (ARM): 0x82178

MacOS (Intel): 0x918a0

Windows: Out of line

iOS: Out of line

Android: Out of line

No description provided
staticButtonSprite*create()

MacOS (ARM): 0x82154

MacOS (Intel): 0x91870

Windows: Out of line

iOS: Out of line

Android: Out of line

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

MacOS (ARM): 0x82a90

MacOS (Intel): 0x92290

Windows: 0x3e3a0

iOS: 0x65e04

Android

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

MacOS (ARM): 0x822b4

MacOS (Intel): 0x91a00

Windows: 0x3e070

iOS: 0x656c8

Android

No description provided
virtualvoidsetColor()

MacOS (ARM): 0x831f0

MacOS (Intel): 0x92a70

Windows: Out of line

Android

No description provided
voidsetString()

MacOS (ARM): 0x82d08

MacOS (Intel): 0x92530

Windows: 0x3ec60

Android

No description provided
voidupdateBGImage()

MacOS (ARM): 0x830ac

MacOS (Intel): 0x92920

Windows: 0x3e6a0

iOS: 0x663f4

Android

No description provided
voidupdateSpriteBGSize()

MacOS (ARM): 0x82508

MacOS (Intel): 0x91c90

Windows: 0x3e7e0

Android

No description provided
voidupdateSpriteOffset()

MacOS (ARM): 0x831c8

MacOS (Intel): 0x92a40

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