// Returns true if any of the settings do not match:
public virtual bool DidChange(SpriteText s)
{
if (s.text != text)
return true;
if (s.font != font)
return true;
if (s.offsetZ != offsetZ)
return true;
if (s.characterSize != characterSize)
return true;
if (s.characterSpacing != characterSpacing)
return true;
if (s.lineSpacing != lineSpacing)
return true;
if (s.anchor != anchor)
return true;
if (s.alignment != alignment)
return true;
if (s.tabSize != tabSize)
return true;
if (s.color.r != color.r ||
s.color.g != color.g ||
s.color.b != color.b ||
s.color.a != color.a)
return true;
if (maxWidth != s.maxWidth)
return true;
if (s.pixelPerfect != pixelPerfect)
{
s.SetCamera(s.renderCamera);
return true;
}
if (s.renderCamera != renderCamera)
{
s.SetCamera(s.renderCamera);
return true;
}
if (s.hideAtStart != hideAtStart)
{
s.Hide(s.hideAtStart);
return true;
}
return false;
}