mirror of
https://github.com/HarmonyHoney/tiny_crate.git
synced 2026-01-23 02:34:53 +00:00
expand_width for touch_screen & select! (;
This commit is contained in:
parent
9b430abb39
commit
fcd335ae4f
4 changed files with 118 additions and 42 deletions
|
|
@ -184,7 +184,7 @@ custom_features=""
|
|||
export_filter="all_resources"
|
||||
include_filter=""
|
||||
exclude_filter=""
|
||||
export_path="export/android/Tiny-Crate33-3.aab"
|
||||
export_path="export/android/Tiny-Crate33-4.aab"
|
||||
script_export_mode=1
|
||||
script_encryption_key=""
|
||||
|
||||
|
|
@ -207,7 +207,7 @@ keystore/release="C:/Users/harmo/.android/tinycrate.keystore"
|
|||
keystore/release_user="tinycrate"
|
||||
keystore/release_password="release"
|
||||
one_click_deploy/clear_previous_install=true
|
||||
version/code=3
|
||||
version/code=4
|
||||
version/name="1.0"
|
||||
package/unique_name="harmonyhoney.tinycrate"
|
||||
package/name="Tiny Crate"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
extends CanvasLayer
|
||||
|
||||
onready var pause : TouchScreenButton = $Node2D/Pause
|
||||
onready var pause : TouchScreenButton = $Control/HBoxTop/Pause/Control/Button
|
||||
|
||||
func _ready():
|
||||
connect("visibility_changed", self, "vis")
|
||||
|
|
|
|||
|
|
@ -6,77 +6,132 @@
|
|||
[ext_resource path="res://src/autoload/touch_screen_button.gd" type="Script" id=4]
|
||||
|
||||
[sub_resource type="CircleShape2D" id=1]
|
||||
radius = 14.5
|
||||
radius = 15.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id=2]
|
||||
radius = 14.5
|
||||
radius = 15.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id=3]
|
||||
radius = 14.5
|
||||
radius = 15.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id=4]
|
||||
radius = 14.5
|
||||
radius = 15.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id=5]
|
||||
radius = 14.5
|
||||
radius = 15.0
|
||||
|
||||
[node name="TouchScreen" type="CanvasLayer"]
|
||||
pause_mode = 2
|
||||
layer = 15
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="Node2D" type="Node2D" parent="."]
|
||||
[node name="Control" type="Control" parent="."]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = 10.0
|
||||
margin_top = 5.0
|
||||
margin_right = -10.0
|
||||
margin_bottom = -5.0
|
||||
|
||||
[node name="Left" type="TouchScreenButton" parent="Node2D"]
|
||||
position = Vector2( 20, 108 )
|
||||
[node name="HBoxLeft" type="HBoxContainer" parent="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
custom_constants/separation = 0
|
||||
|
||||
[node name="Left" type="CenterContainer" parent="Control/HBoxLeft"]
|
||||
margin_top = 88.0
|
||||
margin_right = 30.0
|
||||
margin_bottom = 118.0
|
||||
rect_min_size = Vector2( 30, 30 )
|
||||
size_flags_vertical = 8
|
||||
|
||||
[node name="Control" type="Control" parent="Control/HBoxLeft/Left"]
|
||||
margin_left = 15.0
|
||||
margin_top = 15.0
|
||||
margin_right = 15.0
|
||||
margin_bottom = 15.0
|
||||
|
||||
[node name="Button" type="TouchScreenButton" parent="Control/HBoxLeft/Left/Control"]
|
||||
shape = SubResource( 1 )
|
||||
shape_centered = false
|
||||
passby_press = true
|
||||
action = "left"
|
||||
visibility_mode = 1
|
||||
|
||||
[node name="Node2D" type="Node2D" parent="Node2D/Left"]
|
||||
[node name="Node2D" type="Node2D" parent="Control/HBoxLeft/Left/Control"]
|
||||
modulate = Color( 1, 1, 1, 0.0784314 )
|
||||
script = ExtResource( 4 )
|
||||
circle_size = 12.0
|
||||
|
||||
[node name="Polygon2D" type="Polygon2D" parent="Node2D/Left"]
|
||||
[node name="Polygon2D" type="Polygon2D" parent="Control/HBoxLeft/Left/Control"]
|
||||
scale = Vector2( 0.3, 0.3 )
|
||||
offset = Vector2( -12.5, 0 )
|
||||
polygon = PoolVector2Array( 0, 0, 25, -25, 25, 25 )
|
||||
|
||||
[node name="Right" type="TouchScreenButton" parent="Node2D"]
|
||||
position = Vector2( 50, 108 )
|
||||
[node name="Right" type="CenterContainer" parent="Control/HBoxLeft"]
|
||||
margin_left = 30.0
|
||||
margin_top = 88.0
|
||||
margin_right = 60.0
|
||||
margin_bottom = 118.0
|
||||
rect_min_size = Vector2( 30, 30 )
|
||||
size_flags_vertical = 8
|
||||
|
||||
[node name="Control" type="Control" parent="Control/HBoxLeft/Right"]
|
||||
margin_left = 15.0
|
||||
margin_top = 15.0
|
||||
margin_right = 15.0
|
||||
margin_bottom = 15.0
|
||||
|
||||
[node name="Button" type="TouchScreenButton" parent="Control/HBoxLeft/Right/Control"]
|
||||
shape = SubResource( 2 )
|
||||
shape_centered = false
|
||||
passby_press = true
|
||||
action = "right"
|
||||
visibility_mode = 1
|
||||
|
||||
[node name="Node2D" type="Node2D" parent="Node2D/Right"]
|
||||
[node name="Node2D" type="Node2D" parent="Control/HBoxLeft/Right/Control"]
|
||||
modulate = Color( 1, 1, 1, 0.0784314 )
|
||||
script = ExtResource( 4 )
|
||||
circle_size = 12.0
|
||||
|
||||
[node name="Polygon2D" type="Polygon2D" parent="Node2D/Right"]
|
||||
[node name="Polygon2D" type="Polygon2D" parent="Control/HBoxLeft/Right/Control"]
|
||||
scale = Vector2( 0.3, 0.3 )
|
||||
offset = Vector2( 12.5, 0 )
|
||||
polygon = PoolVector2Array( 0, 0, -25, -25, -25, 25 )
|
||||
|
||||
[node name="C" type="TouchScreenButton" parent="Node2D"]
|
||||
position = Vector2( 178, 108 )
|
||||
[node name="HBoxRight" type="HBoxContainer" parent="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
custom_constants/separation = 0
|
||||
alignment = 2
|
||||
|
||||
[node name="C" type="CenterContainer" parent="Control/HBoxRight"]
|
||||
margin_left = 148.0
|
||||
margin_top = 88.0
|
||||
margin_right = 178.0
|
||||
margin_bottom = 118.0
|
||||
rect_min_size = Vector2( 30, 30 )
|
||||
size_flags_vertical = 8
|
||||
|
||||
[node name="Control" type="Control" parent="Control/HBoxRight/C"]
|
||||
margin_left = 15.0
|
||||
margin_top = 15.0
|
||||
margin_right = 15.0
|
||||
margin_bottom = 15.0
|
||||
|
||||
[node name="Button" type="TouchScreenButton" parent="Control/HBoxRight/C/Control"]
|
||||
shape = SubResource( 3 )
|
||||
shape_centered = false
|
||||
passby_press = true
|
||||
action = "action"
|
||||
visibility_mode = 1
|
||||
|
||||
[node name="Node2D" type="Node2D" parent="Node2D/C"]
|
||||
[node name="Node2D" type="Node2D" parent="Control/HBoxRight/C/Control"]
|
||||
modulate = Color( 1, 1, 1, 0.0784314 )
|
||||
script = ExtResource( 4 )
|
||||
circle_size = 12.0
|
||||
|
||||
[node name="Label" type="Label" parent="Node2D/C"]
|
||||
[node name="Label" type="Label" parent="Control/HBoxRight/C/Control"]
|
||||
margin_left = -12.0
|
||||
margin_top = -12.0
|
||||
margin_right = 12.0
|
||||
|
|
@ -85,24 +140,34 @@ custom_fonts/font = ExtResource( 2 )
|
|||
text = "c"
|
||||
align = 1
|
||||
valign = 1
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="X" type="TouchScreenButton" parent="Node2D"]
|
||||
position = Vector2( 208, 108 )
|
||||
[node name="X" type="CenterContainer" parent="Control/HBoxRight"]
|
||||
margin_left = 178.0
|
||||
margin_top = 88.0
|
||||
margin_right = 208.0
|
||||
margin_bottom = 118.0
|
||||
rect_min_size = Vector2( 30, 30 )
|
||||
size_flags_vertical = 8
|
||||
|
||||
[node name="Control" type="Control" parent="Control/HBoxRight/X"]
|
||||
margin_left = 15.0
|
||||
margin_top = 15.0
|
||||
margin_right = 15.0
|
||||
margin_bottom = 15.0
|
||||
|
||||
[node name="Button" type="TouchScreenButton" parent="Control/HBoxRight/X/Control"]
|
||||
shape = SubResource( 4 )
|
||||
shape_centered = false
|
||||
passby_press = true
|
||||
action = "jump"
|
||||
visibility_mode = 1
|
||||
|
||||
[node name="Node2D" type="Node2D" parent="Node2D/X"]
|
||||
[node name="Node2D" type="Node2D" parent="Control/HBoxRight/X/Control"]
|
||||
modulate = Color( 1, 1, 1, 0.0784314 )
|
||||
script = ExtResource( 4 )
|
||||
circle_size = 12.0
|
||||
|
||||
[node name="Label" type="Label" parent="Node2D/X"]
|
||||
[node name="Label" type="Label" parent="Control/HBoxRight/X/Control"]
|
||||
margin_left = -12.0
|
||||
margin_top = -12.0
|
||||
margin_right = 12.0
|
||||
|
|
@ -112,20 +177,38 @@ text = "x"
|
|||
align = 1
|
||||
valign = 1
|
||||
|
||||
[node name="Pause" type="TouchScreenButton" parent="Node2D"]
|
||||
position = Vector2( 208, 20 )
|
||||
[node name="HBoxTop" type="HBoxContainer" parent="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
custom_constants/separation = 0
|
||||
alignment = 2
|
||||
|
||||
[node name="Pause" type="CenterContainer" parent="Control/HBoxTop"]
|
||||
margin_left = 178.0
|
||||
margin_right = 208.0
|
||||
margin_bottom = 30.0
|
||||
rect_min_size = Vector2( 30, 30 )
|
||||
size_flags_vertical = 0
|
||||
|
||||
[node name="Control" type="Control" parent="Control/HBoxTop/Pause"]
|
||||
margin_left = 15.0
|
||||
margin_top = 15.0
|
||||
margin_right = 15.0
|
||||
margin_bottom = 15.0
|
||||
|
||||
[node name="Button" type="TouchScreenButton" parent="Control/HBoxTop/Pause/Control"]
|
||||
shape = SubResource( 5 )
|
||||
shape_centered = false
|
||||
passby_press = true
|
||||
action = "pause"
|
||||
visibility_mode = 1
|
||||
|
||||
[node name="Node2D" type="Node2D" parent="Node2D/Pause"]
|
||||
[node name="Node2D" type="Node2D" parent="Control/HBoxTop/Pause/Control"]
|
||||
modulate = Color( 1, 1, 1, 0.0784314 )
|
||||
script = ExtResource( 4 )
|
||||
circle_size = 12.0
|
||||
|
||||
[node name="Label" type="Label" parent="Node2D/Pause"]
|
||||
[node name="Label" type="Label" parent="Control/HBoxTop/Pause/Control"]
|
||||
margin_left = -12.0
|
||||
margin_top = -12.0
|
||||
margin_right = 12.0
|
||||
|
|
@ -134,6 +217,3 @@ custom_fonts/font = ExtResource( 3 )
|
|||
text = "pause"
|
||||
align = 1
|
||||
valign = 1
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
|
|
|||
|
|
@ -206,11 +206,7 @@ texture = ExtResource( 1 )
|
|||
[node name="BG" type="CanvasLayer" parent="."]
|
||||
layer = -1
|
||||
|
||||
[node name="Background" type="Node2D" parent="BG"]
|
||||
z_index = -1000
|
||||
z_as_relative = false
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="BG/Background"]
|
||||
margin_right = 320.0
|
||||
margin_bottom = 180.0
|
||||
[node name="ColorRect" type="ColorRect" parent="BG"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
color = Color( 1, 0.945098, 0.909804, 1 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue