예제 #1
0
        public MogreForm()
        {
            InitializeComponent();
            this.Disposed += new EventHandler(MogreForm_Disposed);

            mogreWin = new OgreWindow(new Point(100, 30), mogrePanel.Handle);
            mogreWin.InitMogre();
        }
예제 #2
0
        public MogreForm()
        {
            InitializeComponent();
            this.Disposed += new EventHandler(MogreForm_Disposed);

            mogreWin = new OgreWindow(new Point(100, 30), mogrePanel.Handle);
            mogreWin.InitMogre();
        }
예제 #3
0
 public MogreForm()
 {
     InitializeComponent();
     this.Disposed += new EventHandler(MogreForm_Disposed);
     ToReflashAction = new Action<bool>(SafeReflash);
     mogreWin = new OgreWindow(new Point(100, 30), mogrePanel.Handle);
     mogreWin.InitMogre();
     CreateSkyX();
     mogreWin.root.FrameStarted += new FrameListener.FrameStartedHandler(root_FrameStarted);
 }
예제 #4
0
 public MogreForm()
 {
     InitializeComponent();
     this.Disposed  += new EventHandler(MogreForm_Disposed);
     ToReflashAction = new Action <bool>(SafeReflash);
     mogreWin        = new OgreWindow(new Point(100, 30), mogrePanel.Handle);
     mogreWin.InitMogre();
     CreateSkyX();
     mogreWin.root.FrameStarted += new FrameListener.FrameStartedHandler(root_FrameStarted);
 }
        public MogreForm(string theMesh)
        {
            InitializeComponent();
            myBrowser      = new Browser(this);
            this.Disposed += new EventHandler(MogreForm_Disposed);

            Directory.SetCurrentDirectory(Application.StartupPath);

            listBoxAnimations.Visible    = false;
            buttonPlayStop.Visible       = false;
            trackBarAnimPosition.Visible = false;

            trackBarRotateSpeed.Visible = false;
            trackBarRotateSpeed.Value   = 20;

            wardrobeToolStripMenuItem.Enabled = false;
            equipToolStripMenuItem.Enabled    = false;

            SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true);

            mogreWin = new OgreWindow(
                new Point(100, 30),
                new Size(mogrePanel.Height, mogrePanel.Width),
                mogrePanel.Handle);
            mogreWin.InitMogre();

            timerRender.Start();

            inputHandler = new CustomInputHandler(mogrePanel, this, mogreWin.camera);

            EquipSlotTagToName = new Dictionary <EquipWeaponSlot, string>();
            EquipSlotTagToName[EquipWeaponSlot.tag_leftarm]   = "Left Arm";
            EquipSlotTagToName[EquipWeaponSlot.tag_lefthand]  = "Left Hand";
            EquipSlotTagToName[EquipWeaponSlot.tag_righthand] = "Right Hand";

            myEquips = new string[Enum.GetValues(typeof(EquipWeaponSlot)).Length];

            AddMessageFilter(this.Handle);

            this.Text = string.Format("{0} v{1} ({2})", AsmInfo.Title, AsmInfo.Version, AsmInfo.CompanyName);
            //mogreWin.SetViewModel(@"D:\stuff\Torchlight_modding\Greg\MeshViewer\media\HuM_Nude_mesh.MESH");
            mogreWin.SetGrid();
            if (!string.IsNullOrEmpty(theMesh))
            {
                SetMeshModel(theMesh, false);
            }
        }
예제 #6
0
        public MogreForm(string theMesh)
        {
            InitializeComponent();
            myBrowser = new Browser(this);
            this.Disposed += new EventHandler(MogreForm_Disposed);

            Directory.SetCurrentDirectory(Application.StartupPath);

            listBoxAnimations.Visible = false;
            buttonPlayStop.Visible = false;
            trackBarAnimPosition.Visible = false;

            trackBarRotateSpeed.Visible = false;
            trackBarRotateSpeed.Value = 20;

            wardrobeToolStripMenuItem.Enabled = false;
            equipToolStripMenuItem.Enabled = false;

            SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true);

            mogreWin = new OgreWindow(
                new Point(100, 30),
                new Size(mogrePanel.Height, mogrePanel.Width),
                mogrePanel.Handle);
            mogreWin.InitMogre();

            timerRender.Start();

            inputHandler = new CustomInputHandler(mogrePanel, this, mogreWin.camera);

            EquipSlotTagToName = new Dictionary<EquipWeaponSlot, string>();
            EquipSlotTagToName[EquipWeaponSlot.tag_leftarm] = "Left Arm";
            EquipSlotTagToName[EquipWeaponSlot.tag_lefthand] = "Left Hand";
            EquipSlotTagToName[EquipWeaponSlot.tag_righthand] = "Right Hand";

            myEquips = new string[Enum.GetValues(typeof(EquipWeaponSlot)).Length];

            AddMessageFilter(this.Handle);

            this.Text = string.Format("{0} v{1} ({2})", AsmInfo.Title, AsmInfo.Version, AsmInfo.CompanyName);
            //mogreWin.SetViewModel(@"D:\stuff\Torchlight_modding\Greg\MeshViewer\media\HuM_Nude_mesh.MESH");
            mogreWin.SetGrid();
            if (!string.IsNullOrEmpty(theMesh))
            {
                SetMeshModel(theMesh, false);
            }
        }