Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / ui / mapEditorTools / MapEditorTools.cs
@小李xl 小李xl on 24 Jul 2023 10 KB 编辑门区域, 开发中
  1. namespace UI.MapEditorTools;
  2.  
  3. /// <summary>
  4. /// Ui代码, 该类是根据ui场景自动生成的, 请不要手动编辑该类, 以免造成代码丢失
  5. /// </summary>
  6. public abstract partial class MapEditorTools : UiBase
  7. {
  8. /// <summary>
  9. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.HBoxContainer"/>, 节点路径: MapEditorTools.HBoxContainer
  10. /// </summary>
  11. public HBoxContainer L_HBoxContainer
  12. {
  13. get
  14. {
  15. if (_L_HBoxContainer == null) _L_HBoxContainer = new HBoxContainer(this, GetNodeOrNull<Godot.HBoxContainer>("HBoxContainer"));
  16. return _L_HBoxContainer;
  17. }
  18. }
  19. private HBoxContainer _L_HBoxContainer;
  20.  
  21. /// <summary>
  22. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="UI.MapEditorTools.DoorDragArea"/>, 节点路径: MapEditorTools.DoorToolTemplate
  23. /// </summary>
  24. public DoorToolTemplate L_DoorToolTemplate
  25. {
  26. get
  27. {
  28. if (_L_DoorToolTemplate == null) _L_DoorToolTemplate = new DoorToolTemplate(this, GetNodeOrNull<UI.MapEditorTools.DoorDragArea>("DoorToolTemplate"));
  29. return _L_DoorToolTemplate;
  30. }
  31. }
  32. private DoorToolTemplate _L_DoorToolTemplate;
  33.  
  34.  
  35. public MapEditorTools() : base(nameof(MapEditorTools))
  36. {
  37. }
  38.  
  39. public sealed override void OnInitNestedUi()
  40. {
  41. }
  42.  
  43. /// <summary>
  44. /// 类型: <see cref="Godot.TextureButton"/>, 路径: MapEditorTools.HBoxContainer.HandTool
  45. /// </summary>
  46. public class HandTool : UiNode<MapEditorTools, Godot.TextureButton, HandTool>
  47. {
  48. public HandTool(MapEditorTools uiPanel, Godot.TextureButton node) : base(uiPanel, node) { }
  49. public override HandTool Clone() => new (UiPanel, (Godot.TextureButton)Instance.Duplicate());
  50. }
  51.  
  52. /// <summary>
  53. /// 类型: <see cref="Godot.TextureButton"/>, 路径: MapEditorTools.HBoxContainer.PenTool
  54. /// </summary>
  55. public class PenTool : UiNode<MapEditorTools, Godot.TextureButton, PenTool>
  56. {
  57. public PenTool(MapEditorTools uiPanel, Godot.TextureButton node) : base(uiPanel, node) { }
  58. public override PenTool Clone() => new (UiPanel, (Godot.TextureButton)Instance.Duplicate());
  59. }
  60.  
  61. /// <summary>
  62. /// 类型: <see cref="Godot.TextureButton"/>, 路径: MapEditorTools.HBoxContainer.RectTool
  63. /// </summary>
  64. public class RectTool : UiNode<MapEditorTools, Godot.TextureButton, RectTool>
  65. {
  66. public RectTool(MapEditorTools uiPanel, Godot.TextureButton node) : base(uiPanel, node) { }
  67. public override RectTool Clone() => new (UiPanel, (Godot.TextureButton)Instance.Duplicate());
  68. }
  69.  
  70. /// <summary>
  71. /// 类型: <see cref="Godot.TextureButton"/>, 路径: MapEditorTools.HBoxContainer.CenterTool
  72. /// </summary>
  73. public class CenterTool : UiNode<MapEditorTools, Godot.TextureButton, CenterTool>
  74. {
  75. public CenterTool(MapEditorTools uiPanel, Godot.TextureButton node) : base(uiPanel, node) { }
  76. public override CenterTool Clone() => new (UiPanel, (Godot.TextureButton)Instance.Duplicate());
  77. }
  78.  
  79. /// <summary>
  80. /// 类型: <see cref="Godot.HBoxContainer"/>, 路径: MapEditorTools.HBoxContainer
  81. /// </summary>
  82. public class HBoxContainer : UiNode<MapEditorTools, Godot.HBoxContainer, HBoxContainer>
  83. {
  84. /// <summary>
  85. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.TextureButton"/>, 节点路径: MapEditorTools.HandTool
  86. /// </summary>
  87. public HandTool L_HandTool
  88. {
  89. get
  90. {
  91. if (_L_HandTool == null) _L_HandTool = new HandTool(UiPanel, Instance.GetNodeOrNull<Godot.TextureButton>("HandTool"));
  92. return _L_HandTool;
  93. }
  94. }
  95. private HandTool _L_HandTool;
  96.  
  97. /// <summary>
  98. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.TextureButton"/>, 节点路径: MapEditorTools.PenTool
  99. /// </summary>
  100. public PenTool L_PenTool
  101. {
  102. get
  103. {
  104. if (_L_PenTool == null) _L_PenTool = new PenTool(UiPanel, Instance.GetNodeOrNull<Godot.TextureButton>("PenTool"));
  105. return _L_PenTool;
  106. }
  107. }
  108. private PenTool _L_PenTool;
  109.  
  110. /// <summary>
  111. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.TextureButton"/>, 节点路径: MapEditorTools.RectTool
  112. /// </summary>
  113. public RectTool L_RectTool
  114. {
  115. get
  116. {
  117. if (_L_RectTool == null) _L_RectTool = new RectTool(UiPanel, Instance.GetNodeOrNull<Godot.TextureButton>("RectTool"));
  118. return _L_RectTool;
  119. }
  120. }
  121. private RectTool _L_RectTool;
  122.  
  123. /// <summary>
  124. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.TextureButton"/>, 节点路径: MapEditorTools.CenterTool
  125. /// </summary>
  126. public CenterTool L_CenterTool
  127. {
  128. get
  129. {
  130. if (_L_CenterTool == null) _L_CenterTool = new CenterTool(UiPanel, Instance.GetNodeOrNull<Godot.TextureButton>("CenterTool"));
  131. return _L_CenterTool;
  132. }
  133. }
  134. private CenterTool _L_CenterTool;
  135.  
  136. public HBoxContainer(MapEditorTools uiPanel, Godot.HBoxContainer node) : base(uiPanel, node) { }
  137. public override HBoxContainer Clone() => new (UiPanel, (Godot.HBoxContainer)Instance.Duplicate());
  138. }
  139.  
  140. /// <summary>
  141. /// 类型: <see cref="Godot.ColorRect"/>, 路径: MapEditorTools.DoorToolTemplate.DoorArea
  142. /// </summary>
  143. public class DoorArea : UiNode<MapEditorTools, Godot.ColorRect, DoorArea>
  144. {
  145. public DoorArea(MapEditorTools uiPanel, Godot.ColorRect node) : base(uiPanel, node) { }
  146. public override DoorArea Clone() => new (UiPanel, (Godot.ColorRect)Instance.Duplicate());
  147. }
  148.  
  149. /// <summary>
  150. /// 类型: <see cref="UI.MapEditorTools.DoorDragButton"/>, 路径: MapEditorTools.DoorToolTemplate.StartBtn
  151. /// </summary>
  152. public class StartBtn : UiNode<MapEditorTools, UI.MapEditorTools.DoorDragButton, StartBtn>
  153. {
  154. public StartBtn(MapEditorTools uiPanel, UI.MapEditorTools.DoorDragButton node) : base(uiPanel, node) { }
  155. public override StartBtn Clone() => new (UiPanel, (UI.MapEditorTools.DoorDragButton)Instance.Duplicate());
  156. }
  157.  
  158. /// <summary>
  159. /// 类型: <see cref="UI.MapEditorTools.DoorDragButton"/>, 路径: MapEditorTools.DoorToolTemplate.EndBtn
  160. /// </summary>
  161. public class EndBtn : UiNode<MapEditorTools, UI.MapEditorTools.DoorDragButton, EndBtn>
  162. {
  163. public EndBtn(MapEditorTools uiPanel, UI.MapEditorTools.DoorDragButton node) : base(uiPanel, node) { }
  164. public override EndBtn Clone() => new (UiPanel, (UI.MapEditorTools.DoorDragButton)Instance.Duplicate());
  165. }
  166.  
  167. /// <summary>
  168. /// 类型: <see cref="UI.MapEditorTools.DoorDragArea"/>, 路径: MapEditorTools.DoorToolTemplate
  169. /// </summary>
  170. public class DoorToolTemplate : UiNode<MapEditorTools, UI.MapEditorTools.DoorDragArea, DoorToolTemplate>
  171. {
  172. /// <summary>
  173. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.ColorRect"/>, 节点路径: MapEditorTools.DoorArea
  174. /// </summary>
  175. public DoorArea L_DoorArea
  176. {
  177. get
  178. {
  179. if (_L_DoorArea == null) _L_DoorArea = new DoorArea(UiPanel, Instance.GetNodeOrNull<Godot.ColorRect>("DoorArea"));
  180. return _L_DoorArea;
  181. }
  182. }
  183. private DoorArea _L_DoorArea;
  184.  
  185. /// <summary>
  186. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="UI.MapEditorTools.DoorDragButton"/>, 节点路径: MapEditorTools.StartBtn
  187. /// </summary>
  188. public StartBtn L_StartBtn
  189. {
  190. get
  191. {
  192. if (_L_StartBtn == null) _L_StartBtn = new StartBtn(UiPanel, Instance.GetNodeOrNull<UI.MapEditorTools.DoorDragButton>("StartBtn"));
  193. return _L_StartBtn;
  194. }
  195. }
  196. private StartBtn _L_StartBtn;
  197.  
  198. /// <summary>
  199. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="UI.MapEditorTools.DoorDragButton"/>, 节点路径: MapEditorTools.EndBtn
  200. /// </summary>
  201. public EndBtn L_EndBtn
  202. {
  203. get
  204. {
  205. if (_L_EndBtn == null) _L_EndBtn = new EndBtn(UiPanel, Instance.GetNodeOrNull<UI.MapEditorTools.DoorDragButton>("EndBtn"));
  206. return _L_EndBtn;
  207. }
  208. }
  209. private EndBtn _L_EndBtn;
  210.  
  211. public DoorToolTemplate(MapEditorTools uiPanel, UI.MapEditorTools.DoorDragArea node) : base(uiPanel, node) { }
  212. public override DoorToolTemplate Clone() => new (UiPanel, (UI.MapEditorTools.DoorDragArea)Instance.Duplicate());
  213. }
  214.  
  215.  
  216. /// <summary>
  217. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.TextureButton"/>, 节点路径: MapEditorTools.HBoxContainer.HandTool
  218. /// </summary>
  219. public HandTool S_HandTool => L_HBoxContainer.L_HandTool;
  220.  
  221. /// <summary>
  222. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.TextureButton"/>, 节点路径: MapEditorTools.HBoxContainer.PenTool
  223. /// </summary>
  224. public PenTool S_PenTool => L_HBoxContainer.L_PenTool;
  225.  
  226. /// <summary>
  227. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.TextureButton"/>, 节点路径: MapEditorTools.HBoxContainer.RectTool
  228. /// </summary>
  229. public RectTool S_RectTool => L_HBoxContainer.L_RectTool;
  230.  
  231. /// <summary>
  232. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.TextureButton"/>, 节点路径: MapEditorTools.HBoxContainer.CenterTool
  233. /// </summary>
  234. public CenterTool S_CenterTool => L_HBoxContainer.L_CenterTool;
  235.  
  236. /// <summary>
  237. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.HBoxContainer"/>, 节点路径: MapEditorTools.HBoxContainer
  238. /// </summary>
  239. public HBoxContainer S_HBoxContainer => L_HBoxContainer;
  240.  
  241. /// <summary>
  242. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.ColorRect"/>, 节点路径: MapEditorTools.DoorToolTemplate.DoorArea
  243. /// </summary>
  244. public DoorArea S_DoorArea => L_DoorToolTemplate.L_DoorArea;
  245.  
  246. /// <summary>
  247. /// 场景中唯一名称的节点, 节点类型: <see cref="UI.MapEditorTools.DoorDragButton"/>, 节点路径: MapEditorTools.DoorToolTemplate.StartBtn
  248. /// </summary>
  249. public StartBtn S_StartBtn => L_DoorToolTemplate.L_StartBtn;
  250.  
  251. /// <summary>
  252. /// 场景中唯一名称的节点, 节点类型: <see cref="UI.MapEditorTools.DoorDragButton"/>, 节点路径: MapEditorTools.DoorToolTemplate.EndBtn
  253. /// </summary>
  254. public EndBtn S_EndBtn => L_DoorToolTemplate.L_EndBtn;
  255.  
  256. /// <summary>
  257. /// 场景中唯一名称的节点, 节点类型: <see cref="UI.MapEditorTools.DoorDragArea"/>, 节点路径: MapEditorTools.DoorToolTemplate
  258. /// </summary>
  259. public DoorToolTemplate S_DoorToolTemplate => L_DoorToolTemplate;
  260.  
  261. }