Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / ui / mapEditorCreateMark / attribute / NumberAttribute.cs
@小李xl 小李xl on 12 Aug 2023 583 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 SetAttributeLabel(string text)
    {
        NumberBar.L_AttrName.Instance.Text = text;
    }

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