@@ -3,7 +3,7 @@ import { useState } from "react"
|
|||||||
import { Component } from "react-godot-renderer"
|
import { Component } from "react-godot-renderer"
|
||||||
|
|
||||||
|
|
||||||
const HFlowContainer = Component.make(Godot.HFlowContainer)
|
const VFlowContainer = Component.make(Godot.VFlowContainer)
|
||||||
const Label = Component.make(Godot.Label)
|
const Label = Component.make(Godot.Label)
|
||||||
const TextEdit = Component.make(Godot.TextEdit)
|
const TextEdit = Component.make(Godot.TextEdit)
|
||||||
const Button = Component.make(Godot.Button)
|
const Button = Component.make(Godot.Button)
|
||||||
@@ -23,7 +23,7 @@ export function TestUi1Component() {
|
|||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<HFlowContainer
|
<VFlowContainer
|
||||||
name="Root"
|
name="Root"
|
||||||
anchor_left={0}
|
anchor_left={0}
|
||||||
anchor_top={0}
|
anchor_top={0}
|
||||||
@@ -47,6 +47,6 @@ export function TestUi1Component() {
|
|||||||
name="Button"
|
name="Button"
|
||||||
text="Ok"
|
text="Ok"
|
||||||
/>
|
/>
|
||||||
</HFlowContainer>
|
</VFlowContainer>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user