mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-16 20:17:30 +08:00
Removed useless lines of code
Removed a couple lines of code that were not needed
This commit is contained in:
parent
e79f0500ed
commit
b537949343
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user