Add custom button to test scene

This commit is contained in:
James Skemp 2023-12-02 17:22:31 -06:00
parent 112b830078
commit 6f35786a7a
2 changed files with 15 additions and 0 deletions

View File

@ -14,6 +14,10 @@ config/name="Godot 4 Custom Plugin Tutorial"
config/features=PackedStringArray("4.2", "Mobile")
config/icon="res://icon.svg"
[editor_plugins]
enabled=PackedStringArray("res://addons/my_custom_node/plugin.cfg")
[rendering]
renderer/rendering_method="mobile"

11
test.tscn Normal file
View File

@ -0,0 +1,11 @@
[gd_scene load_steps=2 format=3 uid="uid://cvwcscy4ig16x"]
[ext_resource type="Script" path="res://addons/my_custom_node/my_button.gd" id="1_d8oyg"]
[node name="Node" type="Node"]
[node name="MyButton" type="Button" parent="."]
offset_right = 8.0
offset_bottom = 8.0
text = "Test custom button"
script = ExtResource("1_d8oyg")