Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / ui / weaponRoulette / WeaponRoulette.cs
@小李xl 小李xl on 3 Mar 2024 1 KB 制作武器轮盘中
  1. namespace UI.WeaponRoulette;
  2.  
  3. /// <summary>
  4. /// Ui代码, 该类是根据ui场景自动生成的, 请不要手动编辑该类, 以免造成代码丢失
  5. /// </summary>
  6. public abstract partial class WeaponRoulette : UiBase
  7. {
  8. /// <summary>
  9. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Sprite2D"/>, 节点路径: WeaponRoulette.Icon
  10. /// </summary>
  11. public Icon L_Icon
  12. {
  13. get
  14. {
  15. if (_L_Icon == null) _L_Icon = new Icon((WeaponRoulettePanel)this, GetNode<Godot.Sprite2D>("Icon"));
  16. return _L_Icon;
  17. }
  18. }
  19. private Icon _L_Icon;
  20.  
  21.  
  22. public WeaponRoulette() : base(nameof(WeaponRoulette))
  23. {
  24. }
  25.  
  26. public sealed override void OnInitNestedUi()
  27. {
  28.  
  29. }
  30.  
  31. /// <summary>
  32. /// 类型: <see cref="Godot.Sprite2D"/>, 路径: WeaponRoulette.Icon
  33. /// </summary>
  34. public class Icon : UiNode<WeaponRoulettePanel, Godot.Sprite2D, Icon>
  35. {
  36. public Icon(WeaponRoulettePanel uiPanel, Godot.Sprite2D node) : base(uiPanel, node) { }
  37. public override Icon Clone() => new (UiPanel, (Godot.Sprite2D)Instance.Duplicate());
  38. }
  39.  
  40.  
  41. /// <summary>
  42. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.Sprite2D"/>, 节点路径: WeaponRoulette.Icon
  43. /// </summary>
  44. public Icon S_Icon => L_Icon;
  45.  
  46. }