Beispiel #1
0
        protected override void CompileOptions(MenuGumpOptions list)
        {
            base.CompileOptions(list);

            list.PrependEntry(
                new ListGumpEntry(
                    "Delete",
                    button =>
            {
                if (UseConfirmDialog)
                {
                    Send(
                        new ConfirmDialogGump(
                            User,
                            Refresh(),
                            title: "Delete Time?",
                            html:
                            "All data associated with this time will be deleted.\nThis action can not be reversed!\nDo you want to continue?",
                            onAccept: OnConfirmDelete));
                }
                else
                {
                    OnConfirmDelete(button);
                }
            },
                    HighlightHue));
        }
		protected override void CompileOptions(MenuGumpOptions list)
		{
			base.CompileOptions(list);

			list.PrependEntry(
				new ListGumpEntry(
					"Delete",
					button =>
					{
						if (UseConfirmDialog)
						{
							Send(
								new ConfirmDialogGump(
									User,
									Refresh(),
									title: "Delete Time?",
									html:
										"All data associated with this time will be deleted.\nThis action can not be reversed!\nDo you want to continue?",
									onAccept: OnConfirmDelete));
						}
						else
						{
							OnConfirmDelete(button);
						}
					},
					HighlightHue));
		}
Beispiel #3
0
        protected override void CompileOptions(MenuGumpOptions list)
        {
            base.CompileOptions(list);

            list.PrependEntry(
                "Delete",
                button =>
            {
                if (UseConfirmDialog)
                {
                    new ConfirmDialogGump(User, Refresh())
                    {
                        Title = "Delete Time?",
                        Html  = "All data associated with this time will be deleted.\n" +
                                "This action can not be reversed!\nDo you want to continue?",
                        AcceptHandler = OnConfirmDelete
                    }.Send();
                }
                else
                {
                    OnConfirmDelete(button);
                }
            },
                HighlightHue);
        }