@@ -121,7 +121,7 @@ private class DialogContext {
121
121
/// is created and before it is displayed.</param>
122
122
public delegate void DisplayDelegate (
123
123
string title , string message , Option defaultOption ,
124
- string option0 , string option1 , string option2 ,
124
+ string option0 , string option1 = null , string option2 = null ,
125
125
float windowWidth = DEFAULT_WINDOWS_WIDTH , Option windowCloseOption = Option . SelectedNone ,
126
126
Action < Option > complete = null ,
127
127
Action < DialogWindow > renderContent = null ,
@@ -257,7 +257,7 @@ internal static void DisplayDefault(string title, string message, Option default
257
257
/// <param name="init">(Optional) Callback for additional initialization after the dialog
258
258
/// is created and before it is displayed.</param>
259
259
public static void Display ( string title , string message , Option defaultOption ,
260
- string option0 , string option1 , string option2 ,
260
+ string option0 , string option1 = null , string option2 = null ,
261
261
float windowWidth = DEFAULT_WINDOWS_WIDTH ,
262
262
Option windowCloseOption = Option . SelectedNone ,
263
263
Action < Option > complete = null , Action < DialogWindow > renderContent = null ,
@@ -266,60 +266,6 @@ public static void Display(string title, string message, Option defaultOption,
266
266
windowCloseOption , complete , renderContent , renderButtons , init ) ;
267
267
}
268
268
269
- /// <summary>
270
- /// Displays a non-blocking modal dialog with up to 2 options.
271
- /// </summary>
272
- /// <param name="title">Title of the dialog.</param>
273
- /// <param name="message">Message to display in the dialog.</param>
274
- /// <param name="defaultOption">Option selected if interactivity is disabled.</param>
275
- /// <param name="option0">Text for the first option.</param>
276
- /// <param name="option1">Text for the second option or null to disable.</param>
277
- /// <param name="windowWidth">(Optional) Width of the dialog window.</param>
278
- /// <param name="windowCloseOption">(Optional) Option selected if the dialog is closed.</param>
279
- /// <param name="complete">(Optional) Callback to trigger once a selection is made.</param>
280
- /// <param name="renderContent">(Optional) Callback to render additional content after
281
- /// dialog message.</param>
282
- /// <param name="renderButtons">(Optional) Callback to render additional content before option
283
- /// buttons in the same row.</param>
284
- /// <param name="init">(Optional) Callback for additional initialization after the dialog
285
- /// is created and before it is displayed.</param>
286
- public static void Display ( string title , string message , Option defaultOption ,
287
- string option0 , string option1 ,
288
- float windowWidth = DEFAULT_WINDOWS_WIDTH ,
289
- Option windowCloseOption = Option . SelectedNone ,
290
- Action < Option > complete = null , Action < DialogWindow > renderContent = null ,
291
- Action < DialogWindow > renderButtons = null , Action < DialogWindow > init = null ) {
292
- displayDialogMethod ( title , message , defaultOption , option0 , option1 , null , windowWidth ,
293
- windowCloseOption , complete , renderContent , renderButtons , init ) ;
294
- }
295
-
296
- /// <summary>
297
- /// Displays a non-blocking modal dialog with up to 1 options.
298
- /// </summary>
299
- /// <param name="title">Title of the dialog.</param>
300
- /// <param name="message">Message to display in the dialog.</param>
301
- /// <param name="defaultOption">Option selected if interactivity is disabled.</param>
302
- /// <param name="option0">Text for the first option.</param>
303
- /// <param name="option1">Text for the second option or null to disable.</param>
304
- /// <param name="windowWidth">(Optional) Width of the dialog window.</param>
305
- /// <param name="windowCloseOption">(Optional) Option selected if the dialog is closed.</param>
306
- /// <param name="complete">(Optional) Callback to trigger once a selection is made.</param>
307
- /// <param name="renderContent">(Optional) Callback to render additional content after
308
- /// dialog message.</param>
309
- /// <param name="renderButtons">(Optional) Callback to render additional content before option
310
- /// buttons in the same row.</param>
311
- /// <param name="init">(Optional) Callback for additional initialization after the dialog
312
- /// is created and before it is displayed.</param>
313
- public static void Display ( string title , string message , Option defaultOption ,
314
- string option0 ,
315
- float windowWidth = DEFAULT_WINDOWS_WIDTH ,
316
- Option windowCloseOption = Option . SelectedNone ,
317
- Action < Option > complete = null , Action < DialogWindow > renderContent = null ,
318
- Action < DialogWindow > renderButtons = null , Action < DialogWindow > init = null ) {
319
- displayDialogMethod ( title , message , defaultOption , option0 , null , null , windowWidth ,
320
- windowCloseOption , complete , renderContent , renderButtons , init ) ;
321
- }
322
-
323
269
/// <summary>
324
270
/// Render the dialog according to the context.
325
271
/// </summary>
0 commit comments