From fa363c66fbc5c193729e08d11f0f3ba9d6e8482e Mon Sep 17 00:00:00 2001 From: Gericom Date: Tue, 4 Nov 2014 16:57:59 +0100 Subject: [PATCH] Updated README and some work on the nsbmd viewer --- NDS/UI/MDL0MaterialEditor.cs | 14 +++++++++++++- NDS/UI/NSBMDViewer.designer.cs | 1 + README.md | 3 +++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/NDS/UI/MDL0MaterialEditor.cs b/NDS/UI/MDL0MaterialEditor.cs index 363732d..da25521 100644 --- a/NDS/UI/MDL0MaterialEditor.cs +++ b/NDS/UI/MDL0MaterialEditor.cs @@ -27,9 +27,14 @@ namespace NDS.UI checkBox5.Checked = (Material.polyAttr & 4) != 0; checkBox6.Checked = (Material.polyAttr & 8) != 0; comboBox1.SelectedIndex = (int)((Material.polyAttr >> 4) & 0x3); - comboBox2.SelectedIndex = (int)((Material.polyAttr >> 6) & 0x03); + comboBox2.SelectedIndex = (int)((Material.polyAttr >> 6) & 0x3); + checkBox7.Checked = ((Material.polyAttr >> 11) & 0x1) == 1; + checkBox8.Checked = ((Material.polyAttr >> 12) & 0x1) == 1; + checkBox9.Checked = ((Material.polyAttr >> 13) & 0x1) == 1; comboBox3.SelectedIndex = (int)((Material.polyAttr >> 14) & 0x1); + checkBox10.Checked = ((Material.polyAttr >> 15) & 0x1) == 1; trackBar1.Value = (int)((Material.polyAttr >> 16) & 31); + trackBar2.Value = (int)((Material.polyAttr >> 24) & 63); checkBox1.Checked = (Material.diffAmb & 0x8000) != 0; button1.BackColor = System.Drawing.Color.FromArgb((int)GFXUtil.XBGR1555ToArgb((ushort)(Material.diffAmb & 0x7FFF))); @@ -38,6 +43,13 @@ namespace NDS.UI checkBox2.Checked = (Material.specEmi & 0x8000) != 0; button3.BackColor = System.Drawing.Color.FromArgb((int)GFXUtil.XBGR1555ToArgb((ushort)(Material.specEmi & 0x7FFF))); button4.BackColor = System.Drawing.Color.FromArgb((int)GFXUtil.XBGR1555ToArgb((ushort)((Material.specEmi >> 16) & 0x7FFF))); + + uint wrapS = (Material.texImageParam >> 16) & 1; + if (wrapS != 0) wrapS += (Material.texImageParam >> 18) & 1; + comboBox4.SelectedIndex = (int)wrapS; + uint wrapT = (Material.texImageParam >> 17) & 1; + if (wrapT != 0) wrapT += (Material.texImageParam >> 19) & 1; + comboBox5.SelectedIndex = (int)wrapT; } } } diff --git a/NDS/UI/NSBMDViewer.designer.cs b/NDS/UI/NSBMDViewer.designer.cs index 47f93f1..e331643 100644 --- a/NDS/UI/NSBMDViewer.designer.cs +++ b/NDS/UI/NSBMDViewer.designer.cs @@ -48,6 +48,7 @@ // menuItem1 // this.menuItem1.Index = 0; + this.menuItem1.MergeOrder = 2; this.menuItem1.Text = "NSBTX"; // // splitContainer1 diff --git a/README.md b/README.md index 5e2dd32..2b6fc1e 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,9 @@ Every File Explorer =================== Every File Explorer is a dynamic tool to browse, edit, view, explore and modify files. It is plugin-based, so you can make your own plugins for it aswell! +

Building

+Just open the project in Visual Studio, and build it. You may need to specify the path to the 2 dlls in the Libraries directory. Afterwards, copy them in the Plugins directory aswell. Don't forget to unblock it from external sources! +

Provided Plugins

* 3DS * Common Compressors