Ejemplo n.º 1
0
        private ScreenLayout(bool isLoading)
        {
            this.m_Gumps = new GumpLayoutCollection();
            if (isLoading)
            {
                return;
            }
            Rectangle workingArea = Screen.FromControl((Control)Engine.m_Display).WorkingArea;
            Size      size1       = new Size(800, 600);
            Size      size2       = new Size(1024, 768);

            this.m_GameBounds   = new Rectangle((size2.Width - size1.Width) / 2, (size2.Height - size1.Height) / 2, size1.Width, size1.Height);
            this.m_ScreenBounds = new Rectangle(workingArea.X + (workingArea.Width - size2.Width) / 2, workingArea.Y + (workingArea.Height - size2.Height) / 2, size2.Width, size2.Height);
            this.m_Maximized    = false;
            this.m_FullSize     = size2;
            this.m_Fullscreen   = false;
        }
Ejemplo n.º 2
0
 internal GumpLayoutCollectionEnumerator(GumpLayoutCollection collection)
 {
     this._index      = -1;
     this._collection = collection;
 }