[gd_scene load_steps=7 format=3 uid="uid://5ktmpg8aurb7"] [ext_resource type="Script" path="res://src/Button.gd" id="1_g5mck"] [ext_resource type="Texture2D" uid="uid://xy3hyh74yji4" path="res://GFX/menu/menublack.jpg" id="2_3u0tt"] [ext_resource type="Shader" path="res://shaders/ScreenPosRepeat.gdshader" id="2_x3v1l"] [ext_resource type="Texture2D" uid="uid://bxdd1fe772nkk" path="res://GFX/menu/menuwhite.jpg" id="3_dob50"] [sub_resource type="ShaderMaterial" id="ShaderMaterial_q33ks"] shader = ExtResource("2_x3v1l") shader_parameter/loop_texture = ExtResource("3_dob50") [sub_resource type="ShaderMaterial" id="ShaderMaterial_5txwr"] shader = ExtResource("2_x3v1l") shader_parameter/loop_texture = ExtResource("2_3u0tt") [node name="Button" type="Control"] custom_minimum_size = Vector2(150, 50) layout_mode = 3 anchors_preset = 0 script = ExtResource("1_g5mck") [node name="BackingBorder" type="ColorRect" parent="."] material = SubResource("ShaderMaterial_q33ks") layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 [node name="Background" type="ColorRect" parent="BackingBorder"] material = SubResource("ShaderMaterial_5txwr") layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 [node name="HoverColor" type="ColorRect" parent="."] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = 4.0 offset_top = 4.0 offset_right = -4.0 offset_bottom = -4.0 grow_horizontal = 2 grow_vertical = 2 color = Color(0.117647, 0.117647, 0.117647, 1) [node name="Text" type="Label" parent="."] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 text = "BUTTON_TEXT" horizontal_alignment = 1 vertical_alignment = 1 [node name="HitArea" type="ColorRect" parent="."] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 color = Color(1, 1, 1, 0) [connection signal="resized" from="." to="." method="_on_resized"] [connection signal="gui_input" from="HitArea" to="." method="_on_hit_area_gui_input"] [connection signal="mouse_entered" from="HitArea" to="." method="_on_hit_area_mouse_entered"] [connection signal="mouse_exited" from="HitArea" to="." method="_on_hit_area_mouse_exited"]