public override void OnFill (BetterList<Vector3> verts, BetterList<Vector2> uvs, BetterList<Color32> cols)
{
if (!isValid) return;
int offset = verts.size;
Color col = color;
col.a = finalAlpha;
if (mFont != null && mFont.premultipliedAlpha) col = NGUITools.ApplyPMA(col);
string text = processedText;
float pixelSize = (mFont != null) ? mFont.pixelSize : 1f;
int start = verts.size;
UpdateNGUIText(defaultFontSize, mWidth, mHeight);
NGUIText.tint = col;
NGUIText.Print(text, verts, uvs, cols);
// Center the content within the label vertically
Vector2 pos = ApplyOffset(verts, start);
// Apply an effect if one was requested
if (effectStyle != Effect.None)
{
int end = verts.size;
float pixel = pixelSize;
pos.x = pixel * mEffectDistance.x;
pos.y = pixel * mEffectDistance.y;
ApplyShadow(verts, uvs, cols, offset, end, pos.x, -pos.y);
if (effectStyle == Effect.Outline)
{
offset = end;
end = verts.size;
ApplyShadow(verts, uvs, cols, offset, end, -pos.x, pos.y);
offset = end;
end = verts.size;
ApplyShadow(verts, uvs, cols, offset, end, pos.x, pos.y);
offset = end;
end = verts.size;
ApplyShadow(verts, uvs, cols, offset, end, -pos.x, -pos.y);
}
}
}