cull(engine-cleanup): pass-9 cascade round 2 after NGUIText stub

This commit is contained in:
gamer147
2026-07-03 23:38:51 -04:00
parent 08c6bca58c
commit 39ae2b0c0a
4 changed files with 0 additions and 43 deletions

View File

@@ -18,8 +18,6 @@ public class BMGlyph
public int offsetY;
public List<int> kerning;
public void Trim(int xMin, int yMin, int xMax, int yMax)
{
int num = x + width;

View File

@@ -54,40 +54,4 @@ public class BMSymbol
{
mIsValid = false;
}
public bool Validate(UIAtlas atlas)
{
if (atlas == null)
{
return false;
}
if (!mIsValid)
{
if (string.IsNullOrEmpty(spriteName))
{
return false;
}
mSprite = ((atlas != null) ? atlas.GetSprite(spriteName) : null);
if (mSprite != null)
{
Texture texture = atlas.texture;
if (texture == null)
{
mSprite = null;
}
else
{
mUV = new Rect(mSprite.x, mSprite.y, mSprite.width, mSprite.height);
mUV = NGUIMath.ConvertToTexCoords(mUV, texture.width, texture.height);
mOffsetX = mSprite.paddingLeft;
mOffsetY = mSprite.paddingTop;
mWidth = mSprite.width;
mHeight = mSprite.height;
mAdvance = mSprite.width + (mSprite.paddingLeft + mSprite.paddingRight);
mIsValid = true;
}
}
}
return mSprite != null;
}
}