mirror of https://github.com/axmolengine/axmol.git
Label:disableEffect(LabelEffect::XXXX) support disable all effect.
This commit is contained in:
parent
5d5fa3d618
commit
0ac99002d5
|
@ -857,6 +857,13 @@ void Label::disableEffect(LabelEffect effect)
|
|||
updateShaderProgram();
|
||||
}
|
||||
break;
|
||||
case LabelEffect::ALL:
|
||||
{
|
||||
disableEffect(LabelEffect::SHADOW);
|
||||
disableEffect(LabelEffect::GLOW);
|
||||
disableEffect(LabelEffect::OUTLINE);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -323,6 +323,7 @@ public:
|
|||
|
||||
/**
|
||||
* Disable all effect to Label.
|
||||
* @warning Please use disableEffect(LabelEffect::ALL) instead of this API.
|
||||
*/
|
||||
virtual void disableEffect();
|
||||
|
||||
|
|
|
@ -556,7 +556,8 @@ enum class LabelEffect {
|
|||
NORMAL,
|
||||
OUTLINE,
|
||||
SHADOW,
|
||||
GLOW
|
||||
GLOW,
|
||||
ALL
|
||||
};
|
||||
|
||||
/** @struct Acceleration
|
||||
|
|
Loading…
Reference in New Issue