// MicroAVS Application: 2.00
// Date: 9 September 1997 15:42:13
// DataNames: 1 WORLD_MAP_X
// Methods: 1 2
// Actives: 0	
// Comments:  
// End
MicroAVS.MicroAVS MicroAVS {
   MicroAVS.MAviewer2D MAviewer {
      objs_in => {
         MAviewerEditors.label_objs,<-.WORLD_MAP_X.obj};
      viewer_params {
         auto_norm = 0;
         top_xform {
            mat = {
               0.0265957,0.,0.,0.,0.,0.0265957,0.,0.,0.,0.,0.0265957,0.,
0.,0.,0.,1.
            };
            xlate = {-5.,-2.4867,0.};
            center = {188.,93.5,0.};
         };
      };
   };
   MicroAVS.MAimageReader WORLD_MAP_X {
      filename = "$XP_PATH<0>/data/IMAGE/WORLD_MAP.X";
   };
// For Demo Script 
   MicroAVS.MAdemo_templ Demo {
      GMOD.parse_v parse_rotz {
         trigger =><-.demo_start;
         active =>trigger;
         on_inst = 0;
         relative => <-.<-.MAviewer.MAviewerEditors.TransformEditor.Params.
                        transform_editor_params;
      };
      GMOD.parse_v parse_backcolor {
         trigger = 0;
         active =>trigger;
         on_inst = 0;
         relative => <-.<-.MAviewer.MAviewerEditors.BackcolorEditor.Params.
                        backcolor_editor_params;
      };
      GMOD.parse_v parse_label {
         trigger = 0;
         active =>trigger;
         on_inst = 0;
         relative => <-.<-.MAviewer.MAviewerEditors.LabelEditor.Params.
                        label_editor_params;
      };
      parse_label parse_label_reset;
      MicroAVS.MAdemo_sleep sleep1 {time=3; next = "parse_label_reset";};
   };
};
MicroAVS.MAviewer.viewer_params.auto_norm = 0;// Auto Normalize Off
MicroAVS.Demo.parse_rotz {
   v_commands = "$push -usr\n Demo.status = 1; $pop\n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n Demo.parse_backcolor.trigger = 1; $pop\n
                 $push -usr\n Demo.parse_rotz.active = 0; $pop\n
                 ";
};
MicroAVS.Demo.parse_backcolor {
   v_commands => "
   $push -usr\n MAviewer.MAviewerEditors.BackcolorEditor.UI.mod_panel.x = 
   " + Demo.x + ";
               MAviewer.MAviewerEditors.BackcolorEditor.UI.mod_panel.y = 
   " + Demo.y + "; $pop\n
   $push -usr\n palette_vis = 1; $pop \n
   $push -usr\n red=0.0;green=0.0;blue=0.0; $pop \n
   $push -usr\n red=0.5;green=0.0;blue=0.0; $pop \n
   $push -usr\n red=1.0;green=0.0;blue=0.0; $pop \n
   $push -usr\n red=0.5;green=0.5;blue=0.0; $pop \n
   $push -usr\n red=0.0;green=1.0;blue=0.0; $pop \n
   $push -usr\n red=0.0;green=0.5;blue=0.5; $pop \n
   $push -usr\n red=0.0;green=0.0;blue=1.0; $pop \n
   $push -usr\n red=0.5;green=0.5;blue=1.0; $pop \n
   $push -usr\n red=1.0;green=1.0;blue=1.0; $pop \n
   $push -usr\n red=0.5;green=0.5;blue=0.5; $pop \n
   $push -usr\n red=0.0;green=0.0;blue=0.0; $pop \n
   $push -usr\n palette_vis = 0; $pop \n
   $push -usr\n Demo.parse_label.trigger = 1; $pop \n
   $push -usr\n Demo.parse_backcolor.active = 0; $pop \n
                ";
};
MicroAVS.Demo.parse_label {
   v_commands => "
   $push -usr\n MAviewer.MAviewerEditors.LabelEditor.UI.mod_panel.x = 
   " + Demo.x + ";
                MAviewer.MAviewerEditors.LabelEditor.UI.mod_panel.y = 
   " + Demo.y + "; $pop\n
   $push -usr\n MAviewer.viewer_params.label_vis = 1; $pop\n
   $push -usr\n Label1.label = \"MicroAVS\"; $pop\n
   $push -usr\n Label1.height = 20; $pop\n
   $push -usr\n Label1.height = 25; $pop\n
   $push -usr\n Label1.height = 30; $pop\n
   $push -usr\n Label1.height = 35; $pop\n
   $push -usr\n Label1.height = 40; $pop\n
   $push -usr\n Label1.font_index = 0; $pop\n
   $push -usr\n Label1.font_index = 1; $pop\n
   $push -usr\n Label1.font_index = 2; $pop\n
   $push -usr\n Label1.font_index = 3; $pop\n
   $push -usr\n Label1.font_index = 0; $pop\n
   $push -usr\n Label1.red=1.0;Label1.green=1.0;Label2.blue=1.0; $pop\n
   $push -usr\n Label1.red=0.0;Label1.green=1.0;Label2.blue=1.0; $pop\n
   $push -usr\n Label1.red=1.0;Label1.green=1.0;Label2.blue=0.0; $pop\n
   $push -usr\n Label1.red=1.0;Label1.green=0.0;Label2.blue=1.0; $pop\n
   $push -usr\n Label1.red=1.0;Label1.green=0.0;Label2.blue=0.0; $pop\n
   $push -usr\n Label1.red=0.0;Label1.green=1.0;Label2.blue=0.0; $pop\n
   $push -usr\n Label1.red=0.0;Label1.green=0.0;Label2.blue=1.0; $pop\n
   $push -usr\n Label1.red=1.0;Label1.green=1.0;Label2.blue=1.0; $pop\n
   $push -usr\n Label1.x_pos = 0.0; $pop\n
   $push -usr\n Label1.x_pos = -0.2; $pop\n
   $push -usr\n Label1.x_pos = -0.4; $pop\n
   $push -usr\n Label1.x_pos = -0.6; $pop\n
   $push -usr\n Label1.x_pos = -0.8; $pop\n
   $push -usr\n Label1.x_pos = -1.0; $pop\n
   $push -usr\n Label1.y_pos = 0.0; $pop\n
   $push -usr\n Label1.y_pos = 0.1; $pop\n
   $push -usr\n Label1.y_pos = 0.2; $pop\n
   $push -usr\n Label1.y_pos = 0.3; $pop\n
   $push -usr\n Label1.y_pos = 0.4; $pop\n
   $push -usr\n Label1.y_pos = 0.5; $pop\n
   $push -usr\n Label1.x_pos = -1.0; $pop\n
   $push -usr\n Label1.x_pos = -0.8; $pop\n
   $push -usr\n Label1.x_pos = -0.6; $pop\n
   $push -usr\n Demo.sleep1.trigger = 1; $pop \n
   $push -usr\n Demo.parse_label.active = 0; $pop \n
   ";
};
MicroAVS.Demo.parse_label_reset {
   v_commands => " $push -usr\n reset = 1; $pop\n
                   $push -usr\n MAviewer.viewer_params.label_vis = 0; $pop\n
                   $push -usr\n Demo.status = 0; $pop\n
                 ";
};
