move ui to mods
This commit is contained in:
1 parent
a4bbe43f87
commit
502b84f9aa
26 files changed
+1596
-31
No files matched your search
@@ -0,0 +1,26 @@
|
||||
[gd_scene load_steps=2 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://Core/UI/Dialog/AnswerBox.cs" id="1_answerbox"]
|
||||
[ext_resource type="PackedScene" path="res://scenes/ui/answer_item.tscn" id="2_answeritem"]
|
||||
|
||||
[node name="AnswerBox" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_answerbox")
|
||||
itemScene = ExtResource("2_answeritem")
|
||||
content = NodePath("Content")
|
||||
|
||||
[node name="Content" type="VBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchor_left = 0.6
|
||||
anchor_top = 0.35
|
||||
anchor_right = 0.95
|
||||
anchor_bottom = 0.65
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
alignment = 1
|
||||
@@ -0,0 +1,30 @@
|
||||
[gd_scene format=3 uid="uid://bv80qy227xxee"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dbrnsck0vtfb3" path="res://Core/UI/Dialog/AnswerItem.cs" id="1_answeritem"]
|
||||
|
||||
[node name="AnswerItem" type="Control" unique_id=1180917887]
|
||||
custom_minimum_size = Vector2(0, 50)
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 0
|
||||
script = ExtResource("1_answeritem")
|
||||
|
||||
[node name="Button" type="Button" parent="." unique_id=2087954476]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="TextLabel" type="Label" parent="Button" unique_id=1302827224]
|
||||
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 = 22
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
@@ -0,0 +1 @@
|
||||
uid://bv80qy227xxee
|
||||
@@ -0,0 +1,41 @@
|
||||
[gd_scene format=3 uid="uid://bb36m1yaqwt8k"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://de8plnw63lfno" path="res://Core/UI/CharacterPanel/ActionCardBehaviour.cs" id="1_script"]
|
||||
|
||||
[node name="ActionCard" type="Control" unique_id=576160337]
|
||||
custom_minimum_size = Vector2(300, 100)
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 1
|
||||
script = ExtResource("1_script")
|
||||
|
||||
[node name="Icon" type="TextureRect" parent="." unique_id=910618115]
|
||||
custom_minimum_size = Vector2(50, 100)
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_top = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = 4.0
|
||||
offset_top = -14.0
|
||||
offset_right = 32.0
|
||||
offset_bottom = 14.0
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
expand_mode = 2
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="NameLabel" type="Label" parent="." unique_id=1356044091]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 110.0
|
||||
offset_right = -4.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
text = "Action"
|
||||
vertical_alignment = 1
|
||||
@@ -0,0 +1,18 @@
|
||||
[gd_scene format=3 uid="uid://cgjc22lv4w4s5"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cwois2ld152sn" path="res://Core/UI/CharacterPanel/ActionPoolBehaviour.cs" id="1_script"]
|
||||
|
||||
[node name="ActionPool" type="Control" unique_id=1854115493]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
mouse_filter = 1
|
||||
script = ExtResource("1_script")
|
||||
|
||||
[node name="Container" type="VBoxContainer" parent="." unique_id=1312152261]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_constants/separation = 4
|
||||
@@ -0,0 +1,24 @@
|
||||
[gd_scene format=3 uid="uid://b00u0cgcip134"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bfawx4g6dyrjo" path="res://Core/UI/CharacterPanel/ActionSlotBehaviour.cs" id="1_script"]
|
||||
|
||||
[node name="ActionSlot" type="Control" unique_id=1066231859]
|
||||
custom_minimum_size = Vector2(300, 100)
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 1
|
||||
script = ExtResource("1_script")
|
||||
|
||||
[node name="Bg" type="ColorRect" parent="." unique_id=1234999814]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
color = Color(0.1, 0.1, 0.15, 0.5)
|
||||
@@ -0,0 +1,56 @@
|
||||
[gd_scene format=3 uid="uid://67q36mh0x454"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dkioyb2bx5e10" path="res://Core/UI/CharacterPanel/CharacterCardBehaviour.cs" id="1_script"]
|
||||
[ext_resource type="PackedScene" uid="uid://b00u0cgcip134" path="res://scenes/ui/character_panel/action_slot.tscn" id="2_slot"]
|
||||
|
||||
[node name="CharacterCard" type="Control" unique_id=161727493]
|
||||
custom_minimum_size = Vector2(250, 370)
|
||||
layout_mode = 3
|
||||
anchors_preset = 10
|
||||
anchor_right = 1.0
|
||||
grow_horizontal = 2
|
||||
mouse_filter = 1
|
||||
script = ExtResource("1_script")
|
||||
|
||||
[node name="Margin" type="MarginContainer" parent="." unique_id=540453317]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_constants/margin_left = 8
|
||||
theme_override_constants/margin_top = 8
|
||||
theme_override_constants/margin_right = 8
|
||||
theme_override_constants/margin_bottom = 8
|
||||
|
||||
[node name="VBox" type="VBoxContainer" parent="Margin" unique_id=1477867509]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 6
|
||||
|
||||
[node name="Header" type="HBoxContainer" parent="Margin/VBox" unique_id=410961700]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Portrait" type="TextureRect" parent="Margin/VBox/Header" unique_id=427546847]
|
||||
custom_minimum_size = Vector2(60, 60)
|
||||
layout_mode = 2
|
||||
expand_mode = 2
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="NameLabel" type="Label" parent="Margin/VBox/Header" unique_id=604539797]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Character Name"
|
||||
|
||||
[node name="Slots" type="VBoxContainer" parent="Margin/VBox" unique_id=2066648023]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 4
|
||||
|
||||
[node name="Slot0" parent="Margin/VBox/Slots" unique_id=592809057 instance=ExtResource("2_slot")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Slot1" parent="Margin/VBox/Slots" unique_id=424670098 instance=ExtResource("2_slot")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Slot2" parent="Margin/VBox/Slots" unique_id=1790943736 instance=ExtResource("2_slot")]
|
||||
layout_mode = 2
|
||||
@@ -0,0 +1,120 @@
|
||||
[gd_scene format=3 uid="uid://boo65s3v3vn2c"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b60voxni8jut4" path="res://Core/UI/CharacterPanel/CharacterPanelBehaviour.cs" id="1_script"]
|
||||
[ext_resource type="PackedScene" uid="uid://cgjc22lv4w4s5" path="res://scenes/ui/character_panel/action_pool.tscn" id="2_pool"]
|
||||
|
||||
[node name="CharacterPanel" type="Control" unique_id=2003172289]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 1
|
||||
script = ExtResource("1_script")
|
||||
|
||||
[node name="Bg" type="ColorRect" parent="." unique_id=538790315]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
color = Color(0.05, 0.05, 0.1, 0.9)
|
||||
|
||||
[node name="LeftPanel" type="Panel" parent="." unique_id=582936654]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_right = 0.68700004
|
||||
anchor_bottom = 1.0
|
||||
offset_right = 0.95996094
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="LeftVBox" type="VBoxContainer" parent="LeftPanel" unique_id=927965975]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Title" type="Label" parent="LeftPanel/LeftVBox" unique_id=1322979441]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 18
|
||||
text = "ui/character_panel/title"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="ScrollContainer" type="ScrollContainer" parent="LeftPanel/LeftVBox" unique_id=649910277]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
horizontal_scroll_mode = 0
|
||||
|
||||
[node name="CharactersContainer" type="VBoxContainer" parent="LeftPanel/LeftVBox/ScrollContainer" unique_id=15539617]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_constants/separation = 10
|
||||
|
||||
[node name="RightPanel" type="Panel" parent="." unique_id=94541911]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.69500005
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 0.91800004
|
||||
offset_left = 0.5998535
|
||||
offset_bottom = -0.032043457
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="ActionPoolScroll" type="ScrollContainer" parent="RightPanel" unique_id=1837472944]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
horizontal_scroll_mode = 0
|
||||
|
||||
[node name="ActionPool" parent="RightPanel/ActionPoolScroll" unique_id=2092045870 instance=ExtResource("2_pool")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="CloseButton" type="Button" parent="." unique_id=140259217]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.697
|
||||
anchor_top = 0.94100004
|
||||
anchor_right = 0.85
|
||||
anchor_bottom = 0.9850001
|
||||
offset_left = -0.23999023
|
||||
offset_top = 0.4159546
|
||||
offset_bottom = 0.35992432
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
text = "ui/character_panel/close"
|
||||
|
||||
[node name="ResetButton" type="Button" parent="." unique_id=73911922]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.855
|
||||
anchor_top = 0.94100004
|
||||
anchor_right = 0.99300003
|
||||
anchor_bottom = 0.9850001
|
||||
offset_left = 0.39990234
|
||||
offset_top = 0.4159546
|
||||
offset_right = 0.4399414
|
||||
offset_bottom = 0.35992432
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
text = "ui/character_panel/reset"
|
||||
|
||||
[node name="DragLayer" type="Control" parent="." unique_id=1296303852]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
@@ -0,0 +1,107 @@
|
||||
[gd_scene format=3 uid="uid://b8vnxfoixyust"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b41bti3wq4m88" path="res://Core/UI/Dialog/DialogBox.cs" id="1_dialogbox"]
|
||||
[ext_resource type="PackedScene" path="res://scenes/ui/answer_box.tscn" id="2_answerbox"]
|
||||
|
||||
[node name="DialogBox" type="Control" unique_id=702809053 node_paths=PackedStringArray("textField", "titleField", "titleBody", "firstAvatar", "secondAvatar")]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_dialogbox")
|
||||
answerBoxScene = ExtResource("2_answerbox")
|
||||
textField = NodePath("DialogBody/TextField")
|
||||
titleField = NodePath("TitleBody/TitleField")
|
||||
titleBody = NodePath("TitleBody")
|
||||
firstAvatar = NodePath("FirstAvatar")
|
||||
secondAvatar = NodePath("SecondAvatar")
|
||||
|
||||
[node name="DialogBody" type="ColorRect" parent="." unique_id=1510369637]
|
||||
layout_mode = 1
|
||||
anchors_preset = 12
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = -300.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
color = Color(0, 0, 0, 0.85)
|
||||
|
||||
[node name="TextField" type="Label" parent="DialogBody" unique_id=2065569930]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 20.0
|
||||
offset_top = 10.0
|
||||
offset_right = -20.0
|
||||
offset_bottom = -10.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_font_sizes/font_size = 24
|
||||
vertical_alignment = 1
|
||||
autowrap_mode = 2
|
||||
|
||||
[node name="FirstAvatar" type="TextureRect" parent="." unique_id=1696535122]
|
||||
visible = false
|
||||
texture_filter = 1
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_top = 0.6
|
||||
anchor_right = 0.13
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 90.0
|
||||
offset_top = -300.0
|
||||
offset_right = 90.0
|
||||
offset_bottom = -300.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
expand_mode = 1
|
||||
stretch_mode = 4
|
||||
|
||||
[node name="SecondAvatar" type="TextureRect" parent="." unique_id=1913233391]
|
||||
visible = false
|
||||
texture_filter = 1
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.87
|
||||
anchor_top = 0.6
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -90.0
|
||||
offset_top = -300.0
|
||||
offset_right = -90.0
|
||||
offset_bottom = -300.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
expand_mode = 1
|
||||
stretch_mode = 4
|
||||
|
||||
[node name="TitleBody" type="Control" parent="." unique_id=1986161675]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -400.0
|
||||
offset_top = -60.0
|
||||
offset_right = 400.0
|
||||
offset_bottom = 60.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="TitleField" type="Label" parent="TitleBody" unique_id=2046072321]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = -0.5
|
||||
anchor_right = 1.5
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_font_sizes/font_size = 28
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
@@ -0,0 +1 @@
|
||||
uid://b8vnxfoixyust
|
||||
@@ -0,0 +1,38 @@
|
||||
[gd_scene format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://Core/UI/Inventory/InventoryItemBehaviour.cs" id="1"]
|
||||
|
||||
[node name="InventoryItem" type="Control" node_paths=PackedStringArray("imgIcon", "txtCount")]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
script = ExtResource("1")
|
||||
imgIcon = NodePath("imgIcon")
|
||||
txtCount = NodePath("txtCount")
|
||||
|
||||
[node name="imgIcon" type="TextureRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
expand_mode = 1
|
||||
stretch_mode = 4
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="txtCount" type="Label" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.6
|
||||
anchor_top = 0.7
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
theme_override_font_sizes/font_size = 14
|
||||
horizontal_alignment = 2
|
||||
vertical_alignment = 1
|
||||
mouse_filter = 2
|
||||
text = ""
|
||||
@@ -0,0 +1,13 @@
|
||||
[gd_scene format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://Core/UI/Inventory/InventoryPanelBehaviour.cs" id="1_script"]
|
||||
|
||||
[node name="InventoryPanel" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 1
|
||||
script = ExtResource("1_script")
|
||||
@@ -0,0 +1,13 @@
|
||||
[gd_scene format=3]
|
||||
|
||||
[ext_resource type="Script" uid="uid://djf3cf86eikq5" path="res://Core/UI/Tool/MapWidget.cs" id="1_script"]
|
||||
|
||||
[node name="MapWidget" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 1
|
||||
script = ExtResource("1_script")
|
||||
@@ -0,0 +1,17 @@
|
||||
[gd_scene format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://Core/UI/Messages/UiMessage.cs" id="1_msg"]
|
||||
|
||||
[node name="Message" type="Control" node_paths=PackedStringArray("textField")]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
script = ExtResource("1_msg")
|
||||
textField = NodePath("Label")
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 0.0
|
||||
offset_top = 0.0
|
||||
offset_right = 0.0
|
||||
offset_bottom = 0.0
|
||||
text = ""
|
||||
@@ -0,0 +1,13 @@
|
||||
[gd_scene format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://Core/UI/Quests/QuestJournalBehaviour.cs" id="1_script"]
|
||||
|
||||
[node name="QuestJournal" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 1
|
||||
script = ExtResource("1_script")
|
||||
@@ -0,0 +1,69 @@
|
||||
[gd_scene format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://Core/Skills/SkillCardBehaviour.cs" id="1_script"]
|
||||
[ext_resource type="Script" path="res://Core/Skills/SkillCardFrameBehaviour.cs" id="2_frame_script"]
|
||||
|
||||
[node name="SkillCard" type="Control"]
|
||||
custom_minimum_size = Vector2(160, 210)
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 1
|
||||
script = ExtResource("1_script")
|
||||
frame = NodePath("Frame")
|
||||
txtName = NodePath("TxtName")
|
||||
imgCard = NodePath("ImgCard")
|
||||
|
||||
[node name="Frame" type="Control" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
script = ExtResource("2_frame_script")
|
||||
img = NodePath("FrameImg")
|
||||
|
||||
[node name="FrameImg" type="TextureRect" parent="Frame"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
expand_mode = 3
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="ImgCard" type="TextureRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.08
|
||||
anchor_top = 0.05
|
||||
anchor_right = 0.92
|
||||
anchor_bottom = 0.75
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
expand_mode = 2
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="TxtName" type="Label" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.05
|
||||
anchor_top = 0.78
|
||||
anchor_right = 0.95
|
||||
anchor_bottom = 0.98
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
theme_override_font_sizes/font_size = 12
|
||||
text = ""
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
autowrap_mode = 1
|
||||
@@ -0,0 +1,159 @@
|
||||
[gd_scene format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://Core/UI/SkillsPanel/SkillsPanelBehaviour.cs" id="1_script"]
|
||||
|
||||
[node name="SkillsPanel" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 1
|
||||
script = ExtResource("1_script")
|
||||
|
||||
[node name="Bg" type="ColorRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
color = Color(0.05, 0.05, 0.1, 0.9)
|
||||
|
||||
[node name="Title" type="Label" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_right = 1.0
|
||||
offset_left = 20.0
|
||||
offset_top = 10.0
|
||||
offset_right = -20.0
|
||||
offset_bottom = 40.0
|
||||
grow_horizontal = 2
|
||||
theme_override_font_sizes/font_size = 22
|
||||
text = "Skills"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="ScrollContainer" type="ScrollContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 20.0
|
||||
offset_top = 50.0
|
||||
offset_right = -20.0
|
||||
offset_bottom = -60.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
horizontal_scroll_mode = 0
|
||||
|
||||
[node name="GridContent" type="Control" parent="ScrollContainer"]
|
||||
layout_mode = 2
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="ClosePanel" type="Panel" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.85
|
||||
anchor_top = 0.94
|
||||
anchor_right = 0.99
|
||||
anchor_bottom = 0.99
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="CloseButton" type="Button" parent="ClosePanel"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
text = "Close"
|
||||
|
||||
[node name="ExpandedOverlay" type="Control" parent="."]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 1
|
||||
|
||||
[node name="ExpandedBg" type="ColorRect" parent="ExpandedOverlay"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
color = Color(0, 0, 0, 0.9)
|
||||
|
||||
[node name="ExpandedFrameImg" type="TextureRect" parent="ExpandedOverlay"]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.1
|
||||
anchor_top = 0.1
|
||||
anchor_right = 0.9
|
||||
anchor_bottom = 0.9
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
expand_mode = 3
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="ExpandedImage" type="TextureRect" parent="ExpandedOverlay"]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.15
|
||||
anchor_top = 0.15
|
||||
anchor_right = 0.85
|
||||
anchor_bottom = 0.85
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
expand_mode = 2
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="ExpandedName" type="Label" parent="ExpandedOverlay"]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.15
|
||||
anchor_bottom = 1.0
|
||||
offset_top = -40.0
|
||||
offset_right = -20.0
|
||||
offset_bottom = -14.0
|
||||
grow_horizontal = 2
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = ""
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="DescriptionBg" type="ColorRect" parent="ExpandedOverlay"]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_top = 0.75
|
||||
anchor_right = 0.35
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 1
|
||||
color = Color(0.05, 0.05, 0.1, 0.85)
|
||||
|
||||
[node name="DescriptionLabel" type="RichTextLabel" parent="ExpandedOverlay/DescriptionBg"]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 12.0
|
||||
offset_top = 12.0
|
||||
offset_right = -12.0
|
||||
offset_bottom = -12.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
bbcode_enabled = true
|
||||
fit_content = true
|
||||
scroll_active = false
|
||||
Reference in new issue
Block a user