@@ -1,25 +1,25 @@
|
||||
import { Control, Label } from "godot"
|
||||
import * as Godot from "godot"
|
||||
import { Component } from "react-godot-renderer"
|
||||
|
||||
|
||||
const GodotControl = Component.make(Control)
|
||||
const GodotLabel = Component.make(Label)
|
||||
const Control = Component.make(Godot.Control)
|
||||
const Label = Component.make(Godot.Label)
|
||||
|
||||
export function TestUi1Component() {
|
||||
return (
|
||||
<GodotControl
|
||||
<Control
|
||||
name="Root"
|
||||
anchor_left={0}
|
||||
anchor_top={0}
|
||||
anchor_right={0}
|
||||
anchor_bottom={0}
|
||||
>
|
||||
<GodotLabel
|
||||
<Label
|
||||
name="Label"
|
||||
text="This is a label"
|
||||
/>
|
||||
|
||||
<GodotControl name="Issou" />
|
||||
</GodotControl>
|
||||
<Control name="Control" />
|
||||
</Control>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user