Re: Re: """апгрейд""" QuickDialogSystem (#150)
* Removed Herobrine * Added Herobrine
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Robust.Shared.Serialization;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Content.Shared.Administration;
|
||||
|
||||
@@ -87,17 +88,22 @@ public sealed class QuickDialogEntry
|
||||
/// </summary>
|
||||
public string Prompt;
|
||||
|
||||
/// <summary>
|
||||
/// Default value in the window.
|
||||
/// </summary>
|
||||
public object? Value;
|
||||
/// <summary>
|
||||
/// String to replace the type-specific placeholder with.
|
||||
/// </summary>
|
||||
public string? Placeholder;
|
||||
|
||||
public QuickDialogEntry(string fieldId, QuickDialogEntryType type, string prompt, string? placeholder = null)
|
||||
public QuickDialogEntry(string fieldId, QuickDialogEntryType type, string prompt, string? placeholder = null, object? defaultValue = null)
|
||||
{
|
||||
FieldId = fieldId;
|
||||
Type = type;
|
||||
Prompt = prompt;
|
||||
Placeholder = placeholder;
|
||||
Value = defaultValue;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user