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.Rows.Clear();
int rowIndex = 0;
for (int frame = 0; frame < vis.FrameCount; frame++)
{
if (IsKeyed(vis, frame))
{
int rowIndex = 0;
if (frame != 0)
rowIndex = this.dataGridView1.Rows.Add();
rowIndex = this.dataGridView1.Rows.Add();
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++)
{

View File

@ -34,27 +34,23 @@ namespace Switch_Toolbox.Library.Forms
{
GridColor = FormThemes.BaseTheme.ConsoleEditorBackColor;
}
EnableHeadersVisualStyles = false;
GridViewCellStyle = new DataGridViewCellStyle()
{
BackColor = FormThemes.BaseTheme.FormBackColor,
ForeColor = FormThemes.BaseTheme.FormForeColor
};
Refresh();
}
public void ApplyStyles()
{
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)
row.DefaultCellStyle = GridViewCellStyle;
{
row.DefaultCellStyle.BackColor = FormThemes.BaseTheme.FormBackColor;
row.DefaultCellStyle.ForeColor = FormThemes.BaseTheme.FormForeColor;
}
}
private void InitializeComponent()
@ -66,9 +62,7 @@ namespace Switch_Toolbox.Library.Forms
//
this.BackgroundColor = Color.Gray;
this.GridColor = Color.Black;
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);
((System.ComponentModel.ISupportInitialize)(this)).EndInit();
this.ResumeLayout(false);