Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / ui / tileSetEditorProject / TileButtonCell.cs
@小李xl 小李xl on 15 Dec 2023 522 bytes 鼠标右键选择图块功能, 开发中
  1.  
  2. using UI.TileSetEditor;
  3.  
  4. namespace UI.TileSetEditorProject;
  5.  
  6. public class TileButtonCell : UiCell<TileSetEditorProject.TileButton, TileSetInfo>
  7. {
  8. public override void OnSetData(TileSetInfo data)
  9. {
  10. CellNode.L_TileName.Instance.Text = data.Name;
  11. }
  12.  
  13. public override void OnDoubleClick()
  14. {
  15. //打开TileSet编辑器面板
  16. var tileSetEditorPanel = CellNode.UiPanel.OpenNextUi<TileSetEditorPanel>(UiManager.UiNames.TileSetEditor);
  17. tileSetEditorPanel.InitData(Data);
  18. }
  19. }