mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-23 17:17:31 -04:00
87 lines
2.2 KiB
Text
87 lines
2.2 KiB
Text
[gd_scene load_steps=7 format=3 uid="uid://m622v03jydnq"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/ui/hint.gd" id="1_mhnl1"]
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_7wdcy"]
|
|
bg_color = Color(0.22, 0.22, 0.22, 0.631373)
|
|
border_width_left = 2
|
|
border_width_top = 2
|
|
border_width_right = 2
|
|
border_width_bottom = 2
|
|
border_color = Color(1, 1, 0, 1)
|
|
corner_radius_top_left = 20
|
|
corner_radius_top_right = 20
|
|
corner_radius_bottom_right = 20
|
|
corner_radius_bottom_left = 20
|
|
|
|
[sub_resource type="LabelSettings" id="LabelSettings_8td41"]
|
|
|
|
[sub_resource type="Animation" id="Animation_tul52"]
|
|
resource_name = "Hint"
|
|
step = 0.05
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("AnimRoot:position")
|
|
tracks/0/interp = 2
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.25, 0.5, 0.75, 1),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
|
|
"update": 0,
|
|
"values": [Vector2(0, 0), Vector2(0, -20), Vector2(0, 0), Vector2(0, -20), Vector2(0, 0)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_a1w2o"]
|
|
length = 0.001
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_l0m26"]
|
|
_data = {
|
|
"Bounce": SubResource("Animation_tul52"),
|
|
"RESET": SubResource("Animation_a1w2o")
|
|
}
|
|
|
|
[node name="Hint" type="Control"]
|
|
custom_minimum_size = Vector2(150, 50)
|
|
layout_mode = 3
|
|
anchors_preset = 5
|
|
anchor_left = 0.5
|
|
anchor_right = 0.5
|
|
offset_left = -75.0
|
|
offset_top = -70.0
|
|
offset_right = 75.0
|
|
offset_bottom = -20.0
|
|
grow_horizontal = 2
|
|
script = ExtResource("1_mhnl1")
|
|
|
|
[node name="AnimRoot" type="Control" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="Background" type="Panel" parent="AnimRoot"]
|
|
layout_mode = 0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_7wdcy")
|
|
|
|
[node name="Label" type="Label" parent="AnimRoot"]
|
|
layout_mode = 0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
text = "type your hint"
|
|
label_settings = SubResource("LabelSettings_8td41")
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_l0m26")
|
|
}
|