Пример #1
0
        private void Form2_Load(object sender, EventArgs e)
        {
            this.ForeColor         = EdLib.CFore; this.BackColor = EdLib.CBack;
            listView1.ForeColor    = EdLib.CFore; listView1.BackColor = EdLib.CBack;
            richTextBox1.ForeColor = EdLib.CFore; richTextBox1.BackColor = EdLib.CBack;
            button1.ForeColor      = EdLib.CFore; button1.BackColor = EdLib.CBack;
            button2.ForeColor      = EdLib.CFore; button2.BackColor = EdLib.CBack;
            button3.ForeColor      = EdLib.CFore; button3.BackColor = EdLib.CBack;
            button4.ForeColor      = EdLib.CFore; button4.BackColor = EdLib.CBack;
            button5.ForeColor      = EdLib.CFore; button5.BackColor = EdLib.CBack;
            this.Text = Form1.appChineseName;
            this.Icon = Form1.main.Icon;
            EdLib.SetBrowser(listView1, listView1.Width);
            reloadList();
            listView1.Items.Add("☀官方资源包");
            descs.Add("该资源包为官方原版内容资源包,包含所有该游戏的图标、模型、音乐、卡牌设计等数据,适合新手学习使用。");
            names.Add("Builtin");
            ids.Add("");
            var pos = EdLib.HasFile(Form1.GetPath("{game}"), true) ? Form1.GetPath("{game}") : Form1.GetPath("{localgame}");

            paths.Add(pos + "\\TetraProject_Data\\StreamingAssets\\Packages\\Builtin");
            pictureBox1.BackgroundImageLayout = ImageLayout.Stretch;
            pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
            //EdLib.AskMsg(pos + "\\TetraProject_Data\\StreamingAssets\\Packages\\Builtin");
        }
Пример #2
0
 private void reloadList()
 {
     listView1.Clear();
     descs.Clear();
     paths.Clear();
     EdLib.SetBrowser(listView1, 160);
     if (EdLib.HasFile(Form1.path_UserPackage, true))
     {
         LoadFiles("{packages}");
         LoadFiles("{localpackages}");
     }
 }