brackeys-12/ui/BuildingIcon.tscn
2024-09-15 02:15:37 -04:00

120 lines
3.5 KiB
Text

[gd_scene load_steps=8 format=3 uid="uid://b7o2i7tgirg64"]
[ext_resource type="Script" path="res://ui/building_icon.gd" id="1_6qgij"]
[ext_resource type="Theme" uid="uid://d035h7upxrw3h" path="res://theme.tres" id="1_kp3wm"]
[ext_resource type="Texture2D" uid="uid://clqov5mu3bpaw" path="res://parts/buildings/images/foodprocessing.png" id="2_3vnc8"]
[ext_resource type="PackedScene" uid="uid://dykc1mgg5uopw" path="res://components/Cursor/MouseHandler.tscn" id="3_tf3sl"]
[ext_resource type="Script" path="res://small_wave.gd" id="5_e8eo3"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0bdxp"]
[sub_resource type="RichTextEffect" id="RichTextEffect_erhh0"]
script = ExtResource("5_e8eo3")
[node name="BuildingIcon" type="ColorRect"]
custom_minimum_size = Vector2(32, 32)
offset_right = 32.0
offset_bottom = 32.0
pivot_offset = Vector2(16, 16)
theme = ExtResource("1_kp3wm")
script = ExtResource("1_6qgij")
[node name="TextureRect" type="TextureRect" parent="."]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -8.0
offset_top = -8.0
offset_right = 8.0
offset_bottom = 8.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("2_3vnc8")
[node name="MouseHandler" parent="." instance=ExtResource("3_tf3sl")]
position = Vector2(16, 17)
[node name="CollisionShape2D" type="CollisionShape2D" parent="MouseHandler"]
shape = SubResource("RectangleShape2D_0bdxp")
[node name="ColorRect" type="ColorRect" parent="."]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -42.0
offset_top = -36.0
offset_right = 42.0
offset_bottom = -3.0
grow_horizontal = 2
scale = Vector2(1e-05, 1e-05)
pivot_offset = Vector2(42, 15)
color = Color(0.311223, 0.367304, 0.380485, 0.768627)
[node name="RichTextLabel" type="RichTextLabel" parent="ColorRect"]
modulate = Color(1, 0.85098, 0.776471, 1)
clip_contents = false
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -43.0
offset_top = 2.0
offset_right = 43.0
offset_bottom = 42.0
grow_horizontal = 2
theme_override_constants/outline_size = 3
bbcode_enabled = true
text = "[center]Name"
custom_effects = [SubResource("RichTextEffect_erhh0")]
[node name="RichTextLabel2" type="RichTextLabel" parent="ColorRect"]
clip_contents = false
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -43.0
offset_top = 9.0
offset_right = 43.0
offset_bottom = 49.0
grow_horizontal = 2
theme_override_constants/outline_size = 3
bbcode_enabled = true
text = "[center]This is short text"
[node name="RichTextLabel3" type="RichTextLabel" parent="ColorRect"]
clip_contents = false
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -43.0
offset_top = 16.0
offset_right = 43.0
offset_bottom = 56.0
grow_horizontal = 2
theme_override_constants/outline_size = 3
bbcode_enabled = true
[node name="RichTextLabel4" type="RichTextLabel" parent="ColorRect"]
clip_contents = false
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -43.0
offset_top = 23.0
offset_right = 43.0
offset_bottom = 63.0
grow_horizontal = 2
theme_override_constants/outline_size = 3
bbcode_enabled = true
[connection signal="clicked" from="MouseHandler" to="." method="_on_mouse_handler_clicked"]
[connection signal="hovered" from="MouseHandler" to="." method="_on_mouse_handler_hovered"]
[connection signal="released" from="MouseHandler" to="." method="_on_mouse_handler_released"]
[connection signal="unhovered" from="MouseHandler" to="." method="_on_mouse_handler_unhovered"]