Exemplo n.º 1
0
        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;
 }
Exemplo n.º 3
0
 public void Init( LauncherWindow window, LauncherTableWidget table )
 {
     this.window = window;
     this.table = table;
 }