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
)

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): Out of line

MacOS (Intel): Out of line

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(,,,,,,,)

MacOS (ARM): 0x8295c

MacOS (Intel): 0x92140

Windows: 0x3e2d0

iOS: 0x65d30

Android

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

MacOS (ARM): 0x82188

MacOS (Intel): 0x918c0

Windows: 0x3dfc0

iOS: 0x655fc

Android

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

Windows: 0x3e3a0

iOS: 0x65e04

Android

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

Windows: 0x3e070

iOS: 0x656c8

Android

No description provided
virtualvoidsetColor()

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

Windows: 0x3e7e0

Android

No description provided
Fields8
uint8_t[24]__pad223
;
No description provided
;
No description provided
;
No description provided
cocos2d::CCSprite*m_subBGSprite
;
No description provided
;
No description provided
uint8_t[12]__pad228
;
No description provided
cocos2d::CCPointm_spritePosition
;
No description provided
uint8_t[24]__pad230
;
No description provided
Protected member functions0
Protected fields0