Skip to content

Commit

Permalink
Changed table seperators to seperate class so that in colum seperator…
Browse files Browse the repository at this point in the history
…s are possible
  • Loading branch information
thorwin99 committed Jan 14, 2022
1 parent 1215059 commit 88b064f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions SEWorldGenPlugin/GUI/Controls/MyGuiControlParentTableLayout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public bool AddTableRow(params MyGuiControlBase[] rowControls)
/// <returns></returns>
public void AddTableSeparator()
{
MyGuiControlSeparatorList sep = new MyGuiControlSeparatorList();
MyGuiTableSeperator sep = new MyGuiTableSeperator();
m_tableRows.Add(new MyGuiControlBase[] { sep });
m_tableHeight += MARGIN_ROWS;

Expand Down Expand Up @@ -232,9 +232,9 @@ public void RefreshInternals()
{
var control = row[i];

if(control != null && control is MyGuiControlSeparatorList)
if(control != null && control is MyGuiTableSeperator)
{
var sep = control as MyGuiControlSeparatorList;
var sep = control as MyGuiTableSeperator;
sep.Clear();
sep.AddHorizontal(currentRowTopLeft, Size.X - MARGIN_COLUMNS);
}
Expand All @@ -254,4 +254,8 @@ public void RefreshInternals()
}
}
}

internal class MyGuiTableSeperator : MyGuiControlSeparatorList
{
}
}

0 comments on commit 88b064f

Please sign in to comment.