49 lines
1.6 KiB
Plaintext
49 lines
1.6 KiB
Plaintext
[gd_scene load_steps=10 format=3 uid="uid://gh3wqymu7cub"]
|
|
|
|
[ext_resource type="Script" uid="uid://dhqqyf2pd1scs" path="res://scenes/эмс/кнопка-эмс.gd" id="1_pmsh3"]
|
|
[ext_resource type="Texture2D" uid="uid://nfpish471rjj" path="res://data/кнопка-эмс-1.png" id="2_0o537"]
|
|
[ext_resource type="Texture2D" uid="uid://bvxv33noium2h" path="res://data/кнопка-эмс-0.png" id="3_okiyh"]
|
|
|
|
[sub_resource type="StyleBoxEmpty" id="1"]
|
|
|
|
[sub_resource type="StyleBoxEmpty" id="4"]
|
|
|
|
[sub_resource type="StyleBoxEmpty" id="5"]
|
|
|
|
[sub_resource type="StyleBoxEmpty" id="2"]
|
|
|
|
[sub_resource type="StyleBoxEmpty" id="3"]
|
|
|
|
[sub_resource type="StyleBoxEmpty" id="6"]
|
|
|
|
[node name="container" type="PanelContainer"]
|
|
offset_right = 23.0
|
|
offset_bottom = 19.0
|
|
theme_override_styles/panel = SubResource("1")
|
|
script = ExtResource("1_pmsh3")
|
|
texture_state0 = ExtResource("2_0o537")
|
|
texture_state1 = ExtResource("3_okiyh")
|
|
toggle_mode = true
|
|
|
|
[node name="state" type="NinePatchRect" parent="."]
|
|
show_behind_parent = true
|
|
layout_mode = 2
|
|
texture = ExtResource("3_okiyh")
|
|
region_rect = Rect2(3, 2, 22, 18)
|
|
|
|
[node name="button" type="Button" parent="."]
|
|
layout_mode = 2
|
|
theme_override_styles/focus = SubResource("4")
|
|
theme_override_styles/disabled = SubResource("5")
|
|
theme_override_styles/hover = SubResource("2")
|
|
theme_override_styles/pressed = SubResource("3")
|
|
theme_override_styles/normal = SubResource("6")
|
|
toggle_mode = true
|
|
clip_text = true
|
|
|
|
[node name="label" type="Label" parent="."]
|
|
layout_mode = 2
|
|
|
|
[connection signal="mouse_entered" from="button" to="." method="_on_button_mouse_entered"]
|
|
[connection signal="toggled" from="button" to="." method="_on_button_toggled"]
|