Class CCMenuItemSpriteExtra

#include <Geode/binding/CCMenuItemSpriteExtra.hpp>
classCCMenuItemSpriteExtra:publiccocos2d::CCMenuItemSprite{ ... }
No description provided
Examples0
Public static methods2
staticCCMenuItemSpriteExtra*create(,,)

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
staticCCMenuItemSpriteExtra*create(,
cocos2d::CCNode*selectedSprite
,,)

MacOS (ARM): 0x21903c

MacOS (Intel): 0x276b90

Windows: 0x44bb0

iOS: 0x21372c

Android

No description provided
Public member functions8
virtualvoidactivate()

MacOS (ARM): 0x219280

MacOS (Intel): 0x276da0

Windows: 0x44db0

iOS: 0x21395c

Android

No description provided
virtualvoidselected()

MacOS (ARM): 0x2193d4

MacOS (Intel): 0x276f20

Windows: 0x44ec0

iOS: 0x213a3c

Android

No description provided
virtualvoidunselected()

MacOS (ARM): 0x219620

MacOS (Intel): 0x2771a0

Windows: 0x450e0

iOS: 0x213c1c

Android

No description provided
boolinit(,
cocos2d::CCNode*selectedSprite
,,)

MacOS (ARM): 0x2190f4

MacOS (Intel): 0x276c20

Windows: 0x44c50

iOS: 0x2137d0

Android

No description provided
voidsetSizeMult(
floatmult
)

MacOS (ARM): 0x219278

MacOS (Intel): 0x276d90

Windows: Out of line

iOS: 0x213954

Android

No description provided
voidsetSprite()

MacOS (ARM): Out of line

MacOS (Intel): Out of line

Windows: Out of line

iOS: Out of line

Android: Out of line

Set a new image for this button

Prefer using this over setNormalImage as the latter does not actually

handle any of the special sizing operations CCMenuItemSpriteExtra has

Parameters

sprite

The sprite to replace this button's sprite with

ℹ Geode additi *

voidupdateSprite()

MacOS (ARM): Out of line

MacOS (Intel): Out of line

Windows: Out of line

iOS: Out of line

Android: Out of line

Update the sizing of this button’s image

If you for example have a ButtonSprite on this button and change the

text, you need to call updateSprite afterwards to fix the button’s

content size

ℹ Geode additi *

voiduseAnimationType()

MacOS (ARM): 0x219230

MacOS (Intel): 0x276d50

Windows: Out of line

iOS: 0x21390c

Android

No description provided
Fields14
floatm_scaleMultiplier
;
No description provided
floatm_baseScale
;
No description provided
boolm_animationEnabled
;
No description provided
boolm_colorEnabled
;
No description provided
floatm_volume
;
No description provided
gd::stringm_activateSound
;
No description provided
gd::stringm_selectSound
;
No description provided
floatm_colorDip
;
No description provided
;
No description provided
floatm_duration
;
No description provided
floatm_unselectedDuration
;
No description provided
MenuAnimationTypem_animationType
;
No description provided
cocos2d::CCPointm_startPosition
;
No description provided
IconTypem_iconType
;
No description provided
Protected member functions0
Protected fields0
Derived classes2