MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / setOpacity

Method setOpacity

Source/GameObject.cpp:318–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316 _particle->setScaleY(scaley * (isFlippedX() ? -1.f : 1.f));
317}
318void GameObject::setOpacity(uint8_t opacity)
319{
320 if (_primaryInvisible) opacity = 0;
321 Sprite::setOpacity(opacity);
322 if (_hasGlow)
323 _glowSprite->setOpacity(opacity);
324 if (_hasParticle)
325 _particle->setOpacity(opacity);
326}
327
328Color3B GameObject::getChannelColor(SpriteColor *colorChannel)
329{

Callers 15

initMethod · 0.80
drawPropertiesFunction · 0.80
switchStateMethod · 0.80
initMethod · 0.80
showEarnedCurrencyMethod · 0.80
initMethod · 0.80
initMethod · 0.80
initMethod · 0.80
initMethod · 0.80
setupIconSelectMethod · 0.80
setupPageMethod · 0.80
initMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected