Made basic quest setup
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://cqcs80xsgygeb"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://2q1n6g2kj5er" path="res://prefabs/UI/Quest/QuestLog.tscn" id="1_7u5et"]
|
||||
|
||||
[node name="Book" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="QuestLog" parent="." instance=ExtResource("1_7u5et")]
|
||||
layout_mode = 1
|
||||
offset_left = 247.0
|
||||
offset_top = 72.0
|
||||
offset_right = -205.0
|
||||
offset_bottom = -76.0
|
||||
grow_horizontal = 1
|
||||
grow_vertical = 1
|
||||
@@ -0,0 +1,23 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://1iqqwh7d6xoh"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dwhee40ksubke" path="res://scripts/CSharp/Common/Quest/QuestListItemUi.cs" id="1_svwef"]
|
||||
|
||||
[node name="QuestListItem" type="Control"]
|
||||
custom_minimum_size = Vector2(0, 30)
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_svwef")
|
||||
|
||||
[node name="TitleButton" type="Button" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[connection signal="pressed" from="TitleButton" to="." method="ClickedTitleButton"]
|
||||
@@ -0,0 +1,53 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://2q1n6g2kj5er"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c7ilqe2fmjyvx" path="res://scripts/CSharp/Common/Quest/QuestListUi.cs" id="1_17sli"]
|
||||
[ext_resource type="Script" uid="uid://o1qpo0wdqlw3" path="res://scripts/CSharp/Common/Quest/QuestLog.cs" id="1_vc33n"]
|
||||
[ext_resource type="PackedScene" uid="uid://1iqqwh7d6xoh" path="res://prefabs/UI/Quest/QuestListItem.tscn" id="2_fswdj"]
|
||||
[ext_resource type="Script" uid="uid://b8mywolvj2yq7" path="res://scripts/CSharp/Common/Quest/QuestDescriptionUi.cs" id="4_1vy15"]
|
||||
|
||||
[node name="QuestLog" type="Control"]
|
||||
custom_minimum_size = Vector2(700, 500)
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_right = -452.0
|
||||
offset_bottom = -148.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_vc33n")
|
||||
|
||||
[node name="LeftPage" type="Control" parent="."]
|
||||
layout_mode = 1
|
||||
anchor_bottom = 1.0
|
||||
offset_right = 350.0
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="LeftPage"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_17sli")
|
||||
_questListItemPrefab = ExtResource("2_fswdj")
|
||||
|
||||
[node name="RightPage" type="Control" parent="."]
|
||||
layout_mode = 1
|
||||
anchor_left = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -350.0
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Description" type="RichTextLabel" parent="RightPage"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("4_1vy15")
|
||||
|
||||
[connection signal="DetailQuestChanged" from="." to="RightPage/Description" method="UpdateText"]
|
||||
Reference in New Issue
Block a user