mirror of
https://github.com/tonytins/citylimits
synced 2025-06-26 01:44:42 -04:00
Json-based dialog
- Json-based dialog using code from the JRPG demo - Moved advisor scenes to their own directory - Year now has a "Y" prefix - Docs directory
This commit is contained in:
parent
80adf6b1d5
commit
addbf91a36
8 changed files with 227 additions and 99 deletions
54
scenes/advisors/Advise.tscn
Normal file
54
scenes/advisors/Advise.tscn
Normal file
|
@ -0,0 +1,54 @@
|
|||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://sprites/avatars/zc.png" type="Texture" id=1]
|
||||
[ext_resource path="res://scripts/Adviser.gd" type="Script" id=2]
|
||||
|
||||
[node name="AdvsiorNotice" type="AcceptDialog"]
|
||||
anchor_left = 0.293945
|
||||
anchor_top = 0.303333
|
||||
anchor_right = 0.706055
|
||||
anchor_bottom = 0.696667
|
||||
script = ExtResource( 2 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": true
|
||||
}
|
||||
dialogue_file = "res://dialog/cityplanner.json"
|
||||
advisor_name = "Zack Casey"
|
||||
rank = "City Planner"
|
||||
avatar = ExtResource( 1 )
|
||||
|
||||
[node name="Container" type="HSplitContainer" parent="."]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = 8.0
|
||||
margin_top = 8.0
|
||||
margin_right = -8.0
|
||||
margin_bottom = -36.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Advisor" type="VBoxContainer" parent="Container"]
|
||||
margin_right = 100.0
|
||||
margin_bottom = 192.0
|
||||
|
||||
[node name="Avatar" type="TextureRect" parent="Container/Advisor"]
|
||||
margin_right = 100.0
|
||||
rect_min_size = Vector2( 100, 0 )
|
||||
|
||||
[node name="RankLbl" type="Label" parent="Container/Advisor"]
|
||||
margin_top = 4.0
|
||||
margin_right = 100.0
|
||||
margin_bottom = 18.0
|
||||
align = 1
|
||||
|
||||
[node name="NameLbl" type="Label" parent="Container/Advisor"]
|
||||
margin_top = 22.0
|
||||
margin_right = 100.0
|
||||
margin_bottom = 36.0
|
||||
align = 1
|
||||
|
||||
[node name="DescriptionLbl" type="RichTextLabel" parent="Container"]
|
||||
margin_left = 112.0
|
||||
margin_right = 406.0
|
||||
margin_bottom = 192.0
|
Loading…
Add table
Add a link
Reference in a new issue