Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / ui / editorInput / EditorInputPanel.cs
@小李xl 小李xl on 5 Jan 2024 519 bytes TileSet编辑器编辑资源
using Godot;

namespace UI.EditorInput;

public partial class EditorInputPanel : EditorInput
{

    public override void OnCreateUi()
    {
        
    }

    public override void OnDestroyUi()
    {
        
    }
    
    public void Init(string labelText, string value = null)
    {
        S_Label.Instance.Text = labelText;
        if (value != null)
        {
            S_LineEdit.Instance.Text = value;
        }
    }

    public string GetValue()
    {
        return S_LineEdit.Instance.Text;
    }
    
}