Update level scene to include touch screens
parent
62c8857f05
commit
6a3b448418
|
@ -1,9 +1,10 @@
|
|||
[gd_scene load_steps=10 format=2]
|
||||
[gd_scene load_steps=11 format=2]
|
||||
|
||||
[ext_resource path="res://Images/Grass Block.png" type="Texture" id=1]
|
||||
[ext_resource path="res://char/PLV.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://main_menu.gd" type="Script" id=3]
|
||||
[ext_resource path="res://Fonts/Arimo-Bold.ttf" type="DynamicFontData" id=4]
|
||||
[ext_resource path="res://touch.tscn" type="PackedScene" id=5]
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=2]
|
||||
points = PoolVector2Array( 0, 0, 112, 0.609558, 111.528, 65.7137, 0, 66 )
|
||||
|
@ -62,6 +63,20 @@ margin_right = 130.0
|
|||
margin_bottom = 59.0
|
||||
text = "| |"
|
||||
|
||||
[node name="Button2" type="Button" parent="."]
|
||||
margin_left = 176.0
|
||||
margin_top = 18.0
|
||||
margin_right = 253.0
|
||||
margin_bottom = 59.0
|
||||
text = "Touch Mode"
|
||||
|
||||
[node name="Button3" type="Button" parent="."]
|
||||
margin_left = 293.0
|
||||
margin_top = 18.0
|
||||
margin_right = 383.0
|
||||
margin_bottom = 59.0
|
||||
text = "Not touch"
|
||||
|
||||
[node name="WindowDialog" type="WindowDialog" parent="."]
|
||||
margin_left = 293.0
|
||||
margin_top = 190.0
|
||||
|
@ -93,6 +108,13 @@ margin_bottom = 104.0
|
|||
custom_fonts/normal_font = SubResource( 5 )
|
||||
text = "Are you sure you wanna leave?"
|
||||
|
||||
[node name="touch_juan" parent="." instance=ExtResource( 5 )]
|
||||
visible = false
|
||||
|
||||
[connection signal="pressed" from="Button" to="." method="_on_Popup_pressed"]
|
||||
[connection signal="pressed" from="Button2" to="." method="_on_touch_pressed"]
|
||||
[connection signal="toggled" from="Button2" to="." method="_on_Button2_toggled"]
|
||||
[connection signal="pressed" from="Button3" to="." method="_on_touchnot_pressed"]
|
||||
[connection signal="pressed" from="WindowDialog/Button2" to="." method="_on_Back_pressed"]
|
||||
[connection signal="pressed" from="WindowDialog/Button3" to="." method="_on_Nope_pressed"]
|
||||
[connection signal="hide" from="touch_juan" to="." method="_on_touch_juan_hide"]
|
||||
|
|
Loading…
Reference in New Issue