Ejemplo n.º 1
0
 private void resourceTree_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
 {
     if (e.Node.Text.EndsWith(".bmp", StringComparison.OrdinalIgnoreCase))
     {
         TextureViewer t = new TextureViewer();
         t.DisplayGk3Bitmap(e.Node.Text);
         t.Show();
     }
 }
Ejemplo n.º 2
0
        bool viewSurfaceLightmap(string[] args, Gk3Main.Console console)
        {
            if (args.Length != 2)
            {
                return(false);
            }

            int surface;

            if (int.TryParse(args[1], out surface) == false)
            {
                return(false);
            }

            TextureViewer viewer = new TextureViewer();

            viewer.DisplaySurfaceLightmap(Gk3Main.SceneManager.CurrentRoom, Gk3Main.SceneManager.CurrentLightmaps, surface);
            viewer.Show();

            return(true);
        }