Ejemplo n.º 1
0
        protected override void UpdateContents(GameTime CurrTime, KeyboardState CurrKeyboard, MouseState CurrMouse, bool ProcessMouseEvent)
        {
            int OptionTop = 0;

            if (Visible == true)
            {
                OptionTop += 0;
            }

            if (ProcessMouseEvent == false)
            {
                ProcessMouseEvent = false;
            }

            cCardsFrame.Update(CurrTime, CurrKeyboard, CurrMouse, ProcessMouseEvent);

            foreach (Button DeckOption in cDeckChoiceCtrlList.Values)
            {
                DeckOption.Top = OptionTop;
                DeckOption.Update(CurrTime, CurrKeyboard, CurrMouse, ProcessMouseEvent);

                OptionTop += ClientRegion.Height / DECKOPTIONS_PERPAGE;
            }

            HasChanged = true;             //Hack fix for the deck option selection, forces full redraw every frame
        }
Ejemplo n.º 2
0
        protected override void DrawContents(GameTime CurrTime)
        {
            cCardsFrame.Draw();

            foreach (Button DeckOption in cDeckChoiceCtrlList.Values)
            {
                DeckOption.Draw(cDrawBatch);
            }
        }