This commit is contained in:
Asaki Yuki 2026-01-24 21:42:11 +07:00
parent 99c294a9ba
commit 3719a3f6b3
6 changed files with 57 additions and 111 deletions

View file

@ -1,14 +1,10 @@
import { BagBinding, f, ItemAuxID, Label } from ".."
import { Panel } from ".."
const text = Label({
text: "#text",
[BagBinding.ITEM_ID_AUX]: ItemAuxID.DIAMOND,
"#x": 2,
const panel = Panel()
panel.addBindings({
source_property_name: `[ $abc ]`,
target_property_name: "#text",
})
text.addBindings({
source_property_name: f(`Test: #{ -(${BagBinding.ITEM_ID_AUX} % #x) == 0 }`),
target_property_name: BagBinding.TEXT,
})
console.log(text)
console.log(panel)