diff --git a/addons/popupwindow/PopUpWindow.tscn b/addons/popupwindow/PopUpWindow.tscn new file mode 100644 index 0000000..b4da276 --- /dev/null +++ b/addons/popupwindow/PopUpWindow.tscn @@ -0,0 +1,18 @@ +[gd_scene load_steps=3 format=3 uid="uid://dfhtyii266o5q"] + +[ext_resource type="Script" path="res://addons/popupwindow/pop_up_window.gd" id="1_hxu1b"] +[ext_resource type="Script" path="res://addons/popupwindow/container.gd" id="2_frm4q"] + +[node name="PopUpWindow" type="CanvasLayer"] +script = ExtResource("1_hxu1b") + +[node name="Container" type="Container" parent="."] +unique_name_in_owner = true +visible = false +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +script = ExtResource("2_frm4q") +put_pos = Vector2(69.73, 66.07) diff --git a/addons/popupwindow/container.gd b/addons/popupwindow/container.gd new file mode 100644 index 0000000..452b716 --- /dev/null +++ b/addons/popupwindow/container.gd @@ -0,0 +1,26 @@ +@tool +extends Container +class_name PopupContainer +@export var put_pos:Vector2: + set(val): + put_pos=val + fit_children() +##对子节点进行适配 +func fit_children()->void: + for i in get_children(): + if i is Control: + var mini_size:Vector2=i.get_combined_minimum_size() + + var real_pos:Vector2=put_pos.clamp(Vector2.ZERO,size) + var real_size:Vector2=mini_size + if real_pos.x+mini_size.x>size.x: + real_pos.x=size.x-mini_size.x + if real_pos.y+mini_size.y>size.y: + real_pos.y=size.y-mini_size.y + real_pos=real_pos.clamp(Vector2.ZERO,size) + real_size=real_size.clamp(Vector2.ZERO,size) + var rect:Rect2=Rect2(real_pos,real_size) + fit_child_in_rect(i,rect) +func _gui_input(event: InputEvent) -> void: + if event is InputEventMouseButton: + self.hide() diff --git a/addons/popupwindow/plugin.cfg b/addons/popupwindow/plugin.cfg new file mode 100644 index 0000000..4ddc16a --- /dev/null +++ b/addons/popupwindow/plugin.cfg @@ -0,0 +1,7 @@ +[plugin] + +name="PopUpWindow" +description="弹出窗口插件" +author="TsubakiLoL" +version="" +script="popupwindow.gd" diff --git a/addons/popupwindow/pop_up_window.gd b/addons/popupwindow/pop_up_window.gd new file mode 100644 index 0000000..75d6111 --- /dev/null +++ b/addons/popupwindow/pop_up_window.gd @@ -0,0 +1,17 @@ +extends CanvasLayer +const TEXT = preload("res://addons/popupwindow/pre/text.tscn") +func pop_up_control(control:Control,pos:Vector2): + for i in %Container.get_children(): + i.queue_free() + + %Container.add_child(control) + %Container.put_pos=pos + %Container.show() + pass +func pop_up_text(text:String,pos:Vector2,H_limit:float,label_settings:LabelSettings=LabelSettings.new()): + var new_text=TEXT.instantiate() + new_text.custom_minimum_size.x=H_limit + pop_up_control(new_text,pos) + new_text.set_label(label_settings) + %Container.show() + pass diff --git a/addons/popupwindow/popupwindow.gd b/addons/popupwindow/popupwindow.gd new file mode 100644 index 0000000..5dc1433 --- /dev/null +++ b/addons/popupwindow/popupwindow.gd @@ -0,0 +1,14 @@ +@tool +extends EditorPlugin + + +func _enter_tree() -> void: + add_autoload_singleton("PopUpWindow","res://addons/popupwindow/PopUpWindow.tscn") + # Initialization of the plugin goes here. + pass + + +func _exit_tree() -> void: + remove_autoload_singleton("PopUpWindow") + # Clean-up of the plugin goes here. + pass diff --git a/addons/popupwindow/pre/popup_window.tres b/addons/popupwindow/pre/popup_window.tres new file mode 100644 index 0000000..ee4b862 --- /dev/null +++ b/addons/popupwindow/pre/popup_window.tres @@ -0,0 +1,10 @@ +[gd_resource type="StyleBoxTexture" load_steps=2 format=3 uid="uid://bk040ynoowpli"] + +[ext_resource type="Texture2D" uid="uid://byn884lrilmrt" path="res://res/ui/ui_006_special_ability/圆角矩形 4.png" id="1_7wpjv"] + +[resource] +texture = ExtResource("1_7wpjv") +texture_margin_left = 7.0 +texture_margin_top = 7.0 +texture_margin_right = 12.0 +texture_margin_bottom = 13.0 diff --git a/addons/popupwindow/pre/text.gd b/addons/popupwindow/pre/text.gd new file mode 100644 index 0000000..53360c8 --- /dev/null +++ b/addons/popupwindow/pre/text.gd @@ -0,0 +1,8 @@ +extends PanelContainer + + +func set_mes(text:String): + $Label.text=text + +func set_label(labelsetting:LabelSettings): + $Label.label_settings=labelsetting diff --git a/addons/popupwindow/pre/text.tscn b/addons/popupwindow/pre/text.tscn new file mode 100644 index 0000000..cb2c306 --- /dev/null +++ b/addons/popupwindow/pre/text.tscn @@ -0,0 +1,23 @@ +[gd_scene load_steps=3 format=3 uid="uid://d2ghbujrhch0e"] + +[ext_resource type="StyleBox" uid="uid://bk040ynoowpli" path="res://addons/popupwindow/pre/popup_window.tres" id="1_bxfsd"] +[ext_resource type="Script" path="res://addons/popupwindow/pre/text.gd" id="2_262v7"] + +[node name="Text" type="PanelContainer"] +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_right = -1789.0 +offset_bottom = -982.0 +grow_horizontal = 2 +grow_vertical = 2 +size_flags_horizontal = 3 +size_flags_vertical = 3 +theme_override_styles/panel = ExtResource("1_bxfsd") +script = ExtResource("2_262v7") + +[node name="Label" type="Label" parent="."] +layout_mode = 2 +size_flags_vertical = 1 +text = "测试信息测试信息" +autowrap_mode = 3 diff --git a/project.godot b/project.godot index a148530..16fb894 100644 --- a/project.godot +++ b/project.godot @@ -14,7 +14,15 @@ config/name="剧本模拟器" config/features=PackedStringArray("4.3", "Forward Plus") config/icon="res://icon.svg" +[autoload] + +PopUpWindow="*res://addons/popupwindow/PopUpWindow.tscn" + [display] window/size/viewport_width=1920 window/size/viewport_height=1080 + +[editor_plugins] + +enabled=PackedStringArray("res://addons/popupwindow/plugin.cfg") diff --git a/res/ui/ui_005_basic_message/selected.tres b/res/ui/ui_005_basic_message/selected.tres new file mode 100644 index 0000000..541f63f --- /dev/null +++ b/res/ui/ui_005_basic_message/selected.tres @@ -0,0 +1,6 @@ +[gd_resource type="StyleBoxTexture" load_steps=2 format=3 uid="uid://sknms6p03ysu"] + +[ext_resource type="Texture2D" uid="uid://by70vhlonu4ml" path="res://res/ui/ui_005_basic_message/图层173.png" id="1_2jycd"] + +[resource] +texture = ExtResource("1_2jycd") diff --git a/res/ui/ui_006_special_ability/popupwindow.tres b/res/ui/ui_006_special_ability/popupwindow.tres new file mode 100644 index 0000000..301cb7a --- /dev/null +++ b/res/ui/ui_006_special_ability/popupwindow.tres @@ -0,0 +1,10 @@ +[gd_resource type="StyleBoxTexture" load_steps=2 format=3 uid="uid://deluynrbuqdi0"] + +[ext_resource type="Texture2D" uid="uid://byn884lrilmrt" path="res://res/ui/ui_006_special_ability/圆角矩形 4.png" id="1_qau5b"] + +[resource] +texture = ExtResource("1_qau5b") +texture_margin_left = 7.0 +texture_margin_top = 7.0 +texture_margin_right = 12.0 +texture_margin_bottom = 13.0 diff --git a/res/ui/ui_007_interpersonal_relationship/图层146.png b/res/ui/ui_007_interpersonal_relationship/图层146.png new file mode 100644 index 0000000..5511bbb Binary files /dev/null and b/res/ui/ui_007_interpersonal_relationship/图层146.png differ diff --git a/res/ui/ui_007_interpersonal_relationship/图层146.png.import b/res/ui/ui_007_interpersonal_relationship/图层146.png.import new file mode 100644 index 0000000..c556730 --- /dev/null +++ b/res/ui/ui_007_interpersonal_relationship/图层146.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://b2yujmwh3dmbk" +path="res://.godot/imported/图层146.png-134179378184f1691f4c6ad1af90a11f.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://res/ui/ui_007_interpersonal_relationship/图层146.png" +dest_files=["res://.godot/imported/图层146.png-134179378184f1691f4c6ad1af90a11f.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/res/ui/ui_007_interpersonal_relationship/图层147.png b/res/ui/ui_007_interpersonal_relationship/图层147.png new file mode 100644 index 0000000..51b7b7f Binary files /dev/null and b/res/ui/ui_007_interpersonal_relationship/图层147.png differ diff --git a/res/ui/ui_007_interpersonal_relationship/图层147.png.import b/res/ui/ui_007_interpersonal_relationship/图层147.png.import new file mode 100644 index 0000000..25539be --- /dev/null +++ b/res/ui/ui_007_interpersonal_relationship/图层147.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://i155mvisr7dv" +path="res://.godot/imported/图层147.png-6697bafb311f04f2e573616dd86b6039.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://res/ui/ui_007_interpersonal_relationship/图层147.png" +dest_files=["res://.godot/imported/图层147.png-6697bafb311f04f2e573616dd86b6039.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/res/ui/ui_007_interpersonal_relationship/图层148.png b/res/ui/ui_007_interpersonal_relationship/图层148.png new file mode 100644 index 0000000..c3d22f6 Binary files /dev/null and b/res/ui/ui_007_interpersonal_relationship/图层148.png differ diff --git a/res/ui/ui_007_interpersonal_relationship/图层148.png.import b/res/ui/ui_007_interpersonal_relationship/图层148.png.import new file mode 100644 index 0000000..a568a8f --- /dev/null +++ b/res/ui/ui_007_interpersonal_relationship/图层148.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cof6sk14yden1" +path="res://.godot/imported/图层148.png-20bae051b908ca37073e82f938d512fb.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://res/ui/ui_007_interpersonal_relationship/图层148.png" +dest_files=["res://.godot/imported/图层148.png-20bae051b908ca37073e82f938d512fb.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/res/ui/ui_007_interpersonal_relationship/图层149.png b/res/ui/ui_007_interpersonal_relationship/图层149.png new file mode 100644 index 0000000..1d515b6 Binary files /dev/null and b/res/ui/ui_007_interpersonal_relationship/图层149.png differ diff --git a/res/ui/ui_007_interpersonal_relationship/图层149.png.import b/res/ui/ui_007_interpersonal_relationship/图层149.png.import new file mode 100644 index 0000000..4390522 --- /dev/null +++ b/res/ui/ui_007_interpersonal_relationship/图层149.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c70jiyu83wpf6" +path="res://.godot/imported/图层149.png-2a0886ba008807504fd3c599083ff54b.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://res/ui/ui_007_interpersonal_relationship/图层149.png" +dest_files=["res://.godot/imported/图层149.png-2a0886ba008807504fd3c599083ff54b.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/res/ui/ui_007_interpersonal_relationship/图层175.png b/res/ui/ui_007_interpersonal_relationship/图层175.png new file mode 100644 index 0000000..a806e2c Binary files /dev/null and b/res/ui/ui_007_interpersonal_relationship/图层175.png differ diff --git a/res/ui/ui_007_interpersonal_relationship/图层175.png.import b/res/ui/ui_007_interpersonal_relationship/图层175.png.import new file mode 100644 index 0000000..4d2c49e --- /dev/null +++ b/res/ui/ui_007_interpersonal_relationship/图层175.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://b87xi8dvmmwd7" +path="res://.godot/imported/图层175.png-d333babac98dce35d01859e0c6dba506.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://res/ui/ui_007_interpersonal_relationship/图层175.png" +dest_files=["res://.godot/imported/图层175.png-d333babac98dce35d01859e0c6dba506.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/scene/ability_button.gd b/scene/ability_button.gd index 80cc2fa..ebdcdda 100644 --- a/scene/ability_button.gd +++ b/scene/ability_button.gd @@ -1,6 +1,11 @@ extends Button -var show_mes:String="" - +var show_mes:String="测试消息测试消息测试消息测试消息测试消息测试消息测试消息测试消息测试消息测试消息" +enum dir{ + left_top=0, + left_bottom=1, + right_top=2, + right_bottom=3 +} # Called when the node enters the scene tree for the first time. func _ready() -> void: pass # Replace with function body. @@ -19,3 +24,11 @@ func _on_button_down() -> void: func _on_button_up() -> void: modulate=Color(1,1,1,1) pass # Replace with function body. + + +func _on_pressed() -> void: + var pos=get_global_mouse_position() + var label_settings=LabelSettings.new() + label_settings.font_size=22 + PopUpWindow.pop_up_text(show_mes,pos,200,label_settings) + pass # Replace with function body. diff --git a/scene/ability_button.tscn b/scene/ability_button.tscn index 9161725..26602a9 100644 --- a/scene/ability_button.tscn +++ b/scene/ability_button.tscn @@ -1,22 +1,20 @@ -[gd_scene load_steps=5 format=3 uid="uid://dh00ritpv7tru"] +[gd_scene load_steps=3 format=3 uid="uid://dh00ritpv7tru"] [ext_resource type="Texture2D" uid="uid://bt8qfu8dsd5n2" path="res://res/ui/ui_006_special_ability/图层143.png" id="1_s6y2q"] [ext_resource type="Script" path="res://scene/ability_button.gd" id="2_owp7v"] -[ext_resource type="Texture2D" uid="uid://byn884lrilmrt" path="res://res/ui/ui_006_special_ability/圆角矩形 4.png" id="3_q82nx"] -[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_hqj84"] -texture = ExtResource("3_q82nx") -texture_margin_left = 7.0 -texture_margin_top = 7.0 -texture_margin_right = 12.0 -texture_margin_bottom = 13.0 - -[node name="TextureRect" type="Button"] +[node name="btn" type="Button"] custom_minimum_size = Vector2(230, 58) anchors_preset = -1 anchor_right = 0.119792 anchor_bottom = 0.0537037 tooltip_text = "kkkkkk" +focus_mode = 0 +theme_override_colors/font_color = Color(1, 1, 1, 1) +theme_override_colors/font_outline_color = Color(0, 0, 0, 1) +theme_override_constants/outline_size = 4 +theme_override_font_sizes/font_size = 22 +text = "名字" icon = ExtResource("1_s6y2q") flat = true icon_alignment = 1 @@ -24,9 +22,6 @@ expand_icon = true script = ExtResource("2_owp7v") metadata/_edit_use_anchors_ = true -[node name="PopupPanel" type="PopupPanel" parent="."] -visible = true -theme_override_styles/panel = SubResource("StyleBoxTexture_hqj84") - [connection signal="button_down" from="." to="." method="_on_button_down"] [connection signal="button_up" from="." to="." method="_on_button_up"] +[connection signal="pressed" from="." to="." method="_on_pressed"] diff --git a/scene/attribute.gd b/scene/attribute.gd new file mode 100644 index 0000000..edbb658 --- /dev/null +++ b/scene/attribute.gd @@ -0,0 +1,8 @@ +extends TextureRect +var data:Dictionary={ + "name":"生命", + "value":100 +} +func _ready() -> void: + %name.text=data["name"] + %value.text=str(data["value"]) diff --git a/scene/attribute.tscn b/scene/attribute.tscn new file mode 100644 index 0000000..f7d86f5 --- /dev/null +++ b/scene/attribute.tscn @@ -0,0 +1,39 @@ +[gd_scene load_steps=3 format=3 uid="uid://byxb45wjr2gct"] + +[ext_resource type="Texture2D" uid="uid://bjfkp3bcw7rjj" path="res://res/ui/ui_005_basic_message/图层 1.png" id="1_xlwgk"] +[ext_resource type="Script" path="res://scene/attribute.gd" id="2_op6dx"] + +[node name="attribute" type="TextureRect"] +anchors_preset = -1 +anchor_right = 0.111979 +anchor_bottom = 0.05 +texture = ExtResource("1_xlwgk") +stretch_mode = 5 +script = ExtResource("2_op6dx") +metadata/_edit_use_anchors_ = true + +[node name="name" type="Label" parent="."] +unique_name_in_owner = true +layout_mode = 0 +anchor_left = 0.0604651 +anchor_right = 0.618605 +anchor_bottom = 0.907407 +theme_override_colors/font_color = Color(0.8, 0.8, 0.8, 1) +theme_override_font_sizes/font_size = 28 +text = "生命" +vertical_alignment = 1 +metadata/_edit_use_anchors_ = true + +[node name="value" type="Label" parent="."] +unique_name_in_owner = true +layout_mode = 1 +anchors_preset = -1 +anchor_left = 0.502326 +anchor_right = 0.962791 +anchor_bottom = 0.907407 +theme_override_colors/font_color = Color(0.8, 0.8, 0.8, 1) +theme_override_font_sizes/font_size = 28 +text = "100" +horizontal_alignment = 2 +vertical_alignment = 1 +metadata/_edit_use_anchors_ = true diff --git a/scene/basic_message.gd b/scene/basic_message.gd new file mode 100644 index 0000000..31b33da --- /dev/null +++ b/scene/basic_message.gd @@ -0,0 +1,183 @@ +extends Control +const ABILITY_BUTTON = preload("res://scene/ability_button.tscn") +const ATTRIBUTE = preload("res://scene/attribute.tscn") +const SELECTED = preload("res://res/ui/ui_005_basic_message/selected.tres") +var data={ + "character":{ + "name":"角色名字", + "star":5, + "skin":[ + { + "name":"皮肤1", + "card_face":"卡面图片路径", + "character":"角色图片路径" + } + ], + "skin_now_use":0 + }, + "basic_mes":{ + "script_category":"剧本类别", + "place":"地点", + "sex":0, #0为男,1为女 + "race":"种族", + "birthday":"xxxx-xx-xx", + + "introduction":"这是一个介绍", + "basic_attribute":[ + { + "name":"体质", + "value":100, + }, + { + "name":"敏捷", + "value":100, + }, + { + "name":"智力", + "value":100, + }, + { + "name":"感知", + "value":100, + }, + ], + "fight_attribute":[ + { + "name":"生命", + "value":100, + }, + { + "name":"精神", + "value":100, + }, + { + "name":"物理攻击", + "value":100, + }, + { + "name":"法术强度", + "value":100, + }, + ] + }, + "special":[ + { + "name":"倾国倾城", + "introduction":"鼠标点击显示具体效果鼠标点击显示具体效果鼠标点击显示具体效果鼠标点击显示具体效果鼠标点击显示具体效果鼠标点击显示具体效果鼠标点击显示具体效果鼠标点击显示具体效果" + } + ], + "ability":[ + { + "name":"武学 LV3", + "introduction":"鼠标点击显示具体效果鼠标点击显示具体效果鼠标点击显示具体效果鼠标点击显示具体效果鼠标点击显示具体效果鼠标点击显示具体效果鼠标点击显示具体效果鼠标点击显示具体效果" + } + ], + + "favor":[{ + "name":"姐姐", + "value":100 + } + ], + "reputation":[ + { + "name":"某地区", + "value":100 + } + ] +} + +@onready var button_group:Array[Button]=[$VBoxContainer/TextureRect/HBoxContainer/Button, $VBoxContainer/TextureRect/HBoxContainer/Button2, $VBoxContainer/TextureRect/HBoxContainer/Button3, $VBoxContainer/TextureRect/HBoxContainer/Button4, $VBoxContainer/TextureRect/HBoxContainer/Button5, $VBoxContainer/TextureRect/HBoxContainer/Button6] +@onready var now_selected_button:Button=$VBoxContainer/TextureRect/HBoxContainer/Button +func init_from_data(): + for i in %special_container.get_children(): + i.queue_free() + for i in %ability_container.get_children(): + i.queue_free() + if data.has("basic_mes"): + var basic_data=data["basic_mes"] + %category.text=basic_data["script_category"] + %place.text=basic_data["place"] + #缺少性别 + %race.text=basic_data["race"] + %birthday.text=basic_data["birthday"] + %introduction.text=basic_data["introduction"] + var basic_attribute=basic_data["basic_attribute"] + var fight_attribute=basic_data["fight_attribute"] + for i in %basic_attribute.get_children(): + i.queue_free() + for i in %fight_attribute.get_children(): + i.queue_free() + for i in basic_attribute: + var new_attribute=ATTRIBUTE.instantiate() + new_attribute.data=i + %basic_attribute.add_child(new_attribute) + for i in fight_attribute: + var new_attribute=ATTRIBUTE.instantiate() + new_attribute.data=i + %fight_attribute.add_child(new_attribute) + pass + if data.has("special"): + var special_data=data["special"] + for i in special_data: + var new_button=ABILITY_BUTTON.instantiate() + new_button.show_mes=i["introduction"] + new_button.text=i["name"] + %special_container.add_child(new_button) + if data.has("ability"): + var ability_data=data["ability"] + for i in ability_data: + var new_button=ABILITY_BUTTON.instantiate() + new_button.show_mes=i["introduction"] + new_button.text=i["name"] + %ability_container.add_child(new_button) + if data.has("character"): + var character_data=data["character"] + %character_name.text=character_data["name"] + var star_arr=%star_container.get_children() + var star_num:int=character_data["star"] + for i in star_arr.size(): + if i void: + init_from_data() + connect_button() diff --git a/scene/basic_message.tscn b/scene/basic_message.tscn index a31834a..0790535 100644 --- a/scene/basic_message.tscn +++ b/scene/basic_message.tscn @@ -1,5 +1,6 @@ -[gd_scene load_steps=23 format=3 uid="uid://chh7gr3qbkr8u"] +[gd_scene load_steps=31 format=3 uid="uid://chh7gr3qbkr8u"] +[ext_resource type="Script" path="res://scene/basic_message.gd" id="1_0470d"] [ext_resource type="Texture2D" uid="uid://dygka5vk5qdhs" path="res://res/ui/ui_005_basic_message/图层 2.png" id="1_vhe21"] [ext_resource type="Texture2D" uid="uid://vbtkrk0b8c3u" path="res://res/ui/ui_005_basic_message/图层97.png" id="2_u0tfq"] [ext_resource type="Texture2D" uid="uid://drgfs6epv0jqd" path="res://res/ui/ui_005_basic_message/图层92.png" id="3_5dvp4"] @@ -7,6 +8,7 @@ [ext_resource type="Texture2D" uid="uid://hpogdw4jv6rl" path="res://res/ui/ui_005_basic_message/图层177.png" id="5_5lslk"] [ext_resource type="Texture2D" uid="uid://c6ftnvo1gl1o7" path="res://res/ui/ui_005_basic_message/图层127.png" id="6_s8ry1"] [ext_resource type="Texture2D" uid="uid://djaebws5opaql" path="res://res/ui/ui_005_basic_message/图层95.png" id="7_a1x8x"] +[ext_resource type="StyleBox" uid="uid://sknms6p03ysu" path="res://res/ui/ui_005_basic_message/selected.tres" id="7_xjbie"] [ext_resource type="Texture2D" uid="uid://x063sguqi6g6" path="res://res/ui/ui_005_basic_message/图层93.png" id="8_bo3jh"] [ext_resource type="Texture2D" uid="uid://byjpm2savyf63" path="res://res/ui/ui_005_basic_message/图层132.png" id="9_3w85f"] [ext_resource type="Texture2D" uid="uid://bjfkp3bcw7rjj" path="res://res/ui/ui_005_basic_message/图层 1.png" id="10_4vfh3"] @@ -14,6 +16,10 @@ [ext_resource type="StyleBox" uid="uid://8q5lafq5crxi" path="res://res/ui/ui_006_special_ability/panel.tres" id="11_vvy03"] [ext_resource type="Texture2D" uid="uid://d38grwcxuro4m" path="res://res/ui/ui_006_special_ability/图层125.png" id="12_yd5na"] [ext_resource type="Texture2D" uid="uid://cup7twtrpwa5x" path="res://res/ui/ui_006_special_ability/图层137.png" id="13_rxt5d"] +[ext_resource type="Texture2D" uid="uid://c70jiyu83wpf6" path="res://res/ui/ui_007_interpersonal_relationship/图层149.png" id="15_rn3g0"] +[ext_resource type="Texture2D" uid="uid://i155mvisr7dv" path="res://res/ui/ui_007_interpersonal_relationship/图层147.png" id="16_w11hg"] +[ext_resource type="Texture2D" uid="uid://b2yujmwh3dmbk" path="res://res/ui/ui_007_interpersonal_relationship/图层146.png" id="17_wsayg"] +[ext_resource type="Texture2D" uid="uid://cof6sk14yden1" path="res://res/ui/ui_007_interpersonal_relationship/图层148.png" id="18_4wxn4"] [sub_resource type="StyleBoxTexture" id="StyleBoxTexture_7cm0j"] texture = ExtResource("2_u0tfq") @@ -34,6 +40,18 @@ texture = ExtResource("7_a1x8x") [sub_resource type="StyleBoxTexture" id="StyleBoxTexture_k0wv2"] texture = ExtResource("8_bo3jh") +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_rlilm"] +texture = ExtResource("15_rn3g0") +texture_margin_left = 53.1468 +texture_margin_right = 248.019 +texture_margin_bottom = 253.333 + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_5dran"] +texture = ExtResource("17_wsayg") +texture_margin_left = 51.3753 +texture_margin_right = 246.247 +texture_margin_bottom = 246.247 + [node name="Control" type="Control"] layout_mode = 3 anchors_preset = 15 @@ -41,6 +59,7 @@ anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 +script = ExtResource("1_0470d") [node name="back" type="TextureRect" parent="."] layout_mode = 1 @@ -118,30 +137,31 @@ grow_horizontal = 2 grow_vertical = 2 theme_override_constants/margin_left = 27 -[node name="HBoxContainer" type="HBoxContainer" parent="texture/MarginContainer"] +[node name="star_container" type="HBoxContainer" parent="texture/MarginContainer"] +unique_name_in_owner = true layout_mode = 2 -[node name="star1" type="TextureRect" parent="texture/MarginContainer/HBoxContainer"] +[node name="star1" type="TextureRect" parent="texture/MarginContainer/star_container"] layout_mode = 2 texture = ExtResource("4_el6g3") stretch_mode = 5 -[node name="star2" type="TextureRect" parent="texture/MarginContainer/HBoxContainer"] +[node name="star2" type="TextureRect" parent="texture/MarginContainer/star_container"] layout_mode = 2 texture = ExtResource("4_el6g3") stretch_mode = 5 -[node name="star3" type="TextureRect" parent="texture/MarginContainer/HBoxContainer"] +[node name="star3" type="TextureRect" parent="texture/MarginContainer/star_container"] layout_mode = 2 texture = ExtResource("4_el6g3") stretch_mode = 5 -[node name="star4" type="TextureRect" parent="texture/MarginContainer/HBoxContainer"] +[node name="star4" type="TextureRect" parent="texture/MarginContainer/star_container"] layout_mode = 2 texture = ExtResource("4_el6g3") stretch_mode = 5 -[node name="star5" type="TextureRect" parent="texture/MarginContainer/HBoxContainer"] +[node name="star5" type="TextureRect" parent="texture/MarginContainer/star_container"] layout_mode = 2 texture = ExtResource("4_el6g3") stretch_mode = 5 @@ -174,21 +194,22 @@ grow_vertical = 2 layout_mode = 2 size_flags_horizontal = 3 focus_mode = 0 +theme_override_colors/font_hover_color = Color(0, 0, 0, 1) theme_override_colors/font_color = Color(0, 0, 0, 1) theme_override_colors/font_outline_color = Color(1, 1, 1, 1) theme_override_constants/outline_size = 8 theme_override_font_sizes/font_size = 30 -theme_override_styles/hover_pressed = SubResource("StyleBoxEmpty_v80f3") -theme_override_styles/hover = SubResource("StyleBoxEmpty_x5uu1") -theme_override_styles/pressed = SubResource("StyleBoxEmpty_vae5h") -theme_override_styles/normal = SubResource("StyleBoxEmpty_pyyu2") +theme_override_styles/hover_pressed = ExtResource("7_xjbie") +theme_override_styles/hover = ExtResource("7_xjbie") +theme_override_styles/pressed = ExtResource("7_xjbie") +theme_override_styles/normal = ExtResource("7_xjbie") text = "基础信息" -flat = true [node name="Button2" type="Button" parent="VBoxContainer/TextureRect/HBoxContainer"] layout_mode = 2 size_flags_horizontal = 3 focus_mode = 0 +theme_override_colors/font_hover_color = Color(0, 0, 0, 1) theme_override_colors/font_color = Color(0, 0, 0, 1) theme_override_colors/font_outline_color = Color(1, 1, 1, 1) theme_override_constants/outline_size = 8 @@ -198,12 +219,12 @@ theme_override_styles/hover = SubResource("StyleBoxEmpty_x5uu1") theme_override_styles/pressed = SubResource("StyleBoxEmpty_vae5h") theme_override_styles/normal = SubResource("StyleBoxEmpty_pyyu2") text = "特质能力" -flat = true [node name="Button3" type="Button" parent="VBoxContainer/TextureRect/HBoxContainer"] layout_mode = 2 size_flags_horizontal = 3 focus_mode = 0 +theme_override_colors/font_hover_color = Color(0, 0, 0, 1) theme_override_colors/font_color = Color(0, 0, 0, 1) theme_override_colors/font_outline_color = Color(1, 1, 1, 1) theme_override_constants/outline_size = 8 @@ -213,12 +234,12 @@ theme_override_styles/hover = SubResource("StyleBoxEmpty_x5uu1") theme_override_styles/pressed = SubResource("StyleBoxEmpty_vae5h") theme_override_styles/normal = SubResource("StyleBoxEmpty_pyyu2") text = "人际关系" -flat = true [node name="Button4" type="Button" parent="VBoxContainer/TextureRect/HBoxContainer"] layout_mode = 2 size_flags_horizontal = 3 focus_mode = 0 +theme_override_colors/font_hover_color = Color(0, 0, 0, 1) theme_override_colors/font_color = Color(0, 0, 0, 1) theme_override_colors/font_outline_color = Color(1, 1, 1, 1) theme_override_constants/outline_size = 8 @@ -228,12 +249,12 @@ theme_override_styles/hover = SubResource("StyleBoxEmpty_x5uu1") theme_override_styles/pressed = SubResource("StyleBoxEmpty_vae5h") theme_override_styles/normal = SubResource("StyleBoxEmpty_pyyu2") text = "背包" -flat = true [node name="Button5" type="Button" parent="VBoxContainer/TextureRect/HBoxContainer"] layout_mode = 2 size_flags_horizontal = 3 focus_mode = 0 +theme_override_colors/font_hover_color = Color(0, 0, 0, 1) theme_override_colors/font_color = Color(0, 0, 0, 1) theme_override_colors/font_outline_color = Color(1, 1, 1, 1) theme_override_constants/outline_size = 8 @@ -243,13 +264,12 @@ theme_override_styles/hover = SubResource("StyleBoxEmpty_x5uu1") theme_override_styles/pressed = SubResource("StyleBoxEmpty_vae5h") theme_override_styles/normal = SubResource("StyleBoxEmpty_pyyu2") text = "技能配置" -flat = true [node name="Button6" type="Button" parent="VBoxContainer/TextureRect/HBoxContainer"] -visible = false layout_mode = 2 size_flags_horizontal = 3 focus_mode = 0 +theme_override_colors/font_hover_color = Color(0, 0, 0, 1) theme_override_colors/font_color = Color(0, 0, 0, 1) theme_override_colors/font_outline_color = Color(1, 1, 1, 1) theme_override_constants/outline_size = 8 @@ -259,9 +279,9 @@ theme_override_styles/hover = SubResource("StyleBoxEmpty_x5uu1") theme_override_styles/pressed = SubResource("StyleBoxEmpty_vae5h") theme_override_styles/normal = SubResource("StyleBoxEmpty_pyyu2") text = "开局配置" -flat = true [node name="TabContainer" type="TabContainer" parent="VBoxContainer"] +unique_name_in_owner = true layout_mode = 2 size_flags_vertical = 3 size_flags_stretch_ratio = 939.0 @@ -289,6 +309,7 @@ size_flags_stretch_ratio = 110.0 texture = ExtResource("6_s8ry1") [node name="category" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/texture"] +unique_name_in_owner = true layout_mode = 1 anchors_preset = -1 anchor_left = 0.00200803 @@ -316,6 +337,7 @@ vertical_alignment = 1 metadata/_edit_use_anchors_ = true [node name="place" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/texture"] +unique_name_in_owner = true layout_mode = 1 anchors_preset = -1 anchor_left = 0.197791 @@ -354,6 +376,7 @@ vertical_alignment = 1 metadata/_edit_use_anchors_ = true [node name="race" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/texture"] +unique_name_in_owner = true layout_mode = 1 anchors_preset = -1 anchor_left = 0.590362 @@ -378,6 +401,7 @@ vertical_alignment = 1 metadata/_edit_use_anchors_ = true [node name="birthday" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/texture"] +unique_name_in_owner = true layout_mode = 1 anchors_preset = -1 anchor_left = 0.816265 @@ -411,6 +435,7 @@ vertical_alignment = 1 metadata/_edit_use_anchors_ = true [node name="introduction" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel"] +unique_name_in_owner = true layout_mode = 0 anchor_left = 0.150743 anchor_top = 0.15847 @@ -458,7 +483,8 @@ text = "基 础 属 性" horizontal_alignment = 1 vertical_alignment = 1 -[node name="GridContainer" type="GridContainer" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2"] +[node name="basic_attribute" type="GridContainer" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2"] +unique_name_in_owner = true custom_minimum_size = Vector2(910, 132) layout_mode = 0 anchor_left = 0.0201699 @@ -468,12 +494,12 @@ anchor_bottom = 0.429338 columns = 4 metadata/_edit_use_anchors_ = true -[node name="TextureRect" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer"] +[node name="TextureRect" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/basic_attribute"] layout_mode = 2 texture = ExtResource("10_4vfh3") stretch_mode = 5 -[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer/TextureRect"] +[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/basic_attribute/TextureRect"] layout_mode = 1 anchors_preset = -1 anchor_right = 0.353488 @@ -485,9 +511,8 @@ theme_override_font_sizes/font_size = 28 text = "体质" horizontal_alignment = 1 vertical_alignment = 1 -metadata/_edit_use_anchors_ = true -[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer/TextureRect"] +[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/basic_attribute/TextureRect"] layout_mode = 1 anchors_preset = -1 anchor_left = 0.418605 @@ -498,14 +523,13 @@ grow_vertical = 2 text = "100" horizontal_alignment = 2 vertical_alignment = 1 -metadata/_edit_use_anchors_ = true -[node name="TextureRect2" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer"] +[node name="TextureRect2" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/basic_attribute"] layout_mode = 2 texture = ExtResource("10_4vfh3") stretch_mode = 5 -[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer/TextureRect2"] +[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/basic_attribute/TextureRect2"] layout_mode = 1 anchors_preset = -1 anchor_right = 0.353488 @@ -519,7 +543,7 @@ horizontal_alignment = 1 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer/TextureRect2"] +[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/basic_attribute/TextureRect2"] layout_mode = 1 anchors_preset = -1 anchor_left = 0.418605 @@ -532,12 +556,12 @@ horizontal_alignment = 2 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="TextureRect3" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer"] +[node name="TextureRect3" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/basic_attribute"] layout_mode = 2 texture = ExtResource("10_4vfh3") stretch_mode = 5 -[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer/TextureRect3"] +[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/basic_attribute/TextureRect3"] layout_mode = 1 anchors_preset = -1 anchor_right = 0.353488 @@ -551,7 +575,7 @@ horizontal_alignment = 1 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer/TextureRect3"] +[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/basic_attribute/TextureRect3"] layout_mode = 1 anchors_preset = -1 anchor_left = 0.418605 @@ -564,12 +588,12 @@ horizontal_alignment = 2 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="TextureRect4" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer"] +[node name="TextureRect4" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/basic_attribute"] layout_mode = 2 texture = ExtResource("10_4vfh3") stretch_mode = 5 -[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer/TextureRect4"] +[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/basic_attribute/TextureRect4"] layout_mode = 1 anchors_preset = -1 anchor_right = 0.353488 @@ -583,7 +607,7 @@ horizontal_alignment = 1 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer/TextureRect4"] +[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/basic_attribute/TextureRect4"] layout_mode = 1 anchors_preset = -1 anchor_left = 0.418605 @@ -596,12 +620,12 @@ horizontal_alignment = 2 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="TextureRect5" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer"] +[node name="TextureRect5" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/basic_attribute"] layout_mode = 2 texture = ExtResource("10_4vfh3") stretch_mode = 5 -[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer/TextureRect5"] +[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/basic_attribute/TextureRect5"] layout_mode = 1 anchors_preset = -1 anchor_right = 0.353488 @@ -615,7 +639,7 @@ horizontal_alignment = 1 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer/TextureRect5"] +[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/basic_attribute/TextureRect5"] layout_mode = 1 anchors_preset = -1 anchor_left = 0.418605 @@ -628,12 +652,12 @@ horizontal_alignment = 2 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="TextureRect6" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer"] +[node name="TextureRect6" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/basic_attribute"] layout_mode = 2 texture = ExtResource("10_4vfh3") stretch_mode = 5 -[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer/TextureRect6"] +[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/basic_attribute/TextureRect6"] layout_mode = 1 anchors_preset = -1 anchor_right = 0.353488 @@ -647,7 +671,7 @@ horizontal_alignment = 1 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer/TextureRect6"] +[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/basic_attribute/TextureRect6"] layout_mode = 1 anchors_preset = -1 anchor_left = 0.418605 @@ -660,12 +684,12 @@ horizontal_alignment = 2 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="TextureRect7" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer"] +[node name="TextureRect7" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/basic_attribute"] layout_mode = 2 texture = ExtResource("10_4vfh3") stretch_mode = 5 -[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer/TextureRect7"] +[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/basic_attribute/TextureRect7"] layout_mode = 1 anchors_preset = -1 anchor_right = 0.353488 @@ -679,7 +703,7 @@ horizontal_alignment = 1 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer/TextureRect7"] +[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/basic_attribute/TextureRect7"] layout_mode = 1 anchors_preset = -1 anchor_left = 0.418605 @@ -692,12 +716,12 @@ horizontal_alignment = 2 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="TextureRect8" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer"] +[node name="TextureRect8" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/basic_attribute"] layout_mode = 2 texture = ExtResource("10_4vfh3") stretch_mode = 5 -[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer/TextureRect8"] +[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/basic_attribute/TextureRect8"] layout_mode = 1 anchors_preset = -1 anchor_right = 0.353488 @@ -711,7 +735,7 @@ horizontal_alignment = 1 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer/TextureRect8"] +[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/basic_attribute/TextureRect8"] layout_mode = 1 anchors_preset = -1 anchor_left = 0.418605 @@ -747,7 +771,8 @@ text = "战 斗 属 性" horizontal_alignment = 1 vertical_alignment = 1 -[node name="GridContainer2" type="GridContainer" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2"] +[node name="fight_attribute" type="GridContainer" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2"] +unique_name_in_owner = true custom_minimum_size = Vector2(910, 132) layout_mode = 1 anchors_preset = -1 @@ -758,12 +783,12 @@ anchor_bottom = 0.987478 columns = 4 metadata/_edit_use_anchors_ = true -[node name="TextureRect" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer2"] +[node name="TextureRect" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/fight_attribute"] layout_mode = 2 texture = ExtResource("10_4vfh3") stretch_mode = 5 -[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer2/TextureRect"] +[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/fight_attribute/TextureRect"] layout_mode = 1 anchors_preset = -1 anchor_right = 0.353488 @@ -777,7 +802,7 @@ horizontal_alignment = 1 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer2/TextureRect"] +[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/fight_attribute/TextureRect"] layout_mode = 1 anchors_preset = -1 anchor_left = 0.418605 @@ -790,12 +815,12 @@ horizontal_alignment = 2 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="TextureRect2" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer2"] +[node name="TextureRect2" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/fight_attribute"] layout_mode = 2 texture = ExtResource("10_4vfh3") stretch_mode = 5 -[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer2/TextureRect2"] +[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/fight_attribute/TextureRect2"] layout_mode = 1 anchors_preset = -1 anchor_right = 0.353488 @@ -809,7 +834,7 @@ horizontal_alignment = 1 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer2/TextureRect2"] +[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/fight_attribute/TextureRect2"] layout_mode = 1 anchors_preset = -1 anchor_left = 0.418605 @@ -822,12 +847,12 @@ horizontal_alignment = 2 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="TextureRect3" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer2"] +[node name="TextureRect3" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/fight_attribute"] layout_mode = 2 texture = ExtResource("10_4vfh3") stretch_mode = 5 -[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer2/TextureRect3"] +[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/fight_attribute/TextureRect3"] layout_mode = 1 anchors_preset = -1 anchor_left = -0.027907 @@ -842,7 +867,7 @@ horizontal_alignment = 1 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer2/TextureRect3"] +[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/fight_attribute/TextureRect3"] layout_mode = 1 anchors_preset = -1 anchor_left = 0.418605 @@ -855,12 +880,12 @@ horizontal_alignment = 2 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="TextureRect4" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer2"] +[node name="TextureRect4" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/fight_attribute"] layout_mode = 2 texture = ExtResource("10_4vfh3") stretch_mode = 5 -[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer2/TextureRect4"] +[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/fight_attribute/TextureRect4"] layout_mode = 1 anchors_preset = -1 anchor_right = 0.497674 @@ -874,7 +899,7 @@ horizontal_alignment = 1 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer2/TextureRect4"] +[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/fight_attribute/TextureRect4"] layout_mode = 1 anchors_preset = -1 anchor_left = 0.418605 @@ -887,12 +912,12 @@ horizontal_alignment = 2 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="TextureRect5" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer2"] +[node name="TextureRect5" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/fight_attribute"] layout_mode = 2 texture = ExtResource("10_4vfh3") stretch_mode = 5 -[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer2/TextureRect5"] +[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/fight_attribute/TextureRect5"] layout_mode = 1 anchors_preset = -1 anchor_right = 0.548837 @@ -906,7 +931,7 @@ horizontal_alignment = 1 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer2/TextureRect5"] +[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/fight_attribute/TextureRect5"] layout_mode = 1 anchors_preset = -1 anchor_left = 0.418605 @@ -919,12 +944,12 @@ horizontal_alignment = 2 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="TextureRect6" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer2"] +[node name="TextureRect6" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/fight_attribute"] layout_mode = 2 texture = ExtResource("10_4vfh3") stretch_mode = 5 -[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer2/TextureRect6"] +[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/fight_attribute/TextureRect6"] layout_mode = 1 anchors_preset = -1 anchor_left = -0.0837209 @@ -939,7 +964,7 @@ horizontal_alignment = 1 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer2/TextureRect6"] +[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/fight_attribute/TextureRect6"] layout_mode = 1 anchors_preset = -1 anchor_left = 0.418605 @@ -952,12 +977,12 @@ horizontal_alignment = 2 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="TextureRect7" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer2"] +[node name="TextureRect7" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/fight_attribute"] layout_mode = 2 texture = ExtResource("10_4vfh3") stretch_mode = 5 -[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer2/TextureRect7"] +[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/fight_attribute/TextureRect7"] layout_mode = 1 anchors_preset = -1 anchor_left = -0.0186047 @@ -972,7 +997,7 @@ horizontal_alignment = 1 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer2/TextureRect7"] +[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/fight_attribute/TextureRect7"] layout_mode = 1 anchors_preset = -1 anchor_left = 0.418605 @@ -985,12 +1010,12 @@ horizontal_alignment = 2 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="TextureRect8" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer2"] +[node name="TextureRect8" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/fight_attribute"] layout_mode = 2 texture = ExtResource("10_4vfh3") stretch_mode = 5 -[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer2/TextureRect8"] +[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/fight_attribute/TextureRect8"] layout_mode = 1 anchors_preset = -1 anchor_right = 0.353488 @@ -1004,7 +1029,7 @@ horizontal_alignment = 1 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer2/TextureRect8"] +[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/fight_attribute/TextureRect8"] layout_mode = 1 anchors_preset = -1 anchor_left = 0.418605 @@ -1017,12 +1042,12 @@ horizontal_alignment = 2 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="TextureRect9" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer2"] +[node name="TextureRect9" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/fight_attribute"] layout_mode = 2 texture = ExtResource("10_4vfh3") stretch_mode = 5 -[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer2/TextureRect9"] +[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/fight_attribute/TextureRect9"] layout_mode = 1 anchors_preset = -1 anchor_right = 0.44186 @@ -1036,7 +1061,7 @@ horizontal_alignment = 1 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer2/TextureRect9"] +[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/fight_attribute/TextureRect9"] layout_mode = 1 anchors_preset = -1 anchor_left = 0.418605 @@ -1049,12 +1074,12 @@ horizontal_alignment = 2 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="TextureRect10" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer2"] +[node name="TextureRect10" type="TextureRect" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/fight_attribute"] layout_mode = 2 texture = ExtResource("10_4vfh3") stretch_mode = 5 -[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer2/TextureRect10"] +[node name="Label" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/fight_attribute/TextureRect10"] layout_mode = 1 anchors_preset = -1 anchor_right = 0.567442 @@ -1068,7 +1093,7 @@ horizontal_alignment = 1 vertical_alignment = 1 metadata/_edit_use_anchors_ = true -[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/GridContainer2/TextureRect10"] +[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/basic_mes/VBoxContainer/Panel2/fight_attribute/TextureRect10"] layout_mode = 1 anchors_preset = -1 anchor_left = 0.418605 @@ -1140,7 +1165,8 @@ patch_margin_top = 52 patch_margin_right = 70 patch_margin_bottom = 39 -[node name="GridContainer" type="GridContainer" parent="VBoxContainer/TabContainer/special_ability/VBoxContainer/Panel/VBoxContainer/MarginContainer"] +[node name="special_container" type="GridContainer" parent="VBoxContainer/TabContainer/special_ability/VBoxContainer/Panel/VBoxContainer/MarginContainer"] +unique_name_in_owner = true layout_mode = 2 columns = 4 @@ -1192,6 +1218,106 @@ patch_margin_top = 52 patch_margin_right = 70 patch_margin_bottom = 39 +[node name="ability_container" type="GridContainer" parent="VBoxContainer/TabContainer/special_ability/VBoxContainer/Panel2/VBoxContainer/MarginContainer"] +unique_name_in_owner = true +layout_mode = 2 +columns = 4 + +[node name="interpersonal_relationship" type="MarginContainer" parent="VBoxContainer/TabContainer"] +visible = false +layout_mode = 2 +theme_override_constants/margin_left = 54 +theme_override_constants/margin_top = 8 +theme_override_constants/margin_bottom = 51 +metadata/_tab_index = 2 + +[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/TabContainer/interpersonal_relationship"] +layout_mode = 2 +theme_override_constants/separation = 44 + +[node name="Panel" type="Panel" parent="VBoxContainer/TabContainer/interpersonal_relationship/VBoxContainer"] +layout_mode = 2 +size_flags_vertical = 3 +size_flags_stretch_ratio = 492.0 +theme_override_styles/panel = SubResource("StyleBoxTexture_rlilm") + +[node name="TextureRect" type="TextureRect" parent="VBoxContainer/TabContainer/interpersonal_relationship/VBoxContainer/Panel"] +layout_mode = 0 +offset_top = 1.0 +offset_right = 186.0 +offset_bottom = 74.0 +texture = ExtResource("16_w11hg") +stretch_mode = 5 + +[node name="Label" type="Label" parent="VBoxContainer/TabContainer/interpersonal_relationship/VBoxContainer/Panel/TextureRect"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_font_sizes/font_size = 38 +text = "人物好感" +vertical_alignment = 1 + +[node name="scroll" type="ScrollContainer" parent="VBoxContainer/TabContainer/interpersonal_relationship/VBoxContainer/Panel"] +layout_mode = 0 +anchor_left = 0.087409 +anchor_top = 0.208589 +anchor_right = 0.852237 +anchor_bottom = 0.932515 +horizontal_scroll_mode = 0 +vertical_scroll_mode = 3 +metadata/_edit_use_anchors_ = true + +[node name="favor" type="VBoxContainer" parent="VBoxContainer/TabContainer/interpersonal_relationship/VBoxContainer/Panel/scroll"] +unique_name_in_owner = true +layout_mode = 2 +size_flags_horizontal = 3 +size_flags_vertical = 0 + +[node name="Panel2" type="Panel" parent="VBoxContainer/TabContainer/interpersonal_relationship/VBoxContainer"] +layout_mode = 2 +size_flags_vertical = 3 +size_flags_stretch_ratio = 344.0 +theme_override_styles/panel = SubResource("StyleBoxTexture_5dran") + +[node name="TextureRect" type="TextureRect" parent="VBoxContainer/TabContainer/interpersonal_relationship/VBoxContainer/Panel2"] +offset_top = 5.0 +offset_right = 287.0 +offset_bottom = 78.0 +texture = ExtResource("18_4wxn4") +stretch_mode = 5 + +[node name="Label" type="Label" parent="VBoxContainer/TabContainer/interpersonal_relationship/VBoxContainer/Panel2/TextureRect"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_font_sizes/font_size = 38 +text = "组织地区声望" +vertical_alignment = 1 + +[node name="scroll" type="ScrollContainer" parent="VBoxContainer/TabContainer/interpersonal_relationship/VBoxContainer/Panel2"] +layout_mode = 1 +anchors_preset = -1 +anchor_left = 0.0926119 +anchor_top = 0.306122 +anchor_right = 0.85744 +anchor_bottom = 0.997084 +offset_bottom = 3.05176e-05 +horizontal_scroll_mode = 0 +vertical_scroll_mode = 3 +metadata/_edit_use_anchors_ = true + +[node name="reputation" type="VBoxContainer" parent="VBoxContainer/TabContainer/interpersonal_relationship/VBoxContainer/Panel2/scroll"] +unique_name_in_owner = true +layout_mode = 2 +size_flags_horizontal = 3 +size_flags_vertical = 0 + [node name="TextureRect" type="TextureRect" parent="."] layout_mode = 1 anchors_preset = -1 @@ -1206,6 +1332,7 @@ offset_bottom = 124.28 texture = ExtResource("11_pelkm") [node name="character_name" type="Label" parent="TextureRect"] +unique_name_in_owner = true layout_mode = 1 anchors_preset = -1 anchor_left = 0.0392927