Add custom button to test scene
This commit is contained in:
parent
112b830078
commit
6f35786a7a
|
@ -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"
|
||||
|
|
|
@ -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")
|
Loading…
Reference in New Issue