Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / ui / mapEditorCreateMark / attribute / NumberAttribute.cs
@小李xl 小李xl on 22 Aug 2023 525 bytes 完成保存与未保存状态
  1. using System.Globalization;
  2. using Godot;
  3.  
  4. namespace UI.MapEditorCreateMark;
  5.  
  6. public partial class NumberAttribute : AttributeBase
  7. {
  8. private MapEditorCreateMark.NumberBar _numberBar;
  9.  
  10. public override void SetUiNode(IUiNode uiNode)
  11. {
  12. _numberBar = (MapEditorCreateMark.NumberBar)uiNode;
  13. }
  14.  
  15. public override void OnDestroy()
  16. {
  17. }
  18.  
  19. public override string GetAttributeValue()
  20. {
  21. return _numberBar.L_NumInput.Instance.Value.ToString(CultureInfo.InvariantCulture);
  22. }
  23. }