예제 #1
0
        protected override void CompileLayout(SuperGumpLayout layout)
        {
            base.CompileLayout(layout);

            layout.Add(
                "button/header/war",
                () => AddButton(
                    85,
                    15,
                    2026,
                    2025,
                    b =>
            {
                PvPProfileListGump plg = Parent as PvPProfileListGump;

                if (plg == null)
                {
                    Send(new PvPProfileListGump(User, null, Hide(true), UseConfirmDialog));
                }
                else
                {
                    plg.Refresh(true);
                }
            }));

            layout.AddReplace(
                "label/header/title",
                () => AddLabelCropped(160, 15, 215, 20, GetTitleHue(), String.IsNullOrWhiteSpace(Title) ? DefaultTitle : Title));
        }
예제 #2
0
 public PvPProfileListSortGump(
     PlayerMobile user, PvPProfileListGump listGump, Gump parent = null, GumpButton clicked = null)
     : base(user, parent, clicked: clicked)
 {
     ListGump = listGump;
 }