Initial commit
This commit is contained in:
71
scenes/misc/UI.tscn
Normal file
71
scenes/misc/UI.tscn
Normal file
@@ -0,0 +1,71 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://deqgnj30xx13t"]
|
||||
|
||||
[ext_resource type="PackedScene" path="res://scenes/misc/Dialog_box.tscn" id="1"]
|
||||
[ext_resource type="PackedScene" path="res://scenes/misc/Stats.tscn" id="2"]
|
||||
[ext_resource type="PackedScene" uid="uid://iu0aegkhj8po" path="res://scenes/misc/StatusText.tscn" id="3"]
|
||||
[ext_resource type="PackedScene" path="res://scenes/misc/Healthbar.tscn" id="4"]
|
||||
[ext_resource type="Script" path="res://scenes/misc/TouchInterface.gd" id="7"]
|
||||
[ext_resource type="Texture2D" uid="uid://bf8tm281iqk3u" path="res://textures/misc/arrow.png" id="10"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="1"]
|
||||
size = Vector2(60, 200)
|
||||
|
||||
[node name="UI" type="CanvasLayer"]
|
||||
|
||||
[node name="Dialog_box" parent="." instance=ExtResource("1")]
|
||||
visible = false
|
||||
anchors_preset = 12
|
||||
offset_top = -128.0
|
||||
offset_bottom = 46.0002
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Stats" parent="." instance=ExtResource("2")]
|
||||
anchors_preset = 15
|
||||
|
||||
[node name="Status_text" parent="." instance=ExtResource("3")]
|
||||
visible = false
|
||||
|
||||
[node name="Healthbar" parent="." instance=ExtResource("4")]
|
||||
visible = false
|
||||
offset_right = 14.0
|
||||
|
||||
[node name="TouchInterface" type="Node2D" parent="."]
|
||||
modulate = Color(1, 1, 1, 0.501961)
|
||||
script = ExtResource("7")
|
||||
|
||||
[node name="right" type="TouchScreenButton" parent="TouchInterface"]
|
||||
position = Vector2(176.899, 410.258)
|
||||
texture_normal = ExtResource("10")
|
||||
shape = SubResource("1")
|
||||
passby_press = true
|
||||
action = "move_right"
|
||||
visibility_mode = 1
|
||||
|
||||
[node name="up" type="TouchScreenButton" parent="TouchInterface"]
|
||||
position = Vector2(105.679, 427.331)
|
||||
rotation = -1.5708
|
||||
texture_normal = ExtResource("10")
|
||||
shape = SubResource("1")
|
||||
passby_press = true
|
||||
action = "move_up"
|
||||
visibility_mode = 1
|
||||
|
||||
[node name="left" type="TouchScreenButton" parent="TouchInterface"]
|
||||
position = Vector2(123.46, 497.427)
|
||||
rotation = -3.14159
|
||||
texture_normal = ExtResource("10")
|
||||
shape = SubResource("1")
|
||||
passby_press = true
|
||||
action = "move_left"
|
||||
visibility_mode = 1
|
||||
|
||||
[node name="down" type="TouchScreenButton" parent="TouchInterface"]
|
||||
position = Vector2(193.923, 480.742)
|
||||
rotation = 1.5708
|
||||
texture_normal = ExtResource("10")
|
||||
shape = SubResource("1")
|
||||
passby_press = true
|
||||
action = "move_down"
|
||||
visibility_mode = 1
|
||||
Reference in New Issue
Block a user