cull(engine-cleanup): pass-9 cascade round 2 after NGUIText stub
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -337,7 +337,6 @@ public void Play(int hash, int layer, float normalizedTime) { }
|
||||
public Vector3 WorldToScreenPoint(Vector3 p) => p;
|
||||
public Ray ScreenPointToRay(Vector3 p) => default;
|
||||
}
|
||||
public partial struct CharacterInfo { }
|
||||
|
||||
// ---- coroutine machinery (never pumped headless; types must exist) ----
|
||||
public class YieldInstruction { }
|
||||
|
||||
@@ -98,10 +98,6 @@ namespace UnityEngine
|
||||
public static int GetAllCameras(Camera[] cameras) => 0;
|
||||
}
|
||||
|
||||
public partial struct CharacterInfo
|
||||
{
|
||||
}
|
||||
|
||||
public partial class Font
|
||||
{
|
||||
public string[] fontNames { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user