@@ -3,11 +3,10 @@ import { useState } from "react"
|
||||
import { Component } from "react-godot-renderer"
|
||||
|
||||
|
||||
const VFlowContainer = Component.make(Godot.VFlowContainer)
|
||||
const Label = Component.make(Godot.Label)
|
||||
const TextEdit = Component.make(Godot.TextEdit)
|
||||
const Button = Component.make(Godot.Button)
|
||||
const TestUi1Scene = Component.fromScene("res://src/TestUi1.tscn")
|
||||
const VFlowContainer = Component.fromClass(Godot.VFlowContainer)
|
||||
const Label = Component.fromClass(Godot.Label)
|
||||
const TextEdit = Component.fromClass(Godot.TextEdit)
|
||||
const Button = Component.fromClass(Godot.Button)
|
||||
|
||||
export function TestUi1Component() {
|
||||
const [text, setText] = useState("Default text")
|
||||
@@ -26,10 +25,6 @@ export function TestUi1Component() {
|
||||
return (
|
||||
<VFlowContainer
|
||||
name="Root"
|
||||
anchor_left={0}
|
||||
anchor_top={0}
|
||||
anchor_right={0}
|
||||
anchor_bottom={0}
|
||||
>
|
||||
<Label
|
||||
name="Label"
|
||||
|
||||
@@ -3,10 +3,10 @@ import { useState } from "react"
|
||||
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 CheckBox = Component.make(Godot.CheckBox)
|
||||
const HFlowContainer = Component.fromClass(Godot.HFlowContainer)
|
||||
const VFlowContainer = Component.fromClass(Godot.VFlowContainer)
|
||||
const Label = Component.fromClass(Godot.Label)
|
||||
const CheckBox = Component.fromClass(Godot.CheckBox)
|
||||
const TestUi1FC = Component.fromScene("res://src/TestUi1.tscn")
|
||||
|
||||
export function TestUi2Component() {
|
||||
|
||||
Reference in New Issue
Block a user