Ui XML Constant - BLKTower/TestWiki GitHub Wiki

Table of Contents

Defines a constant value that can be used in attributes. Constants do not require binding and are referenced by prefixing a '@' to their name.

Example Usage

<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: image

Related Trigger Function(s):

  • None.

Define a constant value that can be used in attributes

This frame cannot have child frame.

This frame doesn't support common attributes.

name

Value type: string

Description

The name of the constant.

Example Usage

<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>

Related Trigger Function(s):

  • None.

value

Value type: string

Description

The value of the constant.

Example Usage

<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>

Related Trigger Function(s):

  • None.

⚠️ **GitHub.com Fallback** ⚠️