Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / ui / main / Main.cs
@lijincheng lijincheng on 27 Sep 2023 9 KB 自适应分辨率
  1. namespace UI.Main;
  2.  
  3. /// <summary>
  4. /// Ui代码, 该类是根据ui场景自动生成的, 请不要手动编辑该类, 以免造成代码丢失
  5. /// </summary>
  6. public abstract partial class Main : UiBase
  7. {
  8. /// <summary>
  9. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.ColorRect"/>, 节点路径: Main.ColorRect
  10. /// </summary>
  11. public ColorRect L_ColorRect
  12. {
  13. get
  14. {
  15. if (_L_ColorRect == null) _L_ColorRect = new ColorRect((MainPanel)this, GetNode<Godot.ColorRect>("ColorRect"));
  16. return _L_ColorRect;
  17. }
  18. }
  19. private ColorRect _L_ColorRect;
  20.  
  21. /// <summary>
  22. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.VBoxContainer"/>, 节点路径: Main.VBoxContainer
  23. /// </summary>
  24. public VBoxContainer L_VBoxContainer
  25. {
  26. get
  27. {
  28. if (_L_VBoxContainer == null) _L_VBoxContainer = new VBoxContainer((MainPanel)this, GetNode<Godot.VBoxContainer>("VBoxContainer"));
  29. return _L_VBoxContainer;
  30. }
  31. }
  32. private VBoxContainer _L_VBoxContainer;
  33.  
  34. /// <summary>
  35. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Label"/>, 节点路径: Main.Version
  36. /// </summary>
  37. public Version L_Version
  38. {
  39. get
  40. {
  41. if (_L_Version == null) _L_Version = new Version((MainPanel)this, GetNode<Godot.Label>("Version"));
  42. return _L_Version;
  43. }
  44. }
  45. private Version _L_Version;
  46.  
  47.  
  48. public Main() : base(nameof(Main))
  49. {
  50. }
  51.  
  52. public sealed override void OnInitNestedUi()
  53. {
  54.  
  55. }
  56.  
  57. /// <summary>
  58. /// 类型: <see cref="Godot.ColorRect"/>, 路径: Main.ColorRect
  59. /// </summary>
  60. public class ColorRect : UiNode<MainPanel, Godot.ColorRect, ColorRect>
  61. {
  62. public ColorRect(MainPanel uiPanel, Godot.ColorRect node) : base(uiPanel, node) { }
  63. public override ColorRect Clone() => new (UiPanel, (Godot.ColorRect)Instance.Duplicate());
  64. }
  65.  
  66. /// <summary>
  67. /// 类型: <see cref="Godot.Label"/>, 路径: Main.VBoxContainer.Title
  68. /// </summary>
  69. public class Title : UiNode<MainPanel, Godot.Label, Title>
  70. {
  71. public Title(MainPanel uiPanel, Godot.Label node) : base(uiPanel, node) { }
  72. public override Title Clone() => new (UiPanel, (Godot.Label)Instance.Duplicate());
  73. }
  74.  
  75. /// <summary>
  76. /// 类型: <see cref="Godot.Button"/>, 路径: Main.VBoxContainer.ButtonList.Start
  77. /// </summary>
  78. public class Start : UiNode<MainPanel, Godot.Button, Start>
  79. {
  80. public Start(MainPanel uiPanel, Godot.Button node) : base(uiPanel, node) { }
  81. public override Start Clone() => new (UiPanel, (Godot.Button)Instance.Duplicate());
  82. }
  83.  
  84. /// <summary>
  85. /// 类型: <see cref="Godot.Button"/>, 路径: Main.VBoxContainer.ButtonList.Tools
  86. /// </summary>
  87. public class Tools : UiNode<MainPanel, Godot.Button, Tools>
  88. {
  89. public Tools(MainPanel uiPanel, Godot.Button node) : base(uiPanel, node) { }
  90. public override Tools Clone() => new (UiPanel, (Godot.Button)Instance.Duplicate());
  91. }
  92.  
  93. /// <summary>
  94. /// 类型: <see cref="Godot.Button"/>, 路径: Main.VBoxContainer.ButtonList.Setting
  95. /// </summary>
  96. public class Setting : UiNode<MainPanel, Godot.Button, Setting>
  97. {
  98. public Setting(MainPanel uiPanel, Godot.Button node) : base(uiPanel, node) { }
  99. public override Setting Clone() => new (UiPanel, (Godot.Button)Instance.Duplicate());
  100. }
  101.  
  102. /// <summary>
  103. /// 类型: <see cref="Godot.Button"/>, 路径: Main.VBoxContainer.ButtonList.Exit
  104. /// </summary>
  105. public class Exit : UiNode<MainPanel, Godot.Button, Exit>
  106. {
  107. public Exit(MainPanel uiPanel, Godot.Button node) : base(uiPanel, node) { }
  108. public override Exit Clone() => new (UiPanel, (Godot.Button)Instance.Duplicate());
  109. }
  110.  
  111. /// <summary>
  112. /// 类型: <see cref="Godot.VBoxContainer"/>, 路径: Main.VBoxContainer.ButtonList
  113. /// </summary>
  114. public class ButtonList : UiNode<MainPanel, Godot.VBoxContainer, ButtonList>
  115. {
  116. /// <summary>
  117. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Button"/>, 节点路径: Main.VBoxContainer.Start
  118. /// </summary>
  119. public Start L_Start
  120. {
  121. get
  122. {
  123. if (_L_Start == null) _L_Start = new Start(UiPanel, Instance.GetNode<Godot.Button>("Start"));
  124. return _L_Start;
  125. }
  126. }
  127. private Start _L_Start;
  128.  
  129. /// <summary>
  130. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Button"/>, 节点路径: Main.VBoxContainer.Tools
  131. /// </summary>
  132. public Tools L_Tools
  133. {
  134. get
  135. {
  136. if (_L_Tools == null) _L_Tools = new Tools(UiPanel, Instance.GetNode<Godot.Button>("Tools"));
  137. return _L_Tools;
  138. }
  139. }
  140. private Tools _L_Tools;
  141.  
  142. /// <summary>
  143. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Button"/>, 节点路径: Main.VBoxContainer.Setting
  144. /// </summary>
  145. public Setting L_Setting
  146. {
  147. get
  148. {
  149. if (_L_Setting == null) _L_Setting = new Setting(UiPanel, Instance.GetNode<Godot.Button>("Setting"));
  150. return _L_Setting;
  151. }
  152. }
  153. private Setting _L_Setting;
  154.  
  155. /// <summary>
  156. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Button"/>, 节点路径: Main.VBoxContainer.Exit
  157. /// </summary>
  158. public Exit L_Exit
  159. {
  160. get
  161. {
  162. if (_L_Exit == null) _L_Exit = new Exit(UiPanel, Instance.GetNode<Godot.Button>("Exit"));
  163. return _L_Exit;
  164. }
  165. }
  166. private Exit _L_Exit;
  167.  
  168. public ButtonList(MainPanel uiPanel, Godot.VBoxContainer node) : base(uiPanel, node) { }
  169. public override ButtonList Clone() => new (UiPanel, (Godot.VBoxContainer)Instance.Duplicate());
  170. }
  171.  
  172. /// <summary>
  173. /// 类型: <see cref="Godot.VBoxContainer"/>, 路径: Main.VBoxContainer
  174. /// </summary>
  175. public class VBoxContainer : UiNode<MainPanel, Godot.VBoxContainer, VBoxContainer>
  176. {
  177. /// <summary>
  178. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Label"/>, 节点路径: Main.Title
  179. /// </summary>
  180. public Title L_Title
  181. {
  182. get
  183. {
  184. if (_L_Title == null) _L_Title = new Title(UiPanel, Instance.GetNode<Godot.Label>("Title"));
  185. return _L_Title;
  186. }
  187. }
  188. private Title _L_Title;
  189.  
  190. /// <summary>
  191. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.VBoxContainer"/>, 节点路径: Main.ButtonList
  192. /// </summary>
  193. public ButtonList L_ButtonList
  194. {
  195. get
  196. {
  197. if (_L_ButtonList == null) _L_ButtonList = new ButtonList(UiPanel, Instance.GetNode<Godot.VBoxContainer>("ButtonList"));
  198. return _L_ButtonList;
  199. }
  200. }
  201. private ButtonList _L_ButtonList;
  202.  
  203. public VBoxContainer(MainPanel uiPanel, Godot.VBoxContainer node) : base(uiPanel, node) { }
  204. public override VBoxContainer Clone() => new (UiPanel, (Godot.VBoxContainer)Instance.Duplicate());
  205. }
  206.  
  207. /// <summary>
  208. /// 类型: <see cref="Godot.Label"/>, 路径: Main.Version
  209. /// </summary>
  210. public class Version : UiNode<MainPanel, Godot.Label, Version>
  211. {
  212. public Version(MainPanel uiPanel, Godot.Label node) : base(uiPanel, node) { }
  213. public override Version Clone() => new (UiPanel, (Godot.Label)Instance.Duplicate());
  214. }
  215.  
  216.  
  217. /// <summary>
  218. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.ColorRect"/>, 节点路径: Main.ColorRect
  219. /// </summary>
  220. public ColorRect S_ColorRect => L_ColorRect;
  221.  
  222. /// <summary>
  223. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.Label"/>, 节点路径: Main.VBoxContainer.Title
  224. /// </summary>
  225. public Title S_Title => L_VBoxContainer.L_Title;
  226.  
  227. /// <summary>
  228. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.Button"/>, 节点路径: Main.VBoxContainer.ButtonList.Start
  229. /// </summary>
  230. public Start S_Start => L_VBoxContainer.L_ButtonList.L_Start;
  231.  
  232. /// <summary>
  233. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.Button"/>, 节点路径: Main.VBoxContainer.ButtonList.Tools
  234. /// </summary>
  235. public Tools S_Tools => L_VBoxContainer.L_ButtonList.L_Tools;
  236.  
  237. /// <summary>
  238. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.Button"/>, 节点路径: Main.VBoxContainer.ButtonList.Setting
  239. /// </summary>
  240. public Setting S_Setting => L_VBoxContainer.L_ButtonList.L_Setting;
  241.  
  242. /// <summary>
  243. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.Button"/>, 节点路径: Main.VBoxContainer.ButtonList.Exit
  244. /// </summary>
  245. public Exit S_Exit => L_VBoxContainer.L_ButtonList.L_Exit;
  246.  
  247. /// <summary>
  248. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.VBoxContainer"/>, 节点路径: Main.VBoxContainer.ButtonList
  249. /// </summary>
  250. public ButtonList S_ButtonList => L_VBoxContainer.L_ButtonList;
  251.  
  252. /// <summary>
  253. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.VBoxContainer"/>, 节点路径: Main.VBoxContainer
  254. /// </summary>
  255. public VBoxContainer S_VBoxContainer => L_VBoxContainer;
  256.  
  257. /// <summary>
  258. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.Label"/>, 节点路径: Main.Version
  259. /// </summary>
  260. public Version S_Version => L_Version;
  261.  
  262. }