using Godot;
using Godot.NativeInterop;
partial class ExportedToolButtons
{
#pragma warning disable CS0109 // Disable warning about redundant 'new' keyword
///
/// Cached StringNames for the properties and fields contained in this class, for fast lookup.
///
public new class PropertyName : global::Godot.GodotObject.PropertyName {
///
/// Cached name for the 'MyButton1' property.
///
public new static readonly global::Godot.StringName @MyButton1 = "MyButton1";
///
/// Cached name for the 'MyButton2' property.
///
public new static readonly global::Godot.StringName @MyButton2 = "MyButton2";
}
///
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
protected override bool GetGodotClassPropertyValue(in godot_string_name name, out godot_variant value)
{
if (name == PropertyName.@MyButton1) {
value = global::Godot.NativeInterop.VariantUtils.CreateFrom(this.@MyButton1);
return true;
}
if (name == PropertyName.@MyButton2) {
value = global::Godot.NativeInterop.VariantUtils.CreateFrom(this.@MyButton2);
return true;
}
return base.GetGodotClassPropertyValue(name, out value);
}
///
/// Get the property information for all the properties declared in this class.
/// This method is used by Redot to register the available properties in the editor.
/// Do not call this method.
///
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
internal new static global::System.Collections.Generic.List GetGodotPropertyList()
{
var properties = new global::System.Collections.Generic.List();
properties.Add(new(type: (global::Godot.Variant.Type)25, name: PropertyName.@MyButton1, hint: (global::Godot.PropertyHint)39, hintString: "Click me!", usage: (global::Godot.PropertyUsageFlags)4, exported: true));
properties.Add(new(type: (global::Godot.Variant.Type)25, name: PropertyName.@MyButton2, hint: (global::Godot.PropertyHint)39, hintString: "Click me!,ColorRect", usage: (global::Godot.PropertyUsageFlags)4, exported: true));
return properties;
}
#pragma warning restore CS0109
}