mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Add support for strings and BoolX in script engine, show strings as textfields in editor
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace GlitchyEngine.Editor;
|
||||
|
||||
public sealed class TextFieldAttribute : Attribute
|
||||
{
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> the string field will be shown in a multiline text box.
|
||||
/// </summary>
|
||||
public bool Multiline { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The number of lines that the text field has. Only applies if <see cref="Multiline"/> is set to <see langword="true"/>.
|
||||
/// It does not affect how many lines of text can be stored in the field. Only how many lines the text field itself has.
|
||||
/// </summary>
|
||||
public int TextFieldLines { get; set; } = 3;
|
||||
}
|
||||
Reference in New Issue
Block a user