added verdant hills lore

This commit is contained in:
pennyrigate 2023-04-13 13:27:24 -04:00
parent 463014f22e
commit 4d59717b88
12 changed files with 216 additions and 23 deletions

View file

@ -1,11 +1,18 @@
extends CanvasLayer
var lore_entry: PackedScene = null
onready var options_screen = $OptionsScreen
onready var lore_container = $LoreContainer
# Called when the node enters the scene tree for the first time.
func _ready():
get_tree().paused = true
$Body/Resume.grab_focus()
#Random lore
if lore_entry != null:
var lore = lore_entry.instance()
lore_container.add_child(lore)
func _physics_process(delta):
#Resume with pause button

View file

@ -10,14 +10,14 @@
[node name="PauseScreen" type="CanvasLayer"]
pause_mode = 2
layer = 100
layer = 110
script = ExtResource( 4 )
[node name="Border" type="NinePatchRect" parent="."]
margin_left = 64.0
margin_top = 69.0
margin_top = 25.0
margin_right = 192.0
margin_bottom = 123.0
margin_bottom = 79.0
texture = ExtResource( 8 )
patch_margin_left = 3
patch_margin_top = 3
@ -27,18 +27,18 @@ patch_margin_bottom = 3
[node name="ColorRect" type="ColorRect" parent="."]
pause_mode = 2
margin_left = 67.0
margin_top = 72.0
margin_top = 28.0
margin_right = 189.0
margin_bottom = 120.0
margin_bottom = 76.0
color = Color( 0.239216, 0.239216, 0.443137, 1 )
[node name="Paused" type="Label" parent="."]
pause_mode = 2
material = ExtResource( 6 )
margin_left = 64.0
margin_top = 56.0
margin_top = 12.0
margin_right = 192.0
margin_bottom = 70.0
margin_bottom = 26.0
theme = ExtResource( 5 )
text = "PAUSED!"
align = 1
@ -46,9 +46,9 @@ align = 1
[node name="Body" type="Label" parent="."]
pause_mode = 2
margin_left = 64.0
margin_top = 74.0
margin_top = 30.0
margin_right = 192.0
margin_bottom = 120.0
margin_bottom = 76.0
theme = ExtResource( 2 )
text = "RESUME
RESTART
@ -97,6 +97,14 @@ texture_focused = ExtResource( 3 )
[node name="OptionsScreen" parent="." instance=ExtResource( 7 )]
visible = false
[node name="LoreContainer" type="MarginContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 8.0
margin_top = 84.0
margin_right = -8.0
margin_bottom = -14.0
[connection signal="pressed" from="Body/Resume" to="." method="_on_Resume_pressed"]
[connection signal="pressed" from="Body/Restart" to="." method="_on_Restart_pressed"]
[connection signal="pressed" from="Body/Settings" to="." method="_on_Settings_pressed"]