Esempio n. 1
0
File: HUD.cs Progetto: nemec/4Realms
        internal void LoadCommon(IHUDTheme Theme = null)
        {
            if (Theme != null)
            {
                theme = Theme;
            }

            Viewport v = This.Game.GraphicsDevice.Viewport;

            scroller     = new TextScroller("scroller", theme);
            scroller.Pos = new Vector2(FrostbyteLevel.BORDER_WIDTH / 2,
                                       v.Height - scroller.GetAnimation().Height);
            scroller.Static = true;

            fader        = new TextFader("fader", theme);
            fader.Pos    = new Vector2(v.Width - 10, v.Height - 10 - 30);
            fader.Anchor = Orientations.Up_Right;
            fader.Static = true;

            #region ItemBag
            items        = new ItemArea("Items", theme);
            items.Pos    = new Vector2(890, 10);
            items.Static = true;
            #endregion
        }
Esempio n. 2
0
File: HUD.cs Progetto: nemec/4Realms
        internal void LoadCommon(IHUDTheme Theme = null)
        {
            if (Theme != null)
            {
                theme = Theme;
            }

            Viewport v = This.Game.GraphicsDevice.Viewport;
            scroller = new TextScroller("scroller", theme);
            scroller.Pos = new Vector2(FrostbyteLevel.BORDER_WIDTH / 2,
                v.Height - scroller.GetAnimation().Height);
            scroller.Static = true;

            fader = new TextFader("fader", theme);
            fader.Pos = new Vector2(v.Width - 10, v.Height - 10 - 30);
            fader.Anchor = Orientations.Up_Right;
            fader.Static = true;

            #region ItemBag
            items = new ItemArea("Items", theme);
            items.Pos = new Vector2(890, 10);
            items.Static = true;
            #endregion
        }