Improved world generation, better notifications

This commit is contained in:
Segey Lapin
2019-08-19 04:14:12 +03:00
parent fed6229fb4
commit 005ef6cf6d
6 changed files with 569 additions and 344 deletions

View File

@@ -0,0 +1,5 @@
extends Control
func display_notification(title):
$v/quest_title.text = title
show()

View File

@@ -0,0 +1,48 @@
[gd_scene load_steps=5 format=2]
[ext_resource path="res://fonts/DroidSansFallback.ttf" type="DynamicFontData" id=1]
[ext_resource path="res://ui/quest_complete_notification.gd" type="Script" id=2]
[sub_resource type="DynamicFont" id=1]
size = 35
font_data = ExtResource( 1 )
[sub_resource type="DynamicFont" id=2]
size = 30
font_data = ExtResource( 1 )
[node name="quest_complete_notification" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="v" type="VBoxContainer" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -129.5
margin_top = -45.5
margin_right = 129.5
margin_bottom = 45.5
__meta__ = {
"_edit_use_anchors_": false
}
[node name="msg" type="Label" parent="v"]
margin_right = 259.0
margin_bottom = 47.0
custom_fonts/font = SubResource( 1 )
text = "Quest complete!"
align = 1
[node name="quest_title" type="Label" parent="v"]
margin_top = 51.0
margin_right = 259.0
margin_bottom = 91.0
custom_fonts/font = SubResource( 2 )
text = "quest title"
align = 1