Re: Re: """апгрейд""" QuickDialogSystem (#150)

* Removed Herobrine

* Added Herobrine
This commit is contained in:
RedFoxIV
2024-02-29 23:16:53 +03:00
committed by GitHub
parent 8761ce249d
commit 9b4af878b5
4 changed files with 108 additions and 21 deletions

View File

@@ -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;
}
}