Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / ui / tileSetEditorTerrain / TerrainTabCell.cs
  1. namespace UI.TileSetEditorTerrain;
  2.  
  3. public class TerrainTabCell : UiCell<TileSetEditorTerrain.TerrainTab, TileSetTerrainInfo>
  4. {
  5. public override void OnInit()
  6. {
  7. CellNode.L_SelectTexture.Instance.Visible = false;
  8. }
  9.  
  10. public override void OnSetData(TileSetTerrainInfo data)
  11. {
  12. RefreshData();
  13. }
  14.  
  15. /// <summary>
  16. /// 刷新数据
  17. /// </summary>
  18. public void RefreshData()
  19. {
  20. CellNode.Instance.Text = Data.Name;
  21. }
  22.  
  23. public override void OnSelect()
  24. {
  25. CellNode.L_SelectTexture.Instance.Visible = true;
  26. }
  27.  
  28. public override void OnUnSelect()
  29. {
  30. CellNode.L_SelectTexture.Instance.Visible = false;
  31. }
  32. }