private void CompileHueLayout(SuperGumpLayout layout, TitleHue hue) { layout.Add("label/body/hue/grantmessage", () => AddLabel(65, 110, 1457, "This scroll grants the title hue: ")); layout.Add("label/body/hue/granthue", () => AddLabel(110, 145, hue.Hue - 1, "##########")); layout.Add("image/body/hue/Hbar", () => AddImageTiled(100, 160, 120, 2, 2620)); layout.Add("label/body/hue/raritymessage", () => AddLabel(25, 185, 1457, "Hue Rarity: ")); layout.Add("label/body/hue/rarity", () => AddLabel(105, 185, hue.GetRarityHue(), hue.Rarity.ToString())); layout.Add("label/body/hue/owned", () => AddLabel(25, 205, 1457, "People who have this hue: ")); layout.Add("label/body/hue/ownednumber", () => AddLabel(193, 205, 1461, hue.GetOwnerCount().ToString("#,0"))); }
public override void OnSingleClick(Mobile m) { if (TitleHue == null) { base.OnSingleClick(m); return; } LabelToExpansion(m); LabelTo(m, this.ResolveName(m), TitleHue.GetRarityHue()); LabelTo(m, TitleHue.Hue, 1049644, "Hue: " + TitleHue.Hue); if (BoundToMobile != null) { LabelTo(m, "Bound to: " + BoundToMobile.Name, TitleHue.GetRarityHue()); } }
private void CompileHueLayout(SuperGumpLayout layout, TitleHue hue) { layout.Add("label/body/hue/grantmessage", () => AddLabel(65, 110, 1457, "This scroll grants the title hue: ")); layout.Add("label/body/hue/granthue", () => AddLabel(110, 145, hue.Hue-1, "##########")); layout.Add("image/body/hue/Hbar", () => AddImageTiled(100, 160, 120, 2, 2620)); layout.Add("label/body/hue/raritymessage", () => AddLabel(25, 185, 1457, "Hue Rarity: ")); layout.Add("label/body/hue/rarity", () => AddLabel(105, 185, hue.GetRarityHue(), hue.Rarity.ToString())); layout.Add("label/body/hue/owned", () => AddLabel(25, 205, 1457, "People who have this hue: ")); layout.Add("label/body/hue/ownednumber", () => AddLabel(193, 205, 1461, hue.GetOwnerCount().ToString("#,0"))); }