summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Tuomi <jan.tuomi@valuemotive.com>2020-08-09 11:31:16 +0300
committerJan Tuomi <jan.tuomi@valuemotive.com>2020-08-09 11:31:16 +0300
commit1119130621fe5bbc048fb8404263acc65490d0cd (patch)
treea7f8fee21e688033c06d45b59eb2e2881afb4320
parent5718149342cd9f81f37bd9077aa8fff272c61e9b (diff)
Add background to next button
-rw-r--r--scenes/GUI.tscn26
1 files changed, 18 insertions, 8 deletions
diff --git a/scenes/GUI.tscn b/scenes/GUI.tscn
index 63cfda8..46ad35e 100644
--- a/scenes/GUI.tscn
+++ b/scenes/GUI.tscn
@@ -1,7 +1,15 @@
-[gd_scene load_steps=2 format=2]
+[gd_scene load_steps=4 format=2]
[ext_resource path="res://scripts/GUI.gd" type="Script" id=1]
+[sub_resource type="Gradient" id=1]
+offsets = PoolRealArray( 0 )
+colors = PoolColorArray( 0.458824, 0.0470588, 0.501961, 1 )
+
+[sub_resource type="GradientTexture" id=2]
+gradient = SubResource( 1 )
+width = 40
+
[node name="GUI" type="MarginContainer"]
anchor_right = 1.0
anchor_bottom = 1.0
@@ -62,18 +70,20 @@ __meta__ = {
}
[node name="NextButton" type="TextureButton" parent="BottomRow/DialogueBox"]
-margin_left = 920.0
-margin_right = 960.0
-margin_bottom = 40.0
+anchor_left = 0.95
+anchor_right = 0.95
+margin_top = 10.0
+margin_bottom = 10.0
+rect_min_size = Vector2( 40, 20 )
+texture_normal = SubResource( 2 )
+expand = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="BottomRow/DialogueBox/NextButton"]
-anchor_top = 0.2
-anchor_bottom = 0.4
-margin_right = 40.0
-margin_bottom = 14.0
+margin_left = 12.0
+margin_top = 3.0
text = ">>"
valign = 1
[connection signal="pressed" from="BottomRow/DialogueBox/NextButton" to="." method="_on_NextButton_pressed"]