MCPcopy Create free account
hub / github.com/axmolengine/axmol / initWithLabel

Method initWithLabel

core/2d/MenuItem.cpp:183–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183bool MenuItemLabel::initWithLabel(Node* label, const ccMenuCallback& callback)
184{
185 MenuItem::initWithCallback(callback);
186 _originalScale = 1.0f;
187 _colorBackup = Color3B::WHITE;
188 setDisabledColor(Color3B(126, 126, 126));
189 this->setLabel(label);
190
191 setCascadeColorEnabled(true);
192 setCascadeOpacityEnabled(true);
193
194 return true;
195}
196
197MenuItemLabel::~MenuItemLabel() {}
198

Callers 1

createMethod · 0.80

Calls 3

setLabelMethod · 0.95
setDisabledColorFunction · 0.85
Color3BFunction · 0.85

Tested by

no test coverage detected