// Select texture
 public virtual void OnSelectTexture()
 {
     if (General.Interface.IsActiveWindow)
     {
         string oldtexture = GetTextureName();
         string newtexture = General.Interface.BrowseTexture(General.Interface, oldtexture);
         if (newtexture != oldtexture)
         {
             mode.ApplySelectTexture(newtexture, false);
         }
     }
 }