Newer
Older
DungeonShooting / DungeonShooting_Godot / src / framework / ui / grid / IUiGrid.cs
@lijincheng lijincheng on 27 Sep 2023 729 bytes 更新UiGrid
  1. using Godot;
  2.  
  3. /// <summary>
  4. /// Ui网格组件基础接口, 无泛型
  5. /// </summary>
  6. public interface IUiGrid : IDestroy
  7. {
  8. /// <summary>
  9. /// 当前选中的 Cell 索引
  10. /// </summary>
  11. int SelectIndex { get; set; }
  12. /// <summary>
  13. /// 设置网格组件是否可见
  14. /// </summary>
  15. bool Visible { get; set; }
  16. /// <summary>
  17. /// 当前网格组件数据大小
  18. /// </summary>
  19. int Count { get; }
  20. /// <summary>
  21. /// Godot 原生网格组件
  22. /// </summary>
  23. GridContainer GridContainer { get; }
  24.  
  25. /// <summary>
  26. /// 触发 Cell 的点击事件
  27. /// </summary>
  28. /// <param name="index">cell的索引</param>
  29. void Click(int index);
  30. }