Beispiel #1
0
        public WillWrightDiag(UIImage Img, UIScreen Screen, Vector2 Position) : base(Screen, Position, true, true, true)
        {
            m_WillWrightImg = Img;
            m_WillWrightImg.AddParent(this);
            CenterAround(m_WillWrightImg, /*-22*/ (Screen.Manager.Resolution.ScreenArea.X + (int)Size.X) / 2,
                         /*-42*/ (Screen.Manager.Resolution.ScreenArea.Y + (int)Size.Y) / 2);
            Image.SetSize(m_WillWrightImg.Texture.Width + 50, m_WillWrightImg.Texture.Height + 55);
            m_Font = m_Screen.Manager.Font9px; //Needs to be set for debug purposes.

            DrawOrder = (int)DrawOrderEnum.MessageBoxes;
        }