Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / ui / tileSetEditorTerrain / left / MaskCell.cs
@小李xl 小李xl on 23 Dec 2023 509 bytes 编辑TileSet地形, 制作中
  1. using Godot;
  2.  
  3. namespace UI.TileSetEditorTerrain;
  4.  
  5. public class MaskCell : UiCell<TileSetEditorTerrain.LeftCell, Rect2I>
  6. {
  7. public override void OnInit()
  8. {
  9. CellNode.Instance.Init(this);
  10. }
  11.  
  12. public override void OnSetData(Rect2I data)
  13. {
  14. CellNode.Instance.SetRect(data);
  15. }
  16. public override void OnSelect()
  17. {
  18. CellNode.Instance.DragOutline = true;
  19. }
  20.  
  21. public override void OnUnSelect()
  22. {
  23. CellNode.Instance.DragOutline = false;
  24. }
  25. }