Ejemplo n.º 1
0
        void MarkPendingRedraw()
        {
            TableWidget table = (TableWidget)widgets[view.tableIndex];

            table.ClampIndex();
            table.RecalculateDrawData();
            pendingRedraw = true;
            game.Dirty    = true;
        }
Ejemplo n.º 2
0
        public override void DrawAll()
        {
            DrawBackground();
            TableWidget table = (TableWidget)widgets[tableIndex];

            if (table != null)
            {
                table.ClampIndex();
            }
            base.DrawAll();
        }
Ejemplo n.º 3
0
        internal void RedrawTable()
        {
            using (FastBitmap dst = game.LockBits())
                DrawTableBackground(dst);
            TableWidget table = (TableWidget)widgets[tableIndex];

            table.ClampIndex();

            int tableHeight = Math.Max(game.Height - tableY - 50, 1);

            table.Height = tableHeight;
            using (drawer) {
                drawer.SetBitmap(game.Framebuffer);
                table.RedrawData(drawer);
            }
        }