Skip to content

Commit

Permalink
alpha 2
Browse files Browse the repository at this point in the history
  • Loading branch information
atenfyr committed Sep 28, 2021
1 parent 1f388a3 commit 9a7cc3a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.0.0.2")]
[assembly: AssemblyFileVersion("1.0.0.2")]
20 changes: 18 additions & 2 deletions TableHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -402,21 +402,37 @@ private void AddRowsForArray(PropertyData[] arr)
var colorData = (LinearColorPropertyData)thisPD;
row.Cells[2].Value = string.Empty;
row.Cells[2].ReadOnly = true;
row.Cells[2].Style.BackColor = ARGBtoRGB(LinearHelpers.Convert(colorData.Value));
if (colorData.RawValue != null)
{
row.Cells[2].Style.BackColor = ARGBtoRGB(LinearHelpers.Convert(colorData.Value));
row.Cells[2].ToolTipText = "Preview";
}
row.Cells[3].Value = colorData.Value.R;
row.Cells[3].ToolTipText = "Red";
row.Cells[4].Value = colorData.Value.G;
row.Cells[4].ToolTipText = "Green";
row.Cells[5].Value = colorData.Value.B;
row.Cells[5].ToolTipText = "Blue";
row.Cells[6].Value = colorData.Value.A;
row.Cells[6].ToolTipText = "Alpha";
break;
case "Color":
var colorData2 = (ColorPropertyData)thisPD;
row.Cells[2].Value = string.Empty;
row.Cells[2].ReadOnly = true;
if (colorData2.RawValue != null) row.Cells[2].Style.BackColor = colorData2.Value;
if (colorData2.RawValue != null)
{
row.Cells[2].Style.BackColor = colorData2.Value;
row.Cells[2].ToolTipText = "Preview";
}
row.Cells[3].Value = colorData2.Value.R;
row.Cells[3].ToolTipText = "Red";
row.Cells[4].Value = colorData2.Value.G;
row.Cells[4].ToolTipText = "Green";
row.Cells[5].Value = colorData2.Value.B;
row.Cells[5].ToolTipText = "Blue";
row.Cells[6].Value = colorData2.Value.A;
row.Cells[6].ToolTipText = "Alpha";
break;
case "Vector":
var vectorData = (VectorPropertyData)thisPD;
Expand Down

0 comments on commit 9a7cc3a

Please sign in to comment.