Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / ui / tileSetEditorTerrain / down / MaskCell.cs
@小李xl 小李xl on 5 Jan 2024 511 bytes 继续开发TileSet地形编辑器
using Godot;

namespace UI.TileSetEditorTerrain;

public class MaskCell : UiCell<TileSetEditorTerrain.BottomCell, Rect2I>
{
    public override void OnInit()
    {
        CellNode.Instance.Init(this);
    }

    public override void OnSetData(Rect2I data)
    {
        CellNode.Instance.SetRect(data);
    }
    
    public override void OnSelect()
    {
        CellNode.Instance.DragOutline = true;
    }

    public override void OnUnSelect()
    {
        CellNode.Instance.DragOutline = false;
    }
}