Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / data / FormItemData.cs
  1.  
  2. using Godot;
  3.  
  4. public class FormItemData<T> where T : Control
  5. {
  6. /// <summary>
  7. /// 显示文本
  8. /// </summary>
  9. public string Label;
  10. /// <summary>
  11. /// 挂载的节点
  12. /// </summary>
  13. public T UiNode;
  14.  
  15. public FormItemData(string label, T uiNode)
  16. {
  17. Label = label;
  18. UiNode = uiNode;
  19. }
  20. }