Ui XML Constant - funovus/editor-wiki GitHub Wiki
Table of Contents
- [Ui XML Reference\Constant](#ui-xml-referenceconstant)
* [name](#name)
* [value](#value)
|
Ui XML Reference\Constant
Defines a constant value that can be used in attributes. Constants do not require binding and are referenced by prefixing a '@' to their name.
<Frame xmlns:bind="https://platform.wildsky.dev/xml/ui/bind" backgroundImage="frame01_blue">
<Constant name="image" value="cart" />
<Frame backgroundImage="@image" height="200" width="200" />
</Frame>
This XML produces the following UI:
Define a constant value that can be used in attributes
This frame cannot have child frame.
This frame doesn't support common attributes.
Value type: string
<Frame xmlns:bind="https://platform.wildsky.dev/xml/ui/bind" backgroundImage="frame01_blue">
<Constant name="image" value="cart" />
<Frame backgroundImage="@image" height="200" width="200" />
</Frame>
Value type: string
<Frame xmlns:bind="https://platform.wildsky.dev/xml/ui/bind" backgroundImage="frame01_blue">
<Constant name="image" value="cart" />
<Frame backgroundImage="@image" height="200" width="200" />
</Frame>