void MakeTableWidget() { int tableHeight = Math.Max( game.Height - tableY - 50, 1 ); LauncherTableWidget widget; if( widgets[tableIndex] != null ) { widget = (LauncherTableWidget)widgets[tableIndex]; } else { widget = new LauncherTableWidget( game ); widget.SetEntries( game.Session.Servers ); widget.SetDrawData( drawer, tableFont, inputFont, Anchor.LeftOrTop, Anchor.LeftOrTop, tableX, tableY ); widget.SortDefault(); widgets[widgetIndex] = widget; } widget.Height = tableHeight; widgetIndex++; }
public void Init(LauncherWindow window, LauncherTableWidget table) { this.window = window; this.table = table; }
public void Init( LauncherWindow window, LauncherTableWidget table ) { this.window = window; this.table = table; }