Added terrain and robot prototypes
This commit is contained in:
87
nodes/coding/code_runner.tscn
Normal file
87
nodes/coding/code_runner.tscn
Normal file
@@ -0,0 +1,87 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://7q00x01xdsal"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://brnfd6h7eh0n7" path="res://nodes/coding/code_runner.gd" id="1_mphwn"]
|
||||
|
||||
[node name="CodeRunner" type="Node"]
|
||||
script = ExtResource("1_mphwn")
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
|
||||
[node name="ProgrammerUI" type="PanelContainer" parent="."]
|
||||
anchors_preset = 9
|
||||
anchor_bottom = 1.0
|
||||
offset_right = 314.0
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="ProgrammerUI"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 10
|
||||
|
||||
[node name="Label" type="Label" parent="ProgrammerUI/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Programming"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="ProgrammerUI/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="ProgrammerUI/VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="ProgrammerUI/VBoxContainer/HBoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = " Source Code "
|
||||
|
||||
[node name="Code" type="CodeEdit" parent="ProgrammerUI/VBoxContainer/HBoxContainer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(200, 0)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
text = "Set 1 /2
|
||||
Cpy /2 /3
|
||||
Add /2 /3 /3
|
||||
|
||||
"
|
||||
placeholder_text = "Code here"
|
||||
symbol_tooltip_on_hover = true
|
||||
line_length_guidelines = Array[int]([5, 7, 9, 11])
|
||||
gutters_draw_executing_lines = true
|
||||
gutters_draw_line_numbers = true
|
||||
gutters_zero_pad_line_numbers = true
|
||||
|
||||
[node name="Memory" type="VBoxContainer" parent="ProgrammerUI/VBoxContainer/HBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HBoxContainer2" type="HBoxContainer" parent="ProgrammerUI/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 10
|
||||
alignment = 1
|
||||
|
||||
[node name="compileButton" type="Button" parent="ProgrammerUI/VBoxContainer/HBoxContainer2"]
|
||||
layout_mode = 2
|
||||
text = "[C]"
|
||||
|
||||
[node name="StopButton" type="Button" parent="ProgrammerUI/VBoxContainer/HBoxContainer2"]
|
||||
layout_mode = 2
|
||||
text = "[ ]"
|
||||
|
||||
[node name="PlayButton" type="Button" parent="ProgrammerUI/VBoxContainer/HBoxContainer2"]
|
||||
layout_mode = 2
|
||||
text = ">"
|
||||
|
||||
[node name="PauseButton" type="Button" parent="ProgrammerUI/VBoxContainer/HBoxContainer2"]
|
||||
layout_mode = 2
|
||||
text = "||"
|
||||
|
||||
[node name="StepButton" type="Button" parent="ProgrammerUI/VBoxContainer/HBoxContainer2"]
|
||||
layout_mode = 2
|
||||
text = ">|"
|
||||
|
||||
[connection signal="timeout" from="Timer" to="." method="_tick"]
|
||||
[connection signal="pressed" from="ProgrammerUI/VBoxContainer/HBoxContainer2/compileButton" to="." method="_on_compile_button_pressed"]
|
||||
[connection signal="pressed" from="ProgrammerUI/VBoxContainer/HBoxContainer2/StopButton" to="." method="_on_stop_button_pressed"]
|
||||
[connection signal="pressed" from="ProgrammerUI/VBoxContainer/HBoxContainer2/PlayButton" to="." method="_on_play_button_pressed"]
|
||||
[connection signal="pressed" from="ProgrammerUI/VBoxContainer/HBoxContainer2/PauseButton" to="." method="_on_pause_button_pressed"]
|
||||
[connection signal="pressed" from="ProgrammerUI/VBoxContainer/HBoxContainer2/StepButton" to="." method="_on_step_button_pressed"]
|
||||
Reference in New Issue
Block a user