Exemple #1
0
 private void Form1_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (m_3DEngie != null)
     {
         m_3DEngie.UnInit();
         m_3DEngie = null;
     }
 }
Exemple #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            //ArrayList[] a = { new ArrayList(), new ArrayList(), new ArrayList(), new ArrayList(), new ArrayList(), new ArrayList() };
            //ArrayList elem = (ArrayList)a[0];
            //elem.Add("aaa");
            m_strSockets    = new string[9];
            m_strSockets[0] = "s_hat"; m_strSockets[1] = "s_spine2"; m_strSockets[2] = "s_spine";
            m_strSockets[3] = "s_rp";  m_strSockets[4] = "s_lp";     m_strSockets[5] = "s_rc";
            m_strSockets[6] = "s_lc";  m_strSockets[7] = "s_rh";     m_strSockets[8] = "s_lh";

            m_strMdlDefaultPath = new string[(int)MdlType.MT_COUNT];
            m_strMdlDefaultPath[(int)MdlType.MT_PLAYER] = "data\\source\\player\\";
            m_strMdlDefaultPath[(int)MdlType.MT_NPC]    = "data\\source\\npc\\";
            m_strMdlDefaultPath[(int)MdlType.MT_DODEAD] = "data\\source\\doodad\\";
            m_strMdlDefaultPath[(int)MdlType.MT_OTHER]  = "";

            m_strMdlDefaultAnimationPathSuffix = new string[(int)MdlType.MT_COUNT];
            m_strMdlDefaultAnimationPathSuffix[(int)MdlType.MT_PLAYER] = "动作";
            m_strMdlDefaultAnimationPathSuffix[(int)MdlType.MT_NPC]    = "";
            m_strMdlDefaultAnimationPathSuffix[(int)MdlType.MT_DODEAD] = "";
            m_strMdlDefaultAnimationPathSuffix[(int)MdlType.MT_OTHER]  = "";

            m_strMdlDefaultFacePathSuffix = new string[(int)MdlType.MT_COUNT];
            m_strMdlDefaultFacePathSuffix[(int)MdlType.MT_PLAYER] = "部件";
            m_strMdlDefaultFacePathSuffix[(int)MdlType.MT_NPC]    = "";
            m_strMdlDefaultFacePathSuffix[(int)MdlType.MT_DODEAD] = "";
            m_strMdlDefaultFacePathSuffix[(int)MdlType.MT_OTHER]  = "";

            m_HeadFilePath = new ArrayList();
            m_HandFilePath = new ArrayList();
            m_LegFilePath  = new ArrayList();
            m_BodyFilePath = new ArrayList();
            m_BeltFilePath = new ArrayList();
            m_FaceFilePath = new ArrayList();
            m_AniFilePath  = new ArrayList();
            m_ItemFilePath = new ArrayList();
            m_MdlFile      = new ArrayList();
            m_MdlFilePath  = new ArrayList();
            m_3DEngie      = new AtlOld3DEngine();

            StringBuilder sb = new StringBuilder();

            FileFolderHelper.ReadIniFile("General", "3DEnginePath", "", sb, 255, Application.StartupPath + "/GameDesingerTools.ini");
            string EngineDir = sb.ToString();

            m_3DEngie.Init((int)this.pictureBox1.Handle, EngineDir, Application.StartupPath);

            comboBox_Type.SelectedIndex = 0;
            RefreshModel();
            ItemsRefresh();
            this.Player_comboBox.SelectedIndex = 0;
            if (Ani_listBox.Items.Count > 0)
            {
                this.Ani_listBox.SelectedIndex = 0;
            }
        }
Exemple #3
0
        private void Form1_Load(object sender, EventArgs e)
        {
            //ArrayList[] a = { new ArrayList(), new ArrayList(), new ArrayList(), new ArrayList(), new ArrayList(), new ArrayList() };
            //ArrayList elem = (ArrayList)a[0];
            //elem.Add("aaa");
            m_strSockets = new string[9];
            m_strSockets[0] = "s_hat"; m_strSockets[1] = "s_spine2"; m_strSockets[2] = "s_spine";
            m_strSockets[3] = "s_rp";  m_strSockets[4] = "s_lp";     m_strSockets[5] = "s_rc";
            m_strSockets[6] = "s_lc";  m_strSockets[7] = "s_rh";     m_strSockets[8] = "s_lh";
            
            m_strMdlDefaultPath = new string[(int)MdlType.MT_COUNT];
            m_strMdlDefaultPath[(int)MdlType.MT_PLAYER] = "data\\source\\player\\";
            m_strMdlDefaultPath[(int)MdlType.MT_NPC] = "data\\source\\npc\\";
            m_strMdlDefaultPath[(int)MdlType.MT_DODEAD] = "data\\source\\doodad\\";
            m_strMdlDefaultPath[(int)MdlType.MT_OTHER] = "";

            m_strMdlDefaultAnimationPathSuffix = new string[(int)MdlType.MT_COUNT];
            m_strMdlDefaultAnimationPathSuffix[(int)MdlType.MT_PLAYER] = "动作";
            m_strMdlDefaultAnimationPathSuffix[(int)MdlType.MT_NPC] = "";
            m_strMdlDefaultAnimationPathSuffix[(int)MdlType.MT_DODEAD] = "";
            m_strMdlDefaultAnimationPathSuffix[(int)MdlType.MT_OTHER] = "";

            m_strMdlDefaultFacePathSuffix = new string[(int)MdlType.MT_COUNT];
            m_strMdlDefaultFacePathSuffix[(int)MdlType.MT_PLAYER] = "部件";
            m_strMdlDefaultFacePathSuffix[(int)MdlType.MT_NPC] = "";
            m_strMdlDefaultFacePathSuffix[(int)MdlType.MT_DODEAD] = "";
            m_strMdlDefaultFacePathSuffix[(int)MdlType.MT_OTHER] = "";

            m_HeadFilePath = new ArrayList();
            m_HandFilePath = new ArrayList();
            m_LegFilePath = new ArrayList();
            m_BodyFilePath = new ArrayList();
            m_BeltFilePath = new ArrayList();
            m_FaceFilePath = new ArrayList();
            m_AniFilePath = new ArrayList();
            m_ItemFilePath = new ArrayList();
            m_MdlFile = new ArrayList();
            m_MdlFilePath = new ArrayList();
            m_3DEngie = new AtlOld3DEngine();

            StringBuilder sb = new StringBuilder();
            FileFolderHelper.ReadIniFile("General", "3DEnginePath", "", sb, 255, Application.StartupPath + "/GameDesingerTools.ini");
            string EngineDir = sb.ToString();
            m_3DEngie.Init((int)this.pictureBox1.Handle, EngineDir, Application.StartupPath);

            comboBox_Type.SelectedIndex = 0;
            RefreshModel();
            ItemsRefresh();
            this.Player_comboBox.SelectedIndex = 0;
            if (Ani_listBox.Items.Count > 0)
            {
                this.Ani_listBox.SelectedIndex = 0;
            }
                     
        }
Exemple #4
0
 private void Form1_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (m_3DEngie != null)
     {
         m_3DEngie.UnInit();
         m_3DEngie = null;
     }
 }