diff --git a/assets/Icons/skillbook.png b/assets/Icons/skillbook.png new file mode 100644 index 0000000..493417b Binary files /dev/null and b/assets/Icons/skillbook.png differ diff --git a/skill_panel.tscn b/skill_panel.tscn index bfe3d5a..b99750e 100644 --- a/skill_panel.tscn +++ b/skill_panel.tscn @@ -1,33 +1,53 @@ -[gd_scene load_steps=2 format=3 uid="uid://skill_panel"] +[gd_scene format=3 uid="uid://skill_panel"] [ext_resource type="Script" path="res://skill_panel.gd" id="1"] +[ext_resource type="Texture2D" path="res://assets/Icons/skillbook.png" id="2_bg"] + +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_1"] [node name="SkillPanel" type="CanvasLayer"] script = ExtResource("1") [node name="Panel" type="Panel" parent="."] -anchors_preset = 0 -offset_left = 250 -offset_top = 100 -offset_right = 530 -offset_bottom = 400 -custom_minimum_size = Vector2(280, 300) +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -220.0 +offset_top = -310.0 +offset_right = 220.0 +offset_bottom = 310.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_styles/panel = SubResource("StyleBoxEmpty_1") + +[node name="BookBackground" type="TextureRect" parent="Panel"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +texture = ExtResource("2_bg") +expand_mode = 1 +stretch_mode = 6 +mouse_filter = 2 [node name="VBoxContainer" type="VBoxContainer" parent="Panel"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 -offset_left = 10 -offset_top = 10 -offset_right = -10 -offset_bottom = -10 +offset_left = 55.0 +offset_top = 60.0 +offset_right = -55.0 +offset_bottom = -70.0 +theme_override_constants/separation = 10 [node name="TitleLabel" type="Label" parent="Panel/VBoxContainer"] layout_mode = 2 text = "Fähigkeiten" horizontal_alignment = 1 -theme_override_font_sizes/font_size = 18 +theme_override_font_sizes/font_size = 20 [node name="HSeparator" type="HSeparator" parent="Panel/VBoxContainer"] layout_mode = 2 @@ -37,7 +57,7 @@ layout_mode = 2 text = "Linksklick + Ziehen auf Aktionsleiste" horizontal_alignment = 1 theme_override_font_sizes/font_size = 10 -modulate = Color(0.7, 0.7, 0.7, 1) +modulate = Color(0.7, 0.6, 0.4, 1) [node name="ScrollContainer" type="ScrollContainer" parent="Panel/VBoxContainer"] layout_mode = 2