mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
update c# class examples
This commit is contained in:
@@ -127,10 +127,9 @@ like this:
|
||||
|
||||
#if TOOLS
|
||||
using Godot;
|
||||
using System;
|
||||
|
||||
[Tool]
|
||||
public class CustomNode : EditorPlugin
|
||||
public partial class CustomNode : EditorPlugin
|
||||
{
|
||||
public override void _EnterTree()
|
||||
{
|
||||
@@ -191,10 +190,9 @@ clicked. For that, we'll need a script that extends from
|
||||
.. code-tab:: csharp
|
||||
|
||||
using Godot;
|
||||
using System;
|
||||
|
||||
[Tool]
|
||||
public class MyButton : Button
|
||||
public partial class MyButton : Button
|
||||
{
|
||||
public override void _EnterTree()
|
||||
{
|
||||
@@ -240,10 +238,9 @@ dialog. For that, change the ``custom_node.gd`` script to the following:
|
||||
|
||||
#if TOOLS
|
||||
using Godot;
|
||||
using System;
|
||||
|
||||
[Tool]
|
||||
public class CustomNode : EditorPlugin
|
||||
public partial class CustomNode : EditorPlugin
|
||||
{
|
||||
public override void _EnterTree()
|
||||
{
|
||||
@@ -366,10 +363,9 @@ The script could look like this:
|
||||
|
||||
#if TOOLS
|
||||
using Godot;
|
||||
using System;
|
||||
|
||||
[Tool]
|
||||
public class CustomDock : EditorPlugin
|
||||
public partial class CustomDock : EditorPlugin
|
||||
{
|
||||
Control dock;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user