Skip to content

Commit 7f60868

Browse files
committed
Add gdscript examples
1 parent cf0930c commit 7f60868

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1-
[gd_scene load_steps=2 format=3 uid="uid://cwxrep5n7yml0"]
1+
[gd_scene load_steps=3 format=3 uid="uid://cwxrep5n7yml0"]
22

33
[ext_resource type="Script" path="res://addons/DebugGUI/Examples/DebugGUIExamples.cs" id="1_herxx"]
4+
[ext_resource type="Script" path="res://addons/DebugGUI/Examples/debugGUI_examples.gd" id="2_acgyp"]
45

5-
[node name="Example" type="Control"]
6+
[node name="C# Example" type="Control"]
67
layout_mode = 3
78
anchors_preset = 15
89
anchor_right = 1.0
910
anchor_bottom = 1.0
1011
grow_horizontal = 2
1112
grow_vertical = 2
1213
script = ExtResource("1_herxx")
14+
15+
[node name="gdscript example" type="Node" parent="."]
16+
script = ExtResource("2_acgyp")
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
extends Node
2+
3+
func _ready():
4+
DebugGUI.SetGraphProperties(self, "from gdscript", 0.0, 10.0, 1, Color.WHITE, true)
5+
DebugGUI.Log(self)
6+
DebugGUI.Log("This can be done from gdscript too!")
7+
8+
func _process(_delta):
9+
DebugGUI.Graph(self, sin(Time.get_ticks_msec() / 100.0))

0 commit comments

Comments
 (0)