C# Class OpenRA.Mods.Common.Widgets.ConfirmationDialogs

显示文件 Open project: pchote/OpenRA

Public Methods

Method Description
ButtonPrompt ( string title, string text, System.Action onConfirm = null, System.Action onCancel = null, System.Action onOther = null, string confirmText = null, string cancelText = null, string otherText = null ) : void
TextInputPrompt ( string title, string prompt, string initialText, Action onAccept, System.Action onCancel = null, string acceptText = null, string cancelText = null, bool>.Func inputValidator = null ) : void

Method Details

ButtonPrompt() public static method

public static ButtonPrompt ( string title, string text, System.Action onConfirm = null, System.Action onCancel = null, System.Action onOther = null, string confirmText = null, string cancelText = null, string otherText = null ) : void
title string
text string
onConfirm System.Action
onCancel System.Action
onOther System.Action
confirmText string
cancelText string
otherText string
return void

TextInputPrompt() public static method

public static TextInputPrompt ( string title, string prompt, string initialText, Action onAccept, System.Action onCancel = null, string acceptText = null, string cancelText = null, bool>.Func inputValidator = null ) : void
title string
prompt string
initialText string
onAccept Action
onCancel System.Action
acceptText string
cancelText string
inputValidator bool>.Func
return void