This commit is contained in:
Asaki Yuki 2026-02-23 15:58:03 +07:00
parent 41d402625b
commit af3c42f7e8
10 changed files with 170 additions and 75 deletions

View file

@ -1,16 +1,11 @@
import { Anchor, Label, Modify } from ".."
import { Label, Modify, Panel } from ".."
const label = Label(
{
text: "Hello World from my Custom UI!",
shadow: true,
anchor: Anchor.TOP_MIDDLE,
offset: [0, 10],
},
"test",
).addBindings({
source_property_name: `[ custom_abs(#a) ]`,
target_property_name: "#text",
})
const panel = Panel()
Modify("start", "start_screen_content").insertChild(label)
panel.addChild(
Label({
text: "Hello World",
}),
)
Modify("start", "start_screen_content").insertChild(panel)