oh-my-git/scenes/notification.tscn

64 lines
1.7 KiB
Text
Raw Permalink Normal View History

[gd_scene load_steps=5 format=2]
2020-12-22 15:38:43 +01:00
2023-09-06 16:04:23 +02:00
[ext_resource path="res://fonts/default.tres" type="FontFile" id=1]
2020-12-22 15:38:43 +01:00
[ext_resource path="res://styles/theme.tres" type="Theme" id=2]
[ext_resource path="res://scenes/notification.gd" type="Script" id=3]
[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
2020-12-22 15:38:43 +01:00
script = ExtResource( 3 )
[node name="Panel" type="Panel" parent="."]
2023-09-06 16:04:23 +02:00
offset_left = 8.0
offset_top = 8.0
offset_right = 492.0
offset_bottom = 170.0
theme = ExtResource( 2 )
2023-09-06 16:04:23 +02:00
theme_override_styles/panel = SubResource( 1 )
2020-12-22 15:38:43 +01:00
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="Panel"]
anchor_right = 1.0
anchor_bottom = 1.0
2023-09-06 16:04:23 +02:00
offset_left = 16.0
offset_top = 13.0
offset_right = -15.0
offset_bottom = -15.0
theme_override_fonts/font = ExtResource( 1 )
2020-12-22 15:38:43 +01:00
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
2023-09-06 16:04:23 +02:00
offset_top = -58.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="OK" type="Button" parent="Panel/CenterContainer"]
2023-09-06 16:04:23 +02:00
offset_left = 202.0
offset_top = 9.0
offset_right = 282.0
offset_bottom = 48.0
focus_mode = 0
focus_mode = 0
text = "Got it!"
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="pressed" from="Panel/CenterContainer/OK" to="." method="confirm"]