Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / ui / tileSetEditorTerrain / left / MaskCell.cs
@小李xl 小李xl on 23 Dec 2023 509 bytes 编辑TileSet地形, 制作中
using Godot;

namespace UI.TileSetEditorTerrain;

public class MaskCell : UiCell<TileSetEditorTerrain.LeftCell, 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;
    }
}