Extend the hint system to explain GUI elements

This commit is contained in:
blinry 2021-01-19 12:48:16 +01:00
parent d258f812ce
commit e87e29a3ed
9 changed files with 83 additions and 28 deletions

View file

@ -1,33 +1,61 @@
[gd_scene load_steps=4 format=2]
[gd_scene load_steps=5 format=2]
[ext_resource path="res://fonts/default.tres" type="DynamicFont" id=1]
[ext_resource path="res://styles/theme.tres" type="Theme" id=2]
[ext_resource path="res://scenes/notification.gd" type="Script" id=3]
[node name="Notification" type="PopupPanel"]
visible = true
margin_left = 16.0
margin_top = 16.0
margin_right = 369.0
margin_bottom = 212.0
theme = ExtResource( 2 )
[sub_resource type="StyleBoxFlat" id=1]
bg_color = Color( 0.0431373, 0.368627, 0.141176, 0.843137 )
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
[node name="Notification" type="Node2D"]
z_index = 4096
script = ExtResource( 3 )
[node name="Panel" type="Panel" parent="."]
margin_left = 8.0
margin_top = 8.0
margin_right = 492.0
margin_bottom = 170.0
theme = ExtResource( 2 )
custom_styles/panel = SubResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="."]
anchor_left = 0.045
anchor_top = 0.082
anchor_right = 0.955
anchor_bottom = 0.918
margin_left = 0.115
margin_top = -0.0720005
margin_right = -0.115021
margin_bottom = 0.071991
[node name="Label" type="Label" parent="Panel"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 16.0
margin_top = 13.0
margin_right = -15.0
margin_bottom = -15.0
custom_fonts/font = ExtResource( 1 )
text = "This is a hint! This is a hint! This is a hint! This is a hint! This is a hint! This is a hint! This is a hint! This is a hint! This is a hint!"
autowrap = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="CenterContainer" type="CenterContainer" parent="Panel"]
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_top = -58.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="OK" type="Button" parent="Panel/CenterContainer"]
margin_left = 202.0
margin_top = 9.0
margin_right = 282.0
margin_bottom = 48.0
text = "Got it!"
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="pressed" from="Panel/CenterContainer/OK" to="." method="confirm"]