Skip to content

Commit d5d7a6e

Browse files
committed
Added new demo scene
1 parent 47e6959 commit d5d7a6e

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using Godot;
2+
3+
[Tool]
4+
public partial class SayYourName : Node2D {
5+
public void ExtendInspectorBegin(ExtendableInspector inspector) {
6+
Button button = new() {
7+
Text = "Say your name"
8+
};
9+
button.Pressed += () => GD.Print(Name);
10+
inspector.AddCustomControl(button);
11+
}
12+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[gd_scene load_steps=2 format=3 uid="uid://ctp20bfwuqytg"]
2+
3+
[ext_resource type="Script" path="res://addons/extendable_inspector_for_cs/example/SayYourName/SayYourName.cs" id="1_l477p"]
4+
5+
[node name="Node2DWithName" type="Node2D"]
6+
script = ExtResource("1_l477p")

0 commit comments

Comments
 (0)