1
0
mirror of synced 2024-09-24 11:38:22 +02:00

Fix bone visibily anims for wii u and fix the editor a bit

This commit is contained in:
KillzXGaming 2019-04-26 15:43:32 -04:00
parent 46c962ff0a
commit a41737031f
10 changed files with 13 additions and 19 deletions

Binary file not shown.

View File

@ -94,16 +94,16 @@ namespace FirstPlugin.Forms
dataGridView1.DataSource = null; dataGridView1.DataSource = null;
dataGridView1.Rows.Clear(); dataGridView1.Rows.Clear();
int rowIndex = 0;
for (int frame = 0; frame < vis.FrameCount; frame++) for (int frame = 0; frame < vis.FrameCount; frame++)
{ {
if (IsKeyed(vis, frame)) if (IsKeyed(vis, frame))
{ {
int rowIndex = 0; rowIndex = this.dataGridView1.Rows.Add();
if (frame != 0)
rowIndex = this.dataGridView1.Rows.Add();
var row = this.dataGridView1.Rows[rowIndex]; var row = this.dataGridView1.Rows[rowIndex];
row.Cells["FrameColumn"].Value = frame; Console.WriteLine("rowIndex " + rowIndex);
row.Cells["FrameColumn"].Value = frame.ToString();
for (int curve = 0; curve < vis.Values.Count; curve++) for (int curve = 0; curve < vis.Values.Count; curve++)
{ {

View File

@ -34,27 +34,23 @@ namespace Switch_Toolbox.Library.Forms
{ {
GridColor = FormThemes.BaseTheme.ConsoleEditorBackColor; GridColor = FormThemes.BaseTheme.ConsoleEditorBackColor;
} }
EnableHeadersVisualStyles = false; EnableHeadersVisualStyles = false;
GridViewCellStyle = new DataGridViewCellStyle()
{
BackColor = FormThemes.BaseTheme.FormBackColor,
ForeColor = FormThemes.BaseTheme.FormForeColor
};
Refresh(); Refresh();
} }
public void ApplyStyles() public void ApplyStyles()
{ {
foreach (DataGridViewColumn column in Columns) foreach (DataGridViewColumn column in Columns)
column.DefaultCellStyle = GridViewCellStyle; {
column.DefaultCellStyle.BackColor = FormThemes.BaseTheme.FormBackColor;
column.DefaultCellStyle.ForeColor = FormThemes.BaseTheme.FormForeColor;
}
foreach (DataGridViewRow row in Rows) foreach (DataGridViewRow row in Rows)
row.DefaultCellStyle = GridViewCellStyle; {
row.DefaultCellStyle.BackColor = FormThemes.BaseTheme.FormBackColor;
row.DefaultCellStyle.ForeColor = FormThemes.BaseTheme.FormForeColor;
}
} }
private void InitializeComponent() private void InitializeComponent()
@ -66,9 +62,7 @@ namespace Switch_Toolbox.Library.Forms
// //
this.BackgroundColor = Color.Gray; this.BackgroundColor = Color.Gray;
this.GridColor = Color.Black; this.GridColor = Color.Black;
this.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.STDataGridView_CellClick); this.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.STDataGridView_CellClick);
this.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.STDataGridView_CellContentClick);
this.CellPainting += new System.Windows.Forms.DataGridViewCellPaintingEventHandler(this.STDataGridView_CellPainting); this.CellPainting += new System.Windows.Forms.DataGridViewCellPaintingEventHandler(this.STDataGridView_CellPainting);
((System.ComponentModel.ISupportInitialize)(this)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);