Add skin property image.frames and image.index.

This commit is contained in:
2023-02-17 14:40:34 +08:00
parent e7ce0985fb
commit 0d4cc5e208
4 changed files with 56 additions and 26 deletions

View File

@@ -77,7 +77,6 @@ namespace Cryville.Crtr.Components {
verts.Clear();
uvs.Clear();
foreach (var f in m_frames) {
f.Value.Load();
if (frameHeight == 0) frameHeight = f.Value.Rect.height;
else if (frameHeight != f.Value.Rect.height) throw new Exception("Inconsistent frame height for text component");
var tex = f.Value.Frame.Texture;