diff --git a/DungeonShooting_Godot/prefab/ui/Setting.tscn b/DungeonShooting_Godot/prefab/ui/Setting.tscn index 85242df..d0eb890 100644 --- a/DungeonShooting_Godot/prefab/ui/Setting.tscn +++ b/DungeonShooting_Godot/prefab/ui/Setting.tscn @@ -1,7 +1,7 @@ [gd_scene load_steps=3 format=3 uid="uid://bnwweusrc44xy"] [ext_resource type="Script" path="res://src/game/ui/setting/SettingPanel.cs" id="1_ff0oi"] -[ext_resource type="Texture2D" uid="uid://cajcnlimvoxk" path="res://resource/sprite/ui/commonIcon/Back.png" id="2_vgl60"] +[ext_resource type="Texture2D" uid="uid://bd0kpqji660ta" path="res://resource/sprite/ui/commonIcon/Back.png" id="2_vgl60"] [node name="Setting" type="Control"] layout_mode = 3 @@ -302,6 +302,21 @@ layout_mode = 2 text = "空格" +[node name="Key14" type="HBoxContainer" parent="ScrollContainer/KeySetting"] +custom_minimum_size = Vector2(600, 0) +layout_mode = 2 +size_flags_horizontal = 4 +size_flags_vertical = 0 + +[node name="Name" type="Label" parent="ScrollContainer/KeySetting/Key14"] +layout_mode = 2 +size_flags_horizontal = 3 +text = "展开小地图" + +[node name="Value" type="Label" parent="ScrollContainer/KeySetting/Key14"] +layout_mode = 2 +text = "Ctrl" + [node name="Back" type="Button" parent="ScrollContainer/KeySetting"] layout_mode = 2 size_flags_horizontal = 4 diff --git a/DungeonShooting_Godot/src/game/ui/setting/Setting.cs b/DungeonShooting_Godot/src/game/ui/setting/Setting.cs index c3726ec..141775f 100644 --- a/DungeonShooting_Godot/src/game/ui/setting/Setting.cs +++ b/DungeonShooting_Godot/src/game/ui/setting/Setting.cs @@ -943,6 +943,59 @@ } /// + /// 类型: , 路径: Setting.ScrollContainer.KeySetting.Key14.Name + /// + public class Name_14 : UiNode + { + public Name_14(SettingPanel uiPanel, Godot.Label node) : base(uiPanel, node) { } + public override Name_14 Clone() => new (UiPanel, (Godot.Label)Instance.Duplicate()); + } + + /// + /// 类型: , 路径: Setting.ScrollContainer.KeySetting.Key14.Value + /// + public class Value_13 : UiNode + { + public Value_13(SettingPanel uiPanel, Godot.Label node) : base(uiPanel, node) { } + public override Value_13 Clone() => new (UiPanel, (Godot.Label)Instance.Duplicate()); + } + + /// + /// 类型: , 路径: Setting.ScrollContainer.KeySetting.Key14 + /// + public class Key14 : UiNode + { + /// + /// 使用 Instance 属性获取当前节点实例对象, 节点类型: , 节点路径: Setting.ScrollContainer.KeySetting.Name + /// + public Name_14 L_Name + { + get + { + if (_L_Name == null) _L_Name = new Name_14(UiPanel, Instance.GetNode("Name")); + return _L_Name; + } + } + private Name_14 _L_Name; + + /// + /// 使用 Instance 属性获取当前节点实例对象, 节点类型: , 节点路径: Setting.ScrollContainer.KeySetting.Value + /// + public Value_13 L_Value + { + get + { + if (_L_Value == null) _L_Value = new Value_13(UiPanel, Instance.GetNode("Value")); + return _L_Value; + } + } + private Value_13 _L_Value; + + public Key14(SettingPanel uiPanel, Godot.HBoxContainer node) : base(uiPanel, node) { } + public override Key14 Clone() => new (UiPanel, (Godot.HBoxContainer)Instance.Duplicate()); + } + + /// /// 类型: , 路径: Setting.ScrollContainer.KeySetting.Back /// public class Back_2 : UiNode @@ -1139,6 +1192,19 @@ private Key13 _L_Key13; /// + /// 使用 Instance 属性获取当前节点实例对象, 节点类型: , 节点路径: Setting.ScrollContainer.Key14 + /// + public Key14 L_Key14 + { + get + { + if (_L_Key14 == null) _L_Key14 = new Key14(UiPanel, Instance.GetNode("Key14")); + return _L_Key14; + } + } + private Key14 _L_Key14; + + /// /// 使用 Instance 属性获取当前节点实例对象, 节点类型: , 节点路径: Setting.ScrollContainer.Back /// public Back_2 L_Back @@ -1315,6 +1381,11 @@ public Key13 S_Key13 => L_ScrollContainer.L_KeySetting.L_Key13; /// + /// 场景中唯一名称的节点, 节点类型: , 节点路径: Setting.ScrollContainer.KeySetting.Key14 + /// + public Key14 S_Key14 => L_ScrollContainer.L_KeySetting.L_Key14; + + /// /// 场景中唯一名称的节点, 节点类型: , 节点路径: Setting.ScrollContainer.KeySetting /// public KeySetting S_KeySetting => L_ScrollContainer.L_KeySetting;