{
mUnderlineColor = textColor;
}
+ if(!mStrikethroughColorSet)
+ {
+ mStrikethroughColor = textColor;
+ }
}
void VisualModel::SetShadowOffset(const Vector2& shadowOffset)
void VisualModel::SetStrikethroughColor(const Vector4& color)
{
- mStrikethroughColor = color;
+ mStrikethroughColor = color;
+ mStrikethroughColorSet = true;
}
void VisualModel::SetStrikethroughEnabled(bool enabled)
mBackgroundEnabled(false),
mMarkupProcessorEnabled(false),
mStrikethroughEnabled(false),
+ mStrikethroughColorSet(false),
mCharacterSpacing(0.0f),
mCutoutEnabled(false),
mBackgroundWithCutoutEnabled(false)
bool mUnderlineColorSet : 1; ///< Has the underline color been explicitly set?
bool mBackgroundEnabled : 1; ///< Background enabled flag
bool mMarkupProcessorEnabled : 1; ///< Markup-processor enabled flag
- HyphenInfo mHyphen; ///< Contains hyphen glyph info & the character index to draw hyphen after.
bool mStrikethroughEnabled : 1; ///< Strikethrough enabled flag
+ bool mStrikethroughColorSet : 1; ///< Has the strikethrough color been explicitly set?
float mCharacterSpacing; ///< Contains the value of the character spacing.
bool mCutoutEnabled : 1; ///< Cutout enabled flag
bool mBackgroundWithCutoutEnabled : 1; ///< Background with cutout enabled flag.
+ HyphenInfo mHyphen; ///< Contains hyphen glyph info & the character index to draw hyphen after.
};
} // namespace Text