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