mirror of
https://github.com/Relintai/godot-steering-ai-framework.git
synced 2024-11-14 04:57:19 +01:00
0e95c24c7f
Changed text boxes to sliders to improve usability. This also involved adding some simple graphics, since the _draw method is not anti-aliased and doesn't look great.
140 lines
3.5 KiB
Plaintext
140 lines
3.5 KiB
Plaintext
[gd_scene load_steps=3 format=2]
|
|
|
|
[ext_resource path="res://demos/pursue_vs_seek/GUI.gd" type="Script" id=1]
|
|
[ext_resource path="res://assets/theme/gdquest.theme" type="Theme" id=2]
|
|
|
|
[node name="PanelContainer" type="PanelContainer"]
|
|
anchor_bottom = 1.0
|
|
margin_right = 364.0
|
|
theme = ExtResource( 2 )
|
|
script = ExtResource( 1 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="GUI" type="MarginContainer" parent="."]
|
|
margin_right = 364.0
|
|
margin_bottom = 600.0
|
|
custom_constants/margin_right = 20
|
|
custom_constants/margin_top = 20
|
|
custom_constants/margin_left = 20
|
|
custom_constants/margin_bottom = 20
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Controls" type="VBoxContainer" parent="GUI"]
|
|
margin_left = 20.0
|
|
margin_top = 20.0
|
|
margin_right = 344.0
|
|
margin_bottom = 580.0
|
|
|
|
[node name="LinSpeedBox" type="VBoxContainer" parent="GUI/Controls"]
|
|
margin_right = 324.0
|
|
margin_bottom = 50.0
|
|
|
|
[node name="Label" type="Label" parent="GUI/Controls/LinSpeedBox"]
|
|
margin_right = 324.0
|
|
margin_bottom = 26.0
|
|
text = "Max linear speed (2000)"
|
|
|
|
[node name="MaxLinSpeed" type="HSlider" parent="GUI/Controls/LinSpeedBox"]
|
|
margin_top = 34.0
|
|
margin_right = 324.0
|
|
margin_bottom = 50.0
|
|
max_value = 500.0
|
|
|
|
[node name="LinAccelBox" type="VBoxContainer" parent="GUI/Controls"]
|
|
margin_top = 58.0
|
|
margin_right = 324.0
|
|
margin_bottom = 108.0
|
|
|
|
[node name="Label" type="Label" parent="GUI/Controls/LinAccelBox"]
|
|
margin_right = 324.0
|
|
margin_bottom = 26.0
|
|
text = "Max linear accel (2000)"
|
|
|
|
[node name="MaxLinAccel" type="HSlider" parent="GUI/Controls/LinAccelBox"]
|
|
margin_top = 34.0
|
|
margin_right = 324.0
|
|
margin_bottom = 50.0
|
|
step = 0.5
|
|
|
|
[node name="PredictTime" type="VBoxContainer" parent="GUI/Controls"]
|
|
margin_top = 116.0
|
|
margin_right = 324.0
|
|
margin_bottom = 166.0
|
|
|
|
[node name="Label" type="Label" parent="GUI/Controls/PredictTime"]
|
|
margin_right = 324.0
|
|
margin_bottom = 26.0
|
|
text = "Predict time (2000)"
|
|
|
|
[node name="PredictTime" type="HSlider" parent="GUI/Controls/PredictTime"]
|
|
margin_top = 34.0
|
|
margin_right = 324.0
|
|
margin_bottom = 50.0
|
|
max_value = 5.0
|
|
step = 0.1
|
|
|
|
[node name="Help" type="VBoxContainer" parent="GUI/Controls"]
|
|
margin_top = 174.0
|
|
margin_right = 324.0
|
|
margin_bottom = 264.0
|
|
|
|
[node name="Controls" type="Label" parent="GUI/Controls/Help"]
|
|
margin_right = 324.0
|
|
margin_bottom = 26.0
|
|
text = "Controls"
|
|
|
|
[node name="GridContainer" type="GridContainer" parent="GUI/Controls/Help"]
|
|
margin_top = 34.0
|
|
margin_right = 324.0
|
|
margin_bottom = 90.0
|
|
columns = 3
|
|
|
|
[node name="Sep" type="Control" parent="GUI/Controls/Help/GridContainer"]
|
|
margin_right = 15.0
|
|
margin_bottom = 26.0
|
|
rect_min_size = Vector2( 15, 15 )
|
|
|
|
[node name="W" type="Label" parent="GUI/Controls/Help/GridContainer"]
|
|
margin_left = 19.0
|
|
margin_right = 42.0
|
|
margin_bottom = 26.0
|
|
rect_min_size = Vector2( 15, 15 )
|
|
text = "W"
|
|
align = 1
|
|
|
|
[node name="Sep2" type="Control" parent="GUI/Controls/Help/GridContainer"]
|
|
margin_left = 46.0
|
|
margin_right = 63.0
|
|
margin_bottom = 26.0
|
|
rect_min_size = Vector2( 15, 15 )
|
|
|
|
[node name="A" type="Label" parent="GUI/Controls/Help/GridContainer"]
|
|
margin_top = 30.0
|
|
margin_right = 15.0
|
|
margin_bottom = 56.0
|
|
rect_min_size = Vector2( 15, 15 )
|
|
text = "A"
|
|
align = 1
|
|
|
|
[node name="S" type="Label" parent="GUI/Controls/Help/GridContainer"]
|
|
margin_left = 19.0
|
|
margin_top = 30.0
|
|
margin_right = 42.0
|
|
margin_bottom = 56.0
|
|
rect_min_size = Vector2( 15, 15 )
|
|
text = "S"
|
|
align = 1
|
|
|
|
[node name="D" type="Label" parent="GUI/Controls/Help/GridContainer"]
|
|
margin_left = 46.0
|
|
margin_top = 30.0
|
|
margin_right = 63.0
|
|
margin_bottom = 56.0
|
|
rect_min_size = Vector2( 15, 15 )
|
|
text = "D"
|
|
align = 1
|