279 lines
7.5 KiB
Text
279 lines
7.5 KiB
Text
[gd_scene load_steps=8 format=2]
|
|
|
|
[ext_resource path="res://fonts/title.tres" type="DynamicFont" id=1]
|
|
[ext_resource path="res://scripts/PreyEdit.gd" type="Script" id=2]
|
|
[ext_resource path="res://UI_themes/main.tres" type="Theme" id=3]
|
|
[ext_resource path="res://UI_themes/collision_visual.tres" type="StyleBox" id=4]
|
|
[ext_resource path="res://tiles/hidden.tres" type="TileSet" id=5]
|
|
[ext_resource path="res://scripts/UI/gotoscenebutton.gd" type="Script" id=6]
|
|
[ext_resource path="res://objects/prey.tscn" type="PackedScene" id=7]
|
|
|
|
[node name="Control" type="Control"]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
mouse_filter = 2
|
|
theme = ExtResource( 3 )
|
|
script = ExtResource( 2 )
|
|
__meta__ = {
|
|
"_edit_lock_": true,
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Label" type="Label" parent="."]
|
|
anchor_right = 1.0
|
|
margin_bottom = 64.0
|
|
custom_fonts/font = ExtResource( 1 )
|
|
text = "Prey Editor"
|
|
align = 1
|
|
valign = 1
|
|
__meta__ = {
|
|
"_edit_lock_": true,
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="preyprev" type="CenterContainer" parent="."]
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
use_top_left = true
|
|
__meta__ = {
|
|
"_edit_group_": true
|
|
}
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="preyprev"]
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="coll" type="Panel" parent="preyprev"]
|
|
margin_left = -1.0
|
|
margin_top = -1.0
|
|
margin_right = 1.0
|
|
margin_bottom = 1.0
|
|
rect_min_size = Vector2( 2, 2 )
|
|
custom_styles/panel = ExtResource( 4 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="C" type="ColorRect" parent="."]
|
|
anchor_left = 1.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
margin_left = -280.0
|
|
color = Color( 0, 0, 0, 0.376471 )
|
|
__meta__ = {
|
|
"_edit_group_": true,
|
|
"_edit_lock_": true,
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="opts" type="ScrollContainer" parent="C"]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
|
|
[node name="HB" type="GridContainer" parent="C/opts"]
|
|
margin_right = 280.0
|
|
margin_bottom = 334.0
|
|
size_flags_horizontal = 3
|
|
columns = 2
|
|
|
|
[node name="Back" type="Button" parent="C/opts/HB"]
|
|
margin_right = 127.0
|
|
margin_bottom = 30.0
|
|
text = "Back"
|
|
script = ExtResource( 6 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
goto = "res://preyMenu.tscn"
|
|
default = true
|
|
|
|
[node name="SaveButton" type="Button" parent="C/opts/HB"]
|
|
margin_left = 131.0
|
|
margin_right = 280.0
|
|
margin_bottom = 30.0
|
|
text = "Save"
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Label4" type="Label" parent="C/opts/HB"]
|
|
margin_top = 39.0
|
|
margin_right = 127.0
|
|
margin_bottom = 63.0
|
|
text = "Prey Name:"
|
|
|
|
[node name="PName" type="LineEdit" parent="C/opts/HB"]
|
|
margin_left = 131.0
|
|
margin_top = 34.0
|
|
margin_right = 280.0
|
|
margin_bottom = 68.0
|
|
max_length = 64
|
|
|
|
[node name="Label" type="Label" parent="C/opts/HB"]
|
|
margin_top = 77.0
|
|
margin_right = 127.0
|
|
margin_bottom = 101.0
|
|
text = "Scale:"
|
|
|
|
[node name="InitScale" type="SpinBox" parent="C/opts/HB"]
|
|
margin_left = 131.0
|
|
margin_top = 72.0
|
|
margin_right = 280.0
|
|
margin_bottom = 106.0
|
|
size_flags_horizontal = 3
|
|
min_value = 0.01
|
|
max_value = 5.0
|
|
step = 0.01
|
|
value = 1.0
|
|
|
|
[node name="Label2" type="Label" parent="C/opts/HB"]
|
|
margin_top = 115.0
|
|
margin_right = 127.0
|
|
margin_bottom = 139.0
|
|
text = "Shrunk Scale:"
|
|
|
|
[node name="ShrunkScale" type="SpinBox" parent="C/opts/HB"]
|
|
margin_left = 131.0
|
|
margin_top = 110.0
|
|
margin_right = 280.0
|
|
margin_bottom = 144.0
|
|
min_value = 0.01
|
|
max_value = 5.0
|
|
step = 0.01
|
|
value = 1.0
|
|
|
|
[node name="Label3" type="Label" parent="C/opts/HB"]
|
|
margin_top = 153.0
|
|
margin_right = 127.0
|
|
margin_bottom = 177.0
|
|
text = "Collect Scale:"
|
|
|
|
[node name="ColScale" type="SpinBox" parent="C/opts/HB"]
|
|
margin_left = 131.0
|
|
margin_top = 148.0
|
|
margin_right = 280.0
|
|
margin_bottom = 182.0
|
|
hint_tooltip = "Collect size:
|
|
prey must be smaller than this to be collected."
|
|
min_value = 0.01
|
|
max_value = 5.0
|
|
step = 0.01
|
|
value = 1.0
|
|
|
|
[node name="Label5" type="Label" parent="C/opts/HB"]
|
|
margin_top = 191.0
|
|
margin_right = 127.0
|
|
margin_bottom = 215.0
|
|
text = "Max Health:"
|
|
|
|
[node name="Health" type="SpinBox" parent="C/opts/HB"]
|
|
margin_left = 131.0
|
|
margin_top = 186.0
|
|
margin_right = 280.0
|
|
margin_bottom = 220.0
|
|
min_value = 1.0
|
|
max_value = 10000.0
|
|
value = 1000.0
|
|
|
|
[node name="Label6" type="Label" parent="C/opts/HB"]
|
|
margin_top = 229.0
|
|
margin_right = 127.0
|
|
margin_bottom = 253.0
|
|
text = "Hitbox Width:"
|
|
|
|
[node name="HBW" type="SpinBox" parent="C/opts/HB"]
|
|
margin_left = 131.0
|
|
margin_top = 224.0
|
|
margin_right = 280.0
|
|
margin_bottom = 258.0
|
|
min_value = 4.0
|
|
max_value = 1024.0
|
|
step = 2.0
|
|
value = 32.0
|
|
|
|
[node name="Label7" type="Label" parent="C/opts/HB"]
|
|
margin_top = 267.0
|
|
margin_right = 127.0
|
|
margin_bottom = 291.0
|
|
text = "Hitbox Height:"
|
|
|
|
[node name="HBH" type="SpinBox" parent="C/opts/HB"]
|
|
margin_left = 131.0
|
|
margin_top = 262.0
|
|
margin_right = 280.0
|
|
margin_bottom = 296.0
|
|
min_value = 4.0
|
|
max_value = 1024.0
|
|
step = 2.0
|
|
value = 32.0
|
|
|
|
[node name="Label8" type="Label" parent="C/opts/HB"]
|
|
margin_top = 305.0
|
|
margin_right = 127.0
|
|
margin_bottom = 329.0
|
|
text = "Squeeze:"
|
|
|
|
[node name="Squeeze" type="SpinBox" parent="C/opts/HB"]
|
|
margin_left = 131.0
|
|
margin_top = 300.0
|
|
margin_right = 280.0
|
|
margin_bottom = 334.0
|
|
min_value = 0.1
|
|
max_value = 1.0
|
|
step = 0.05
|
|
value = 0.7
|
|
|
|
[node name="preview" type="CanvasLayer" parent="."]
|
|
layer = -1
|
|
|
|
[node name="TileMap" type="TileMap" parent="preview"]
|
|
visible = false
|
|
tile_set = ExtResource( 5 )
|
|
collision_layer = 2
|
|
collision_mask = 2
|
|
format = 1
|
|
tile_data = PoolIntArray( -65536, 0, 0, -65535, 0, 0, -65534, 0, 0, -65533, 0, 0, -65532, 0, 0, -65531, 0, 0, -65530, 0, 0, -65529, 0, 0, -65528, 0, 0, -65527, 0, 0, -65526, 0, 0, -65525, 0, 0, 65535, 0, 0, 12, 0, 0, 131071, 0, 0, 65548, 0, 0, 196607, 0, 0, 131084, 0, 0, 262143, 0, 0, 196620, 0, 0, 327679, 0, 0, 262156, 0, 0, 393215, 0, 0, 327692, 0, 0, 458751, 0, 0, 393228, 0, 0, 524287, 0, 0, 458764, 0, 0, 589823, 0, 0, 524300, 0, 0, 589824, 0, 0, 589825, 0, 0, 589826, 0, 0, 589827, 0, 0, 589828, 0, 0, 589829, 0, 0, 589830, 0, 0, 589831, 0, 0, 589832, 0, 0, 589833, 0, 0, 589834, 0, 0, 589835, 0, 0 )
|
|
|
|
[node name="prey" parent="preview" instance=ExtResource( 7 )]
|
|
position = Vector2( 376, 288 )
|
|
input_pickable = true
|
|
draggable = true
|
|
|
|
[node name="bg" type="CanvasLayer" parent="."]
|
|
layer = -2
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="bg"]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
mouse_filter = 2
|
|
color = Color( 0.3416, 0.51996, 0.56, 1 )
|
|
__meta__ = {
|
|
"_edit_lock_": true,
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Ground" type="ColorRect" parent="bg"]
|
|
margin_top = 576.0
|
|
margin_right = 768.0
|
|
margin_bottom = 720.0
|
|
mouse_filter = 2
|
|
color = Color( 0.364706, 0.180392, 0, 1 )
|
|
__meta__ = {
|
|
"_edit_lock_": true,
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[connection signal="pressed" from="C/opts/HB/SaveButton" to="." method="_on_SaveButton_pressed"]
|
|
[connection signal="mouse_entered" from="C/opts/HB/InitScale" to="." method="_on_InitScale_mouse_entered"]
|
|
[connection signal="value_changed" from="C/opts/HB/InitScale" to="." method="_on_InitScale_value_changed"]
|
|
[connection signal="mouse_entered" from="C/opts/HB/ShrunkScale" to="." method="_on_ShrunkScale_mouse_entered"]
|
|
[connection signal="mouse_exited" from="C/opts/HB/ShrunkScale" to="." method="_on_InitScale_mouse_entered"]
|
|
[connection signal="value_changed" from="C/opts/HB/ShrunkScale" to="." method="_on_ShrunkScale_value_changed"]
|
|
[connection signal="mouse_entered" from="C/opts/HB/ColScale" to="." method="_on_ColScale_mouse_entered"]
|
|
[connection signal="mouse_exited" from="C/opts/HB/ColScale" to="." method="_on_InitScale_mouse_entered"]
|
|
[connection signal="value_changed" from="C/opts/HB/ColScale" to="." method="_on_ColScale_value_changed"]
|
|
[connection signal="value_changed" from="C/opts/HB/HBW" to="." method="_on_HBW_value_changed"]
|
|
[connection signal="value_changed" from="C/opts/HB/HBH" to="." method="_on_HBH_value_changed"]
|