Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions course/common/GDScriptCodeExample.gd
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ extends CodeEdit

const CODE_FONT := "res://ui/theme/fonts/font_code.tres"

@export var min_size := Vector2(600, 200):
set = set_min_size


func _ready() -> void:
if get_theme_font("font").resource_path != CODE_FONT:
add_theme_font_override("font", load(CODE_FONT) as FontVariation)
Expand All @@ -16,20 +12,4 @@ func _ready() -> void:
wrap_mode = TextEdit.LINE_WRAPPING_NONE
CodeEditorEnhancer.enhance(self)
CodeEditorEnhancer.prevent_editable(self)

scroll_fit_content_height = true

if not Engine.is_editor_hint():
Events.font_size_scale_changed.connect(_update_size)


func set_min_size(new_size: Vector2) -> void:
min_size = new_size
custom_minimum_size = new_size


func _update_size(_new_font_scale: int) -> void:
# Forces the text wrapping to update. Without this, the code can overflow
# the container when changing the font size.
# TODO: There is some computation error in the TextEdit, it seems. Need to investigate it further.
pass
4 changes: 1 addition & 3 deletions course/common/GDScriptCodeExample.tscn
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
[gd_scene format=3 uid="uid://cbxo4pmcdfrbf"]
[gd_scene format=3 uid="uid://db1b2noi66ypn"]

[ext_resource type="FontVariation" path="res://ui/theme/fonts/font_code.tres" id="1_sh0af"]
[ext_resource type="StyleBox" path="res://ui/theme/styles/panel_normal.tres" id="3"]
[ext_resource type="CodeHighlighter" path="res://ui/theme/gdscript_syntax_highlighter.tres" id="3_l403w"]
[ext_resource type="Script" uid="uid://ch5qpoqookmfv" path="res://course/common/GDScriptCodeExample.gd" id="3_sh0af"]

[node name="GDScriptCodeExample" type="CodeEdit" unique_id=450119196]
custom_minimum_size = Vector2(600, 200)
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
Expand All @@ -18,7 +17,6 @@ context_menu_enabled = false
shortcut_keys_enabled = false
scroll_smooth = true
scroll_fit_content_height = true
scroll_fit_content_width = true
caret_blink = true
syntax_highlighter = ExtResource("3_l403w")
draw_tabs = true
Expand Down
2 changes: 1 addition & 1 deletion course/common/inventory/DictInventory.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene format=3 uid="uid://5565jgtxayff"]
[gd_scene format=3 uid="uid://do87gm8a66o5o"]

[ext_resource type="Script" uid="uid://dcpcup5nppub7" path="res://ui/components/UnscaledLabel.gd" id="2_dwu3a"]
[ext_resource type="Script" uid="uid://r14urqhc40oi" path="res://course/common/inventory/DictInventory.gd" id="3"]
Expand Down
2 changes: 1 addition & 1 deletion course/common/inventory/DictItem.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene format=3 uid="uid://ckbquvn7m4a6u"]
[gd_scene format=3 uid="uid://cbsp7q8fahfwj"]

[ext_resource type="Texture2D" uid="uid://53p3lhsufh82" path="res://course/common/inventory/healing_heart.png" id="2"]
[ext_resource type="Script" uid="uid://byafhjougrfbm" path="res://course/common/inventory/DictItem.gd" id="3"]
Expand Down
4 changes: 2 additions & 2 deletions course/lesson-1-what-code-is-like/ThreeCodeExamples.tscn
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[gd_scene format=3 uid="uid://braa0tkip7xle"]
[gd_scene format=3 uid="uid://ditbyiv3pnmie"]

[ext_resource type="PackedScene" uid="uid://cbxo4pmcdfrbf" path="res://course/common/GDScriptCodeExample.tscn" id="1"]
[ext_resource type="PackedScene" uid="uid://db1b2noi66ypn" path="res://course/common/GDScriptCodeExample.tscn" id="1"]
[ext_resource type="Script" uid="uid://shwmuwkj6rho" path="res://course/lesson-1-what-code-is-like/ThreeCodeExamples.gd" id="2"]
[ext_resource type="StyleBox" path="res://ui/theme/styles/panel_normal.tres" id="3"]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene format=3 uid="uid://bjx27t7guxew4"]
[gd_scene format=3 uid="uid://d1gxihk5px0uc"]

