Esempio n. 1
0
 protected void InitProgresses()
 {
     Progresses = new L2ProgressInfo[(int)L2ObjectStateType.Party8Mp + 1];
     for (int i = 0; i <= Progresses.Length - 1; ++i)
     {
         Progresses[i] = new L2ProgressInfo(i, window);
     }
 }
Esempio n. 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            String fn = "character-" + HttpUtility.UrlEncode(cbCharacter.Text) + ".xml";

            if (!File.Exists(fn))
            {
                return;
            }

            XmlDocument xml = new XmlDocument();

            xml.Load(fn);

            XmlNode window_node = xml["l2window"];

            XmlNodeList nodes = window_node["Progresses"].ChildNodes;

            foreach (XmlNode progress_node in nodes)
            {
                int type = int.Parse(progress_node.SelectSingleNode("type").InnerText);

                L2ProgressInfo info = ProgressBindings.Progresses[type];
                info.X1 = int.Parse(progress_node.SelectSingleNode("x1").InnerText);
                info.Y1 = int.Parse(progress_node.SelectSingleNode("y1").InnerText);
                info.X2 = int.Parse(progress_node.SelectSingleNode("x2").InnerText);
                info.Y2 = int.Parse(progress_node.SelectSingleNode("y2").InnerText);

                info.HpColor = Color.FromArgb(
                    int.Parse(progress_node.SelectSingleNode("hpColorR").InnerText),
                    int.Parse(progress_node.SelectSingleNode("hpColorG").InnerText),
                    int.Parse(progress_node.SelectSingleNode("hpColorB").InnerText)
                    );
            }

            nodes = window_node["KeyTimers"].ChildNodes;
            foreach (XmlNode key_node in nodes)
            {
                int index = int.Parse(key_node.SelectSingleNode("index").InnerText);
                window.AutoKeys.KeyTimers[index].Key      = int.Parse(key_node.SelectSingleNode("key").InnerText);
                window.AutoKeys.KeyTimers[index].Interval = int.Parse(key_node.SelectSingleNode("interval").InnerText);
                window.AutoKeys.KeyTimers[index].Active   = Boolean.Parse(key_node.SelectSingleNode("active").InnerText);
            }
        }
Esempio n. 3
0
 protected void InitProgresses()
 {
     Progresses = new L2ProgressInfo[(int)L2ObjectStateType.Party8Mp + 1];
     for (int i = 0; i <= Progresses.Length - 1; ++i)
     {
         Progresses[i] = new L2ProgressInfo(i, window);
     }
 }