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

Method menuCallbackOpacity

tests/cpp-tests/Source/MenuTest/MenuTest.cpp:298–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298void MenuLayer2::menuCallbackOpacity(Object* sender)
299{
300 auto menu = static_cast<Menu*>(static_cast<Node*>(sender)->getParent());
301 uint8_t opacity = menu->getOpacity();
302 if (opacity == 128)
303 menu->setOpacity(255);
304 else
305 menu->setOpacity(128);
306}
307
308void MenuLayer2::menuCallbackAlign(Object* sender)
309{

Callers

nothing calls this directly

Calls 3

getParentMethod · 0.45
getOpacityMethod · 0.45
setOpacityMethod · 0.45

Tested by

no test coverage detected