コード例 #1
0
ファイル: F3DUtils.cs プロジェクト: robinerd123/LakiTool
        public static void renderF3DFromFile(string filePath)
        {
            string[] contents   = System.IO.File.ReadAllLines(filePath);
            LUTUtil  lutmanager = new LUTUtil();

            lutmanager.dldata  = contents;
            lutmanager.curFile = filePath;
            lutmanager.fbpath  = LakiTool.MISC.Game.gamePath;
            lutmanager.initF3D();
            ParseF3D p = new ParseF3D(F3DUtils.getF3DCommandsFromLines(contents));

            p.ParseDL(0, lutmanager.luts);
        }
コード例 #2
0
        private void lightEdit()
        {
            this.Text      = "Light" + this.Text;
            panel3.Visible = true;
            LightLUT lightlut = LUTUtil.getLightLUTFromName(name, luts.lightLUT);

            textBox6.Text    = (lightlut.type == 1) ? "Diffuse" : "Ambient";
            textBox7.Text    = lightlut.lightSubData.label.labelLine.ToString();
            textBox8.Text    = lightlut.lightSubData.label.labelName;
            textBox9.Text    = Color.FromArgb((byte)(lightlut.col[0] * 255), (byte)(lightlut.col[1] * 255), (byte)(lightlut.col[2] * 255)).ToString();
            textBox10.Text   = lightlut.rawLightData;
            panel4.BackColor = Color.FromArgb((byte)(lightlut.col[0] * 255), (byte)(lightlut.col[1] * 255), (byte)(lightlut.col[2] * 255));
        }
コード例 #3
0
        private void textureEdit()
        {
            this.Text      = "Texture" + this.Text;
            panel1.Visible = true;
            TexLUT texlut = LUTUtil.getTexLUTFromName(name, luts.texLUT);

            textBox1.Text     = texlut.incbinFile;
            textBox2.Text     = texlut.texFileName;
            textBox3.Text     = texlut.texSubData.label.labelName;
            textBox4.Text     = texlut.texSubData.label.labelLine.ToString();
            textBox5.Text     = texlut.texSubData.label.isGlobal ? "True" : "False";
            pictureBox1.Image = texlut.tex;
        }
コード例 #4
0
 private void vertexEdit()
 {
     this.Text      = "Vertex" + this.Text;
     panel2.Visible = true;
     VtxLUT vtxlut = LUTUtil.getVtxLUTFromName(name, luts.vtxLUT);
 }