[ext_resource type="FontVariation" path="res://ui/theme/fonts/font_code.tres" id="1_uo855"]
[ext_resource type="Script" uid="uid://ch5qpoqookmfv" path="res://course/common/GDScriptCodeExample.gd" id="2"]
Expand Down
2 changes: 1 addition & 1 deletion course/lesson-12-using-variables/visuals/ErrorAccess.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene format=3 uid="uid://dxcnkjxe46pgy"]
[gd_scene format=3 uid="uid://cytbrg5vpqfxu"]

[ext_resource type="PackedScene" path="res://ui/components/popups/ErrorOverlayPopup.tscn" id="1"]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[gd_scene format=3 uid="uid://cg6v501gpsila"]

[ext_resource type="PackedScene" uid="uid://cbxo4pmcdfrbf" path="res://course/common/GDScriptCodeExample.tscn" id="1"]
[ext_resource type="PackedScene" uid="uid://db1b2noi66ypn" path="res://course/common/GDScriptCodeExample.tscn" id="1"]

[node name="Control" type="PanelContainer" unique_id=622919700]
custom_minimum_size = Vector2(0, 140)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[gd_scene format=3 uid="uid://c7jl0ulsxblv2"]

[ext_resource type="PackedScene" uid="uid://cbxo4pmcdfrbf" path="res://course/common/GDScriptCodeExample.tscn" id="1"]
[ext_resource type="PackedScene" uid="uid://db1b2noi66ypn" path="res://course/common/GDScriptCodeExample.tscn" id="1"]

[node name="Control" type="PanelContainer" unique_id=1867007233]
custom_minimum_size = Vector2(0, 100)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[gd_scene format=3 uid="uid://chqhrrmxjpwb5"]

[ext_resource type="PackedScene" uid="uid://cbxo4pmcdfrbf" path="res://course/common/GDScriptCodeExample.tscn" id="1"]
[ext_resource type="PackedScene" uid="uid://db1b2noi66ypn" path="res://course/common/GDScriptCodeExample.tscn" id="1"]

[node name="Control" type="PanelContainer" unique_id=59600733]
custom_minimum_size = Vector2(0, 100)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[gd_scene format=3 uid="uid://dehhbadatfkkx"]

[ext_resource type="PackedScene" uid="uid://cbxo4pmcdfrbf" path="res://course/common/GDScriptCodeExample.tscn" id="1"]
[ext_resource type="PackedScene" uid="uid://db1b2noi66ypn" path="res://course/common/GDScriptCodeExample.tscn" id="1"]

[node name="Control" type="PanelContainer" unique_id=261845054]
custom_minimum_size = Vector2(0, 100)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[gd_scene format=3 uid="uid://ds3v6x6qeaa2e"]

[ext_resource type="PackedScene" uid="uid://cbxo4pmcdfrbf" path="res://course/common/GDScriptCodeExample.tscn" id="1"]
[ext_resource type="PackedScene" uid="uid://db1b2noi66ypn" path="res://course/common/GDScriptCodeExample.tscn" id="1"]

[node name="Control" type="PanelContainer" unique_id=2137742672]
custom_minimum_size = Vector2(0, 100)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[gd_scene format=3 uid="uid://6eegrm35ff8u"]

[ext_resource type="PackedScene" uid="uid://cbxo4pmcdfrbf" path="res://course/common/GDScriptCodeExample.tscn" id="1"]
[ext_resource type="PackedScene" uid="uid://db1b2noi66ypn" path="res://course/common/GDScriptCodeExample.tscn" id="1"]

[node name="Control" type="PanelContainer" unique_id=1856726596]
custom_minimum_size = Vector2(0, 100)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene format=3 uid="uid://cgv2aafha7pwm"]
[gd_scene format=3 uid="uid://bbyxhxd0knirk"]

[ext_resource type="FontVariation" path="res://ui/theme/fonts/font_code.tres" id="1_2nxnl"]
[ext_resource type="Script" uid="uid://ch5qpoqookmfv" path="res://course/common/GDScriptCodeExample.gd" id="2"]
Expand Down
9 changes: 4 additions & 5 deletions course/lesson-13-conditions/visuals/ExampleElse.tscn
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[gd_scene format=3 uid="uid://crg1e4eimsv4p"]
[gd_scene format=3 uid="uid://csb2agp80pa04"]

[ext_resource type="PackedScene" path="res://ui/components/RunnableCodeExample.tscn" id="1"]
[ext_resource type="PackedScene" path="res://ui/components/OutputConsole.tscn" id="2"]
[ext_resource type="PackedScene" path="res://ui/components/RunnableExampleOutput.tscn" id="2"]
[ext_resource type="PackedScene" path="res://ui/components/RunnableCodeExampleDebugger.tscn" id="3"]

[sub_resource type="GDScript" id="1"]
script/source = "extends OutputConsole
script/source = "extends RunnableExampleOutput


@onready var speed = RunnableCodeExampleDebugger.UNINITIALIZED_VARIABLE_VALUE
Expand Down Expand Up @@ -47,9 +47,8 @@ gdscript_code = "func run():

[node name="OutputConsole" parent="RunnableCodeExample" unique_id=571951309 instance=ExtResource("2")]
layout_mode = 2
size_flags_horizontal = 3
script = SubResource("1")

[node name="RunnableCodeExampleDebugger" parent="." unique_id=2129553718 instance=ExtResource("3")]
layout_mode = 2
monitored_variables = ["speed"]
monitored_variables = Array[String](["speed"])
6 changes: 3 additions & 3 deletions course/lesson-13-conditions/visuals/ExampleHeal.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene format=3 uid="uid://bm7nm3lypp56h"]
[gd_scene format=3 uid="uid://cxoi5mrru8b6v"]

[ext_resource type="PackedScene" path="res://ui/components/RunnableCodeExample.tscn" id="1"]
[ext_resource type="PackedScene" uid="uid://dnivj2puspmd7" path="res://course/common/Robot.tscn" id="3"]
Expand Down Expand Up @@ -44,10 +44,10 @@ layout_mode = 2
gdscript_code = "func heal(amount):
health += amount"

[node name="RunButton" parent="RunnableCodeExample/Frame/ButtonsContainer" parent_id_path=PackedInt32Array(1055237080, 1323725507) index="1" unique_id=1248061364]
[node name="RunButton" parent="RunnableCodeExample/Content/Frame/ButtonsContainer" parent_id_path=PackedInt32Array(1055237080, 1323725507) index="1" unique_id=1248061364]
text = "heal(50)"

[node name="GDScriptCode" parent="RunnableCodeExample" index="1" unique_id=175998401]
[node name="GDScriptCode" parent="RunnableCodeExample/Content" parent_id_path=PackedInt32Array(1055237080, 934997768) index="2" unique_id=175998401]
visible = true
text = "func heal(amount):
health += amount"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ _health_bar = NodePath("HealthBar")

[node name="RunnableCodeExampleDebugger" parent="." unique_id=1312446814 instance=ExtResource("4")]
layout_mode = 2
monitored_variables = ["health"]
monitored_variables = Array[String](["health"])
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene format=3 uid="uid://wfhlg661g6rc"]
[gd_scene format=3 uid="uid://by3r8j3oldkfb"]

[ext_resource type="FontVariation" path="res://ui/theme/fonts/font_code.tres" id="1_p6hej"]
[ext_resource type="Script" uid="uid://ch5qpoqookmfv" path="res://course/common/GDScriptCodeExample.gd" id="2"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene format=3 uid="uid://cknuxbwy4hkix"]
[gd_scene format=3 uid="uid://dttejruueosmn"]

[ext_resource type="FontVariation" path="res://ui/theme/fonts/font_code.tres" id="1_dlt4h"]
[ext_resource type="Script" uid="uid://ch5qpoqookmfv" path="res://course/common/GDScriptCodeExample.gd" id="2"]
Expand Down
6 changes: 3 additions & 3 deletions course/lesson-13-conditions/visuals/ExampleJump.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene format=3 uid="uid://cm5wrao3hley5"]
[gd_scene format=3 uid="uid://c4owvcmthb35e"]

[ext_resource type="PackedScene" path="res://ui/components/RunnableCodeExample.tscn" id="1"]
[ext_resource type="PackedScene" uid="uid://dnivj2puspmd7" path="res://course/common/Robot.tscn" id="2"]
Expand All @@ -21,10 +21,10 @@ size_flags_horizontal = 3
[node name="RunnableCodeExample" parent="." unique_id=1624132670 instance=ExtResource("1")]
layout_mode = 2

[node name="ResetButton" parent="RunnableCodeExample/Frame/ButtonsContainer" parent_id_path=PackedInt32Array(1624132670, 1323725507) index="0" unique_id=1494799076]
[node name="ResetButton" parent="RunnableCodeExample/Content/Frame/ButtonsContainer" parent_id_path=PackedInt32Array(1624132670, 1323725507) index="0" unique_id=1494799076]
visible = false

[node name="RunButton" parent="RunnableCodeExample/Frame/ButtonsContainer" parent_id_path=PackedInt32Array(1624132670, 1323725507) index="1" unique_id=1248061364]
[node name="RunButton" parent="RunnableCodeExample/Content/Frame/ButtonsContainer" parent_id_path=PackedInt32Array(1624132670, 1323725507) index="1" unique_id=1248061364]
text = "Jump"

[node name="RobotJump" parent="RunnableCodeExample" unique_id=1011218082 instance=ExtResource("2")]
Expand Down
2 changes: 1 addition & 1 deletion course/lesson-14-multiplying/visuals/CodeLevelUpBasic.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene format=3 uid="uid://cjb6ja6xbmto0"]
[gd_scene format=3 uid="uid://s40ptipfkfg6"]

[ext_resource type="FontVariation" path="res://ui/theme/fonts/font_code.tres" id="1_xfu3p"]
[ext_resource type="Script" uid="uid://ch5qpoqookmfv" path="res://course/common/GDScriptCodeExample.gd" id="2"]
Expand Down
2 changes: 1 addition & 1 deletion course/lesson-14-multiplying/visuals/CodeLevelUpExp.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene format=3 uid="uid://bcmu105sje7hr"]
[gd_scene format=3 uid="uid://da724ui7e1pn4"]

[ext_resource type="FontVariation" path="res://ui/theme/fonts/font_code.tres" id="1_0m6b1"]
[ext_resource type="Script" uid="uid://ch5qpoqookmfv" path="res://course/common/GDScriptCodeExample.gd" id="2"]
Expand Down
2 changes: 1 addition & 1 deletion course/lesson-14-multiplying/visuals/CodeMaxHealth.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene format=3 uid="uid://rbwji6d7bly7"]
[gd_scene format=3 uid="uid://bami8rc5tr1bm"]

[ext_resource type="FontVariation" path="res://ui/theme/fonts/font_code.tres" id="1_tt1pm"]
[ext_resource type="Script" uid="uid://ch5qpoqookmfv" path="res://course/common/GDScriptCodeExample.gd" id="2"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene format=3 uid="uid://c3eu8n5v0i66a"]
[gd_scene format=3 uid="uid://drrrs4x6d5s64"]

[ext_resource type="Script" uid="uid://ch5qpoqookmfv" path="res://course/common/GDScriptCodeExample.gd" id="1"]
[ext_resource type="FontVariation" path="res://ui/theme/fonts/font_code.tres" id="1_svr0u"]
Expand Down
2 changes: 1 addition & 1 deletion course/lesson-14-multiplying/visuals/CodeStats.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene format=3 uid="uid://bvda7f1llkd6a"]
[gd_scene format=3 uid="uid://brir1f5lx8cn8"]

[ext_resource type="FontVariation" path="res://ui/theme/fonts/font_code.tres" id="1_d1dq1"]
[ext_resource type="Script" uid="uid://ch5qpoqookmfv" path="res://course/common/GDScriptCodeExample.gd" id="2"]
Expand Down
6 changes: 3 additions & 3 deletions course/lesson-14-multiplying/visuals/GraphExp.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene format=3 uid="uid://npktnl2j3nlm"]
[gd_scene format=3 uid="uid://ckca6ans6edkp"]

[ext_resource type="PackedScene" path="res://ui/components/RunnableCodeExample.tscn" id="1"]
[ext_resource type="PackedScene" uid="uid://ct75r36mr211y" path="res://course/lesson-14-multiplying/visuals/Graph.tscn" id="2"]
Expand All @@ -18,10 +18,10 @@ offset_bottom = 14.0
[node name="RunnableCodeExample" parent="." unique_id=18372269 instance=ExtResource("1")]
layout_mode = 2

[node name="ResetButton" parent="RunnableCodeExample/Frame/ButtonsContainer" parent_id_path=PackedInt32Array(18372269, 1323725507) index="0" unique_id=1494799076]
[node name="ResetButton" parent="RunnableCodeExample/Content/Frame/ButtonsContainer" parent_id_path=PackedInt32Array(18372269, 1323725507) index="0" unique_id=1494799076]
visible = false

[node name="RunButton" parent="RunnableCodeExample/Frame/ButtonsContainer" parent_id_path=PackedInt32Array(18372269, 1323725507) index="1" unique_id=1248061364]
[node name="RunButton" parent="RunnableCodeExample/Content/Frame/ButtonsContainer" parent_id_path=PackedInt32Array(18372269, 1323725507) index="1" unique_id=1248061364]
text = "Show Me"

[node name="Graph" parent="RunnableCodeExample" unique_id=1234894201 instance=ExtResource("2")]
Expand Down
6 changes: 3 additions & 3 deletions course/lesson-14-multiplying/visuals/GraphLinear.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene format=3 uid="uid://c72e8wfwl3drd"]
[gd_scene format=3 uid="uid://bvoulropx7cps"]

[ext_resource type="PackedScene" path="res://ui/components/RunnableCodeExample.tscn" id="1"]
[ext_resource type="PackedScene" uid="uid://ct75r36mr211y" path="res://course/lesson-14-multiplying/visuals/Graph.tscn" id="2"]
Expand All @@ -19,10 +19,10 @@ offset_bottom = 14.0
custom_minimum_size = Vector2(400, 450)
layout_mode = 2

[node name="ResetButton" parent="RunnableCodeExample/Frame/ButtonsContainer" parent_id_path=PackedInt32Array(1082971184, 1323725507) index="0" unique_id=1494799076]
[node name="ResetButton" parent="RunnableCodeExample/Content/Frame/ButtonsContainer" parent_id_path=PackedInt32Array(1082971184, 1323725507) index="0" unique_id=1494799076]
visible = false

[node name="RunButton" parent="RunnableCodeExample/Frame/ButtonsContainer" parent_id_path=PackedInt32Array(1082971184, 1323725507) index="1" unique_id=1248061364]
[node name="RunButton" parent="RunnableCodeExample/Content/Frame/ButtonsContainer" parent_id_path=PackedInt32Array(1082971184, 1323725507) index="1" unique_id=1248061364]
text = "Show Me"

[node name="Graph" parent="RunnableCodeExample" unique_id=1389122925 instance=ExtResource("2")]
Expand Down
6 changes: 3 additions & 3 deletions course/lesson-14-multiplying/visuals/LevelUpVisual.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene format=3 uid="uid://btlx7xajivlyy"]
[gd_scene format=3 uid="uid://b37xydoocfeub"]

[ext_resource type="PackedScene" path="res://ui/components/RunnableCodeExample.tscn" id="1"]
[ext_resource type="PackedScene" uid="uid://dnivj2puspmd7" path="res://course/common/Robot.tscn" id="2"]
Expand All @@ -21,10 +21,10 @@ offset_bottom = 14.0
[node name="RunnableCodeExample" parent="." unique_id=2047557930 instance=ExtResource("1")]
layout_mode = 2

[node name="ResetButton" parent="RunnableCodeExample/Frame/ButtonsContainer" parent_id_path=PackedInt32Array(2047557930, 1323725507) index="0" unique_id=1494799076]
[node name="ResetButton" parent="RunnableCodeExample/Content/Frame/ButtonsContainer" parent_id_path=PackedInt32Array(2047557930, 1323725507) index="0" unique_id=1494799076]
visible = false

[node name="RunButton" parent="RunnableCodeExample/Frame/ButtonsContainer" parent_id_path=PackedInt32Array(2047557930, 1323725507) index="1" unique_id=1248061364]
[node name="RunButton" parent="RunnableCodeExample/Content/Frame/ButtonsContainer" parent_id_path=PackedInt32Array(2047557930, 1323725507) index="1" unique_id=1248061364]
text = "Level Up!"

[node name="RobotLevel" parent="RunnableCodeExample" unique_id=373006991 instance=ExtResource("2")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene format=3 uid="uid://dbud3q0k811xv"]
[gd_scene format=3 uid="uid://bl7pngayxgua5"]

[ext_resource type="PackedScene" path="res://ui/components/RunnableCodeExample.tscn" id="1"]
[ext_resource type="PackedScene" uid="uid://dnivj2puspmd7" path="res://course/common/Robot.tscn" id="2"]
Expand Down Expand Up @@ -30,10 +30,10 @@ gdscript_code = "func level_up():
scale.y += 0.2
# ..."

[node name="RunButton" parent="RunnableCodeExample/Frame/ButtonsContainer" parent_id_path=PackedInt32Array(1665310658, 1323725507) index="1" unique_id=1248061364]
[node name="RunButton" parent="RunnableCodeExample/Content/Frame/ButtonsContainer" parent_id_path=PackedInt32Array(1665310658, 1323725507) index="1" unique_id=1248061364]
text = "level_up()"

[node name="GDScriptCode" parent="RunnableCodeExample" index="1" unique_id=175998401]
[node name="GDScriptCode" parent="RunnableCodeExample/Content" parent_id_path=PackedInt32Array(1665310658, 934997768) index="2" unique_id=175998401]
visible = true
text = "func level_up():
scale.x += 0.2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene format=3 uid="uid://be3ngw585seuo"]
[gd_scene format=3 uid="uid://cuurni085rn8k"]

[ext_resource type="PackedScene" path="res://ui/components/RunnableCodeExample.tscn" id="1"]
[ext_resource type="PackedScene" uid="uid://dnivj2puspmd7" path="res://course/common/Robot.tscn" id="2"]
Expand Down Expand Up @@ -29,10 +29,10 @@ gdscript_code = "func level_up():
scale += Vector2(0.2, 0.2)
# ..."

[node name="RunButton" parent="RunnableCodeExample/Frame/ButtonsContainer" parent_id_path=PackedInt32Array(907369061, 1323725507) index="1" unique_id=1248061364]
[node name="RunButton" parent="RunnableCodeExample/Content/Frame/ButtonsContainer" parent_id_path=PackedInt32Array(907369061, 1323725507) index="1" unique_id=1248061364]
text = "level_up()"

[node name="GDScriptCode" parent="RunnableCodeExample" index="1" unique_id=175998401]
[node name="GDScriptCode" parent="RunnableCodeExample/Content" parent_id_path=PackedInt32Array(907369061, 934997768) index="2" unique_id=175998401]
visible = true
text = "func level_up():
scale += Vector2(0.2, 0.2)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene format=3 uid="uid://duemfqc0e5ok3"]
[gd_scene format=3 uid="uid://b4dbr10jl4dut"]

[ext_resource type="PackedScene" path="res://ui/components/RunnableCodeExample.tscn" id="1"]
[ext_resource type="PackedScene" uid="uid://dnivj2puspmd7" path="res://course/common/Robot.tscn" id="2"]
Expand Down Expand Up @@ -35,10 +35,10 @@ layout_mode = 2
gdscript_code = "func move():
position += Vector2(20, 20)"

[node name="RunButton" parent="RunnableCodeExample/Frame/ButtonsContainer" parent_id_path=PackedInt32Array(1915915466, 1323725507) index="1" unique_id=1248061364]
[node name="RunButton" parent="RunnableCodeExample/Content/Frame/ButtonsContainer" parent_id_path=PackedInt32Array(1915915466, 1323725507) index="1" unique_id=1248061364]
text = "move()"

[node name="GDScriptCode" parent="RunnableCodeExample" index="1" unique_id=175998401]
[node name="GDScriptCode" parent="RunnableCodeExample/Content" parent_id_path=PackedInt32Array(1915915466, 934997768) index="2" unique_id=175998401]
visible = true
text = "func move():
position += Vector2(20, 20)"
Expand Down
Loading
Loading