Example #1
0
        private void CompileTitleLayout(SuperGumpLayout layout, Title title)
        {
            layout.Add("label/body/title/grantmessage", () => AddLabel(70, 110, 1457, "This scroll grants the title: "));
            layout.Add("label/body/title/grant", () => AddLabel(110, 145, 1461, title.ToString(User.Female)));

            layout.Add("image/body/title/Hbar", () => AddImageTiled(100, 160, 120, 2, 2620));

            layout.Add("label/body/title/raritymessage", () => AddLabel(25, 185, 1457, "Title Rarity: "));
            layout.Add("label/body/title/rarity", () => AddLabel(105, 185, title.GetRarityHue(), title.Rarity.ToString()));

            layout.Add("label/body/title/owned", () => AddLabel(25, 205, 1457, "People who have this title: "));
            layout.Add("label/body/title/ownednumber", () => AddLabel(193, 205, 1461, title.GetOwnerCount().ToString("#,0")));
        }
Example #2
0
        public override void OnSingleClick(Mobile m)
        {
            if (Title == null)
            {
                base.OnSingleClick(m);
                return;
            }

            LabelToExpansion(m);

            LabelTo(m, this.ResolveName(m), Title.GetRarityHue());
            LabelTo(m, Title.GetRarityHue(), 1049644, "Title: " + Title.ToString(m.Female));

            if (BoundToMobile != null)
            {
                LabelTo(m, "Bound to: " + BoundToMobile.Name, Title.GetRarityHue());
            }
        }
Example #3
0
		private void CompileTitleLayout(SuperGumpLayout layout, Title title)
		{
			layout.Add("label/body/title/grantmessage", () => AddLabel(70, 110, 1457, "This scroll grants the title: "));
			layout.Add("label/body/title/grant", () => AddLabel(110, 145, 1461, title.ToString(User.Female)));

			layout.Add("image/body/title/Hbar", () => AddImageTiled(100, 160, 120, 2, 2620));

			layout.Add("label/body/title/raritymessage", () => AddLabel(25, 185, 1457, "Title Rarity: "));
			layout.Add("label/body/title/rarity", () => AddLabel(105, 185, title.GetRarityHue(), title.Rarity.ToString()));

			layout.Add("label/body/title/owned", () => AddLabel(25, 205, 1457, "People who have this title: "));
			layout.Add("label/body/title/ownednumber", () => AddLabel(193, 205, 1461, title.GetOwnerCount().ToString("#,0")));
		}