@@ -2,24 +2,24 @@ import { Control, Label } from "godot"
|
|||||||
import { Component } from "react-godot-renderer"
|
import { Component } from "react-godot-renderer"
|
||||||
|
|
||||||
|
|
||||||
const ControlFC = Component.make(Control)
|
const GodotControl = Component.make(Control)
|
||||||
const LabelFC = Component.make(Label)
|
const GodotLabel = Component.make(Label)
|
||||||
|
|
||||||
export function TestUi1Component() {
|
export function TestUi1Component() {
|
||||||
return (
|
return (
|
||||||
<ControlFC
|
<GodotControl
|
||||||
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
|
<GodotLabel
|
||||||
name="Label"
|
name="Label"
|
||||||
text="This is a label"
|
text="This is a label"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<node2D name="Issou" />
|
<node2D name="Issou" />
|
||||||
</ControlFC>
|
</GodotControl>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user