Exit.tscn 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. [gd_scene load_steps=9 format=2]
  2. [ext_resource path="res://addons/transit/Transit.tscn" type="PackedScene" id=1]
  3. [ext_resource path="res://assets/GUI/transparent.png" type="Texture" id=2]
  4. [ext_resource path="res://assets/GUI/ExitDialog/escapevyhod.png" type="Texture" id=3]
  5. [ext_resource path="res://addons/exit/Exit.gd" type="Script" id=4]
  6. [ext_resource path="res://assets/GUI/ExitDialog/select.png" type="Texture" id=5]
  7. [sub_resource type="GDScript" id=1]
  8. [sub_resource type="Shader" id=2]
  9. code = "shader_type canvas_item;
  10. uniform float lod: hint_range(0.0, 5) = 1.0;
  11. void fragment(){
  12. vec4 color = texture(SCREEN_TEXTURE, SCREEN_UV, lod);
  13. COLOR = color;
  14. }"
  15. script = SubResource( 1 )
  16. [sub_resource type="ShaderMaterial" id=3]
  17. shader = SubResource( 2 )
  18. shader_param/lod = 1.0
  19. [node name="ExitDialog" type="Node2D"]
  20. script = ExtResource( 4 )
  21. [node name="Transit" parent="." instance=ExtResource( 1 )]
  22. margin_left = 6.0
  23. margin_top = -3.0
  24. margin_right = 1008.0
  25. margin_bottom = 571.0
  26. [node name="Overlay" type="CanvasLayer" parent="."]
  27. layer = -100
  28. [node name="Popup" type="Popup" parent="Overlay"]
  29. margin_right = 1000.0
  30. margin_bottom = 574.0
  31. rect_scale = Vector2( 1.9, 1.9 )
  32. __meta__ = {
  33. "_edit_use_anchors_": false
  34. }
  35. [node name="Blur" type="Sprite" parent="Overlay/Popup"]
  36. material = SubResource( 3 )
  37. position = Vector2( 513.692, 301.648 )
  38. scale = Vector2( 5.43612, 5.57556 )
  39. texture = ExtResource( 2 )
  40. [node name="Background" type="Button" parent="Overlay/Popup"]
  41. visible = false
  42. margin_top = -3.0
  43. margin_right = 2026.0
  44. margin_bottom = 1140.0
  45. rect_scale = Vector2( 0.5, 0.5 )
  46. focus_mode = 0
  47. enabled_focus_mode = 0
  48. flat = true
  49. __meta__ = {
  50. "_edit_use_anchors_": false
  51. }
  52. [node name="MessageBox" type="Sprite" parent="Overlay/Popup"]
  53. position = Vector2( 496.71, 285.188 )
  54. scale = Vector2( 7.00002, 7 )
  55. texture = ExtResource( 3 )
  56. [node name="YesButton" type="Button" parent="Overlay/Popup"]
  57. margin_left = 452.0
  58. margin_top = 246.0
  59. margin_right = 632.0
  60. margin_bottom = 372.0
  61. rect_scale = Vector2( 0.5, 0.5 )
  62. focus_mode = 0
  63. enabled_focus_mode = 0
  64. flat = true
  65. __meta__ = {
  66. "_edit_use_anchors_": false
  67. }
  68. [node name="selected" type="Sprite" parent="Overlay/Popup/YesButton"]
  69. position = Vector2( 89.3462, 78.8807 )
  70. scale = Vector2( 13.9894, 14.3077 )
  71. texture = ExtResource( 5 )
  72. [node name="NoButton" type="Button" parent="Overlay/Popup"]
  73. margin_left = 444.0
  74. margin_top = 316.0
  75. margin_right = 653.0
  76. margin_bottom = 443.0
  77. rect_scale = Vector2( 0.5, 0.5 )
  78. focus_mode = 0
  79. enabled_focus_mode = 0
  80. flat = true
  81. __meta__ = {
  82. "_edit_use_anchors_": false
  83. }
  84. [node name="selected" type="Sprite" parent="Overlay/Popup/NoButton"]
  85. visible = false
  86. position = Vector2( 105.108, 64.8155 )
  87. scale = Vector2( 13.9894, 14.3077 )
  88. texture = ExtResource( 5 )
  89. [connection signal="pressed" from="Overlay/Popup/Background" to="." method="_on_Background_pressed"]
  90. [connection signal="mouse_entered" from="Overlay/Popup/YesButton" to="." method="_on_YesButton_mouse_entered"]
  91. [connection signal="pressed" from="Overlay/Popup/YesButton" to="." method="_on_YesButton_pressed"]
  92. [connection signal="mouse_entered" from="Overlay/Popup/NoButton" to="." method="_on_NoButton_mouse_entered"]
  93. [connection signal="pressed" from="Overlay/Popup/NoButton" to="." method="_on_NoButton_pressed"]