config
This commit is contained in:
parent
41d402625b
commit
af3c42f7e8
10 changed files with 170 additions and 75 deletions
23
test/app.ts
23
test/app.ts
|
|
@ -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)
|
||||
|
|
|
|||
Reference in a new issue