modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/ExportedToolButtons.cs
raw symbols SCIP| 1 | using Godot; |
| 2 | using System; |
| 3 | |
| 4 | [Tool] |
| 5 | public partial class ExportedToolButtons : GodotObject |
| 6 | { |
| 7 | [ExportToolButton("Click me!")] |
| 8 | public Callable MyButton1 => Callable.From(() => { GD.Print("Clicked MyButton1!"); }); |
| 9 | |
| 10 | [ExportToolButton("Click me!", Icon = "ColorRect")] |
| 11 | public Callable MyButton2 => Callable.From(() => { GD.Print("Clicked MyButton2!"); }); |
| 12 | } |