FuncIt/source/scenes/OVERLAY/elements/user_input.tscn
Kristofers Solo ad901afab7 fix
2021-11-18 17:11:50 +02:00

506 lines
12 KiB
Plaintext

[gd_scene load_steps=26 format=2]
[ext_resource path="res://source/assets/sprites/GUI/in_game/user_input/background_panel.svg" type="Texture" id=1]
[ext_resource path="res://source/fonts/oxygen/Oxygen-Regular.ttf" type="DynamicFontData" id=2]
[ext_resource path="res://source/assets/sprites/GUI/in_game/trajectories/hyperbol_active.svg" type="Texture" id=4]
[ext_resource path="res://source/assets/sprites/GUI/in_game/trajectories/sin_active.svg" type="Texture" id=6]
[ext_resource path="res://source/assets/sprites/GUI/in_game/user_input/skip_button/skip_button_pressedsvg.svg" type="Texture" id=7]
[ext_resource path="res://source/assets/sprites/GUI/in_game/user_input/skip_button/skip_button_hover.svg" type="Texture" id=8]
[ext_resource path="res://source/assets/sprites/GUI/in_game/user_input/ready_button/ready_button.svg" type="Texture" id=9]
[ext_resource path="res://source/assets/sprites/GUI/in_game/user_input/ready_button/ready_button_pressed.svg" type="Texture" id=10]
[ext_resource path="res://source/assets/sprites/GUI/in_game/user_input/ready_button/ready_button_hover.svg" type="Texture" id=11]
[ext_resource path="res://source/assets/sprites/GUI/in_game/user_input/skip_button/skip_button.svg" type="Texture" id=12]
[ext_resource path="res://source/assets/scripts/shooting/Trajectories/trajectories.gd" type="Script" id=13]
[ext_resource path="res://source/fonts/oxygen/Oxygen-Bold.ttf" type="DynamicFontData" id=15]
[ext_resource path="res://source/assets/sprites/GUI/in_game/buttons/SpinBox/updown.svg" type="Texture" id=16]
[ext_resource path="res://source/fonts/oxygen/oxygen_bold_formula.tres" type="DynamicFont" id=17]
[sub_resource type="StyleBoxTexture" id=1]
texture = ExtResource( 1 )
region_rect = Rect2( 0, 0, 480, 156 )
[sub_resource type="StyleBoxFlat" id=4]
bg_color = Color( 0.333333, 0.431373, 0.807843, 1 )
border_color = Color( 1, 1, 1, 0 )
[sub_resource type="StyleBoxTexture" id=8]
texture = ExtResource( 4 )
region_rect = Rect2( 0, 0, 100, 100 )
[sub_resource type="DynamicFont" id=9]
size = 14
use_mipmaps = true
use_filter = true
font_data = ExtResource( 2 )
[sub_resource type="StyleBoxTexture" id=10]
texture = ExtResource( 6 )
region_rect = Rect2( 0, 0, 100, 100 )
[sub_resource type="DynamicFont" id=11]
size = 32
use_mipmaps = true
use_filter = true
font_data = ExtResource( 15 )
[sub_resource type="DynamicFont" id=16]
use_mipmaps = true
use_filter = true
font_data = ExtResource( 15 )
[sub_resource type="StyleBoxTexture" id=17]
texture = ExtResource( 6 )
region_rect = Rect2( 0, 0, 100, 100 )
[sub_resource type="DynamicFont" id=13]
size = 22
use_mipmaps = true
use_filter = true
font_data = ExtResource( 2 )
[sub_resource type="DynamicFont" id=14]
size = 22
use_mipmaps = true
use_filter = true
font_data = ExtResource( 2 )
[sub_resource type="DynamicFont" id=15]
size = 22
use_mipmaps = true
use_filter = true
font_data = ExtResource( 2 )
[node name="user_input" type="Panel"]
margin_right = 480.0
margin_bottom = 156.0
mouse_filter = 1
custom_styles/panel = SubResource( 1 )
__meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": false
}
[node name="controls" type="Control" parent="."]
margin_left = 165.0
margin_top = 13.0
margin_right = 465.0
margin_bottom = 143.0
mouse_filter = 2
script = ExtResource( 13 )
__meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": false
}
[node name="line" type="Control" parent="controls"]
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="line_panel" type="Panel" parent="controls/line"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -265.0
margin_top = -50.0
margin_right = -165.0
margin_bottom = 50.0
mouse_filter = 1
custom_styles/panel = SubResource( 4 )
__meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="controls/line/line_panel"]
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
margin_left = -39.0
margin_top = -19.0
margin_right = 39.0
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "line"
align = 1
valign = 1
uppercase = true
__meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": false
}
[node name="fx" type="Label" parent="controls/line"]
visible = false
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -75.0
margin_top = -17.0
margin_right = -5.0
margin_bottom = 17.0
custom_fonts/font = ExtResource( 17 )
text = "f(x) = "
align = 1
valign = 1
__meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": false
}
[node name="line_SpinBox" type="SpinBox" parent="controls/line"]
use_parent_material = true
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -75.0
margin_top = -17.0
margin_right = 75.0
margin_bottom = 17.0
custom_icons/updown = ExtResource( 16 )
min_value = -15.0
max_value = 15.0
step = 0.5
align = 1
prefix = "f(x) ="
suffix = "x"
__meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": false
}
[node name="parabol" type="Control" parent="controls"]
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="a_param_SpinBox" type="SpinBox" parent="controls/parabol"]
use_parent_material = true
anchor_top = 0.5
anchor_bottom = 0.5
margin_top = -17.0
margin_right = 160.0
margin_bottom = 17.0
custom_icons/updown = ExtResource( 16 )
min_value = -15.0
max_value = 15.0
step = 0.5
align = 1
prefix = "f(x) ="
suffix = "x²"
__meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": false
}
[node name="b_param_SpinBox" type="SpinBox" parent="controls/parabol"]
use_parent_material = true
anchor_left = 1.0
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
margin_left = -140.0
margin_top = -17.0
margin_bottom = 17.0
custom_icons/updown = ExtResource( 16 )
min_value = -15.0
max_value = 15.0
step = 0.5
align = 1
prefix = "+"
suffix = "x + c"
__meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": false
}
[node name="parabol_panel" type="Panel" parent="controls/parabol"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -265.0
margin_top = -50.0
margin_right = -165.0
margin_bottom = 50.0
mouse_filter = 1
custom_styles/panel = SubResource( 8 )
__meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="controls/parabol/parabol_panel"]
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
margin_left = -39.0
margin_top = -19.0
margin_right = 39.0
custom_fonts/font = SubResource( 9 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "parabol"
align = 1
valign = 1
uppercase = true
__meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": false
}
[node name="hyperbol" type="Control" parent="controls"]
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="a_param_h_SpinBox" type="SpinBox" parent="controls/hyperbol"]
use_parent_material = true
anchor_top = 0.5
anchor_bottom = 0.5
margin_top = -17.0
margin_right = 150.0
margin_bottom = 17.0
custom_icons/updown = ExtResource( 16 )
min_value = -15.0
max_value = 15.0
step = 0.5
align = 1
prefix = "f(x) ="
__meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": false
}
[node name="b_param_h_SpinBox" type="SpinBox" parent="controls/hyperbol"]
use_parent_material = true
anchor_left = 1.0
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
margin_left = -150.0
margin_top = -17.0
margin_bottom = 17.0
custom_icons/updown = ExtResource( 16 )
min_value = -15.0
max_value = 15.0
step = 0.5
align = 1
prefix = "/"
suffix = "x"
__meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": false
}
[node name="hyperbol_panel" type="Panel" parent="controls/hyperbol"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -265.0
margin_top = -50.0
margin_right = -165.0
margin_bottom = 50.0
custom_styles/panel = SubResource( 10 )
__meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="controls/hyperbol/hyperbol_panel"]
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
margin_left = -39.0
margin_top = -19.0
margin_right = 39.0
custom_fonts/font = SubResource( 11 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "hyperbol"
align = 1
valign = 1
uppercase = true
__meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": false
}
[node name="Label2" type="Label" parent="controls/hyperbol/hyperbol_panel"]
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
margin_left = -39.0
margin_top = -19.7071
margin_right = 39.0
margin_bottom = 1.29288
custom_fonts/font = SubResource( 16 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "sine"
align = 1
valign = 1
uppercase = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="sin" type="Control" parent="controls"]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": false
}
[node name="sine_panel" type="Panel" parent="controls/sin"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -265.0
margin_top = -50.0
margin_right = -165.0
margin_bottom = 50.0
custom_styles/panel = SubResource( 17 )
__meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="controls/sin/sine_panel"]
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
margin_left = -39.0
margin_top = -19.7071
margin_right = 39.0
margin_bottom = 1.29288
custom_fonts/font = SubResource( 16 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "sine"
align = 1
valign = 1
uppercase = true
__meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": false
}
[node name="amp_SpinBox" type="SpinBox" parent="controls/sin"]
use_parent_material = true
anchor_top = 0.5
anchor_bottom = 0.5
margin_top = -17.0
margin_right = 150.0
margin_bottom = 17.0
custom_icons/updown = ExtResource( 16 )
min_value = -15.0
max_value = 15.0
step = 0.5
align = 1
prefix = "f(x) ="
__meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": false
}
[node name="freq_SpinBox" type="SpinBox" parent="controls/sin"]
use_parent_material = true
anchor_left = 1.0
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
margin_left = -150.0
margin_top = -17.0
margin_bottom = 17.0
custom_icons/updown = ExtResource( 16 )
min_value = -15.0
max_value = 15.0
step = 0.5
align = 1
prefix = "sin("
suffix = "x)"
__meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="controls"]
anchor_right = 1.0
margin_bottom = 41.0
custom_fonts/font = SubResource( 13 )
text = "Active formula"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ready_button" type="TextureButton" parent="controls"]
anchor_top = 1.0
anchor_bottom = 1.0
margin_top = -36.0
margin_right = 120.0
texture_normal = ExtResource( 9 )
texture_pressed = ExtResource( 10 )
texture_hover = ExtResource( 11 )
__meta__ = {
"_edit_group_": true,
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="controls/ready_button"]
anchor_right = 1.0
anchor_bottom = 1.0
custom_fonts/font = SubResource( 14 )
text = "Ready"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="skip_button" type="TextureButton" parent="controls"]
margin_left = 180.0
margin_top = 94.0
margin_right = 300.0
margin_bottom = 130.0
texture_normal = ExtResource( 12 )
texture_pressed = ExtResource( 7 )
texture_hover = ExtResource( 8 )
__meta__ = {
"_edit_group_": true,
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="controls/skip_button"]
anchor_right = 1.0
anchor_bottom = 1.0
custom_fonts/font = SubResource( 15 )
text = "Skip"
align = 1
valign = 1
[connection signal="value_changed" from="controls/line/line_SpinBox" to="controls" method="_on_line_SpinBox_value_changed"]
[connection signal="value_changed" from="controls/parabol/a_param_SpinBox" to="controls" method="_on_a_param_SpinBox_value_changed"]
[connection signal="value_changed" from="controls/parabol/b_param_SpinBox" to="controls" method="_on_b_param_SpinBox_value_changed"]
[connection signal="value_changed" from="controls/hyperbol/a_param_h_SpinBox" to="controls" method="_on_a_param_h_SpinBox_value_changed"]
[connection signal="value_changed" from="controls/hyperbol/b_param_h_SpinBox" to="controls" method="_on_b_param_h_SpinBox_value_changed"]
[connection signal="value_changed" from="controls/sin/amp_SpinBox" to="controls" method="_on_amp_SpinBox_value_changed"]
[connection signal="value_changed" from="controls/sin/freq_SpinBox" to="controls" method="_on_freq_SpinBox_value_changed"]