public OldEOPartyPanel(XNAPanel parent)
            : base(null, null, parent)
        {
            _setSize(parent.BackgroundImage.Width, parent.BackgroundImage.Height);

            m_removeTexture = ((EOGame)Game).GFXManager.TextureFromResource(GFXTypes.PostLoginUI, 43);
            m_buttons       = new List <XNAButton>();

            //will tint this different colors for health bar and fill a rectangle
            m_healthBar             = new Texture2D[4];
            m_healthBar[HP_OUTLINE] = Game.Content.Load <Texture2D>("Party\\hp-outline");
            m_healthBar[HP_RED]     = Game.Content.Load <Texture2D>("Party\\hp-red");
            m_healthBar[HP_YELLOW]  = Game.Content.Load <Texture2D>("Party\\hp-yellow");
            m_healthBar[HP_GREEN]   = Game.Content.Load <Texture2D>("Party\\hp-green");

            m_numMembers = new XNALabel(new Rectangle(455, 2, 27, 14), Constants.FontSize08pt5)
            {
                AutoSize  = false,
                ForeColor = ColorConstants.LightGrayText,
                TextAlign = LabelAlignment.MiddleRight
            };
            m_numMembers.SetParent(this);

            m_scrollBar = new OldScrollBar(this, new Vector2(467, 20), new Vector2(16, 97), ScrollBarColors.LightOnMed)
            {
                LinesToRender = 7,
                Visible       = true
            };
            m_scrollBar.SetParent(this);
            OldWorld.IgnoreDialogs(m_scrollBar);
        }
Beispiel #2
0
        private QuestDialog(PacketAPI api)
            : base(api)
        {
            DialogClosing += (o, e) =>
            {
                if (e.Result == XNADialogResult.OK)
                {
                    if (!m_api.RespondToQuestDialog(_stateInfo, DialogReply.Ok))
                    {
                        ((EOGame)Game).DoShowLostConnectionDialogAndReturnToMainMenu();
                    }
                }
                Instance = null;
            };

            _dialogNames = new Dictionary <short, string>();
            _links       = new Dictionary <short, string>();
            _pages       = new List <string>();

            _setBackgroundTexture(((EOGame)Game).GFXManager.TextureFromResource(GFXTypes.PostLoginUI, 67));

            caption = new XNALabel(new Rectangle(16, 16, 255, 18), Constants.FontSize08pt5)
            {
                AutoSize  = false,
                TextAlign = LabelAlignment.MiddleLeft,
                ForeColor = ColorConstants.LightGrayText
            };
            caption.SetParent(this);

            m_scrollBar.SetParent(null);
            m_scrollBar.Close();

            m_scrollBar = new OldScrollBar(this, new Vector2(252, 44), new Vector2(16, 99), ScrollBarColors.LightOnMed);
            m_scrollBar.SetParent(this);
            SmallItemStyleMaxItemDisplay = 6;
        }