Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / ui / mapEditorCreateMark / attribute / NumberAttribute.cs
@小李xl 小李xl on 22 Aug 2023 525 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 void OnDestroy()
    {
        
    }

    public override string GetAttributeValue()
    {
        return _numberBar.L_NumInput.Instance.Value.ToString(CultureInfo.InvariantCulture);
    }
}