diff --git a/Forms/YtdForm.cs b/Forms/YtdForm.cs index f7e5fde..2dcdb7b 100644 --- a/Forms/YtdForm.cs +++ b/Forms/YtdForm.cs @@ -21,7 +21,6 @@ namespace CodeWalker.Forms private YtdFile Ytd { get; set; } private TextureDictionary TexDict { get; set; } private Texture CurrentTexture = null; - private float CurrentZoom = 0.0f; //1.0 = 100%, 0.0 = stretch private new Point MouseDown; private Boolean MouseIsHovering = false; @@ -32,7 +31,6 @@ namespace CodeWalker.Forms InitializeComponent(); } - public void LoadYtd(YtdFile ytd) { Ytd = ytd; @@ -45,6 +43,7 @@ namespace CodeWalker.Forms LoadTexDict(ytd.TextureDict, fileName); } + public void LoadTexDict(TextureDictionary texdict, string filename) { TexDict = texdict; @@ -93,8 +92,6 @@ namespace CodeWalker.Forms return texs.Length.ToString() + " texture" + ((texs.Length != 1) ? "s" : ""); } - - private void ShowTextureMip(Texture tex, int mip, bool mipchange) { CurrentTexture = tex; @@ -113,7 +110,6 @@ namespace CodeWalker.Forms return; } - if (mipchange) { if (mip >= tex.Levels) mip = tex.Levels - 1; @@ -126,7 +122,6 @@ namespace CodeWalker.Forms SelTextureNameTextBox.Text = tex.Name; DetailsPropertyGrid.SelectedObject = tex; - try { int cmip = Math.Min(Math.Max(mip, 0), tex.Levels - 1); @@ -170,8 +165,6 @@ namespace CodeWalker.Forms UpdateZoom(); } - - private void UpdateFormTitle() { Text = fileName + " - Texture Dictionary - CodeWalker by dexyfex";