Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
anosatsuk124 committed Aug 2, 2024
1 parent 2a0de71 commit 128d0f9
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 91 deletions.
2 changes: 2 additions & 0 deletions Demo/SourcesGenerated/MyEditor.generated.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
using Godot;
public partial class MyEditor : VBoxContainer
{
public TextEdit textEdit;
public override void _Ready()
{
var root_0 = this;
this.Name = "Editor";
var node_0 = new TextEdit();
this.textEdit = node_0;
node_0.PlaceholderText = "Enter your text here";
node_0.CustomMinimumSize = new Vector2(320, 320);
node_0.DrawSpaces = true;
Expand Down
12 changes: 12 additions & 0 deletions Demo/SourcesGenerated/MyMain.generated.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using Godot;
public partial class MyMain : Container
{
public override void _Ready()
{
var root_0 = this;
var scene_0 = GD.Load<PackedScene>("res://main.tscn");
var node_0 = scene_0.Instantiate<Main>();
root_0.AddChild(node_0);
var root_1 = node_0;
}
}
1 change: 1 addition & 0 deletions Demo/UI/MyEditor.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<VBoxContainer Name="Editor">
<TextEdit
id="textEdit"
PlaceholderText="Enter your text here"
CustomMinimumSize="(320, 320)"
DrawSpaces="true"
Expand Down
3 changes: 3 additions & 0 deletions Demo/UI/MyMain.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<Container>
<Main proto_scene="main.tscn" />
</Container>
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ dotnet run /path/to/xml/File.xml
## Sample Generated Code

> [!NOTE]
> For more detailed examples, see [`/examples`](https://github.com/anosatsuk124/GodotUIXml/tree/master/examples) directory.
> For more detailed examples, see [`/Demo/UI`](https://github.com/anosatsuk124/GodotUIXml/tree/master/Demo/UI) and [`/Demo/SourcesGenerated`](https://github.com/anosatsuk124/GodotUIXml/tree/master/Demo/SourcesGenerated) directory.
FileName: `TestNode.xml`

Expand Down
49 changes: 0 additions & 49 deletions examples/TestNode.generated.cs

This file was deleted.

12 changes: 0 additions & 12 deletions examples/TestNode.xml

This file was deleted.

22 changes: 0 additions & 22 deletions examples/TestNode2.generated.cs

This file was deleted.

7 changes: 0 additions & 7 deletions examples/TestNode2.xml

This file was deleted.

0 comments on commit 128d0f9

Please sign in to comment.