Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / ui / mapEditorCreateMark / attribute / NumberAttribute.cs
@小李xl 小李xl on 20 Aug 2023 470 bytes 创建房间标记, 开发中
using System.Globalization;
using Godot;

namespace UI.MapEditorCreateMark;

public partial class NumberAttribute : AttributeBase
{
    private MapEditorCreateMark.NumberBar _numberBar;

    public override void SetUiNode(IUiNode uiNode)
    {
        _numberBar = (MapEditorCreateMark.NumberBar)uiNode;
    }
    
    public override string GetAttributeValue()
    {
        return _numberBar.L_NumInput.Instance.Value.ToString(CultureInfo.InvariantCulture);
    }
}