Backgrounds
Backgrounds fill the area behind a layout. They are also used by the palladium:power_tree component to draw the area behind the ability tree.
A background is a typed object, like layouts and components:
"background": {
"type": "palladium:sprite",
"sprite": "palladium:background/default"
}
As a shortcut, you can write a plain texture path instead of an object. It is read as a palladium:repeating_texture background with a 16x16 tile size, which is exactly right for block textures:
"background": "minecraft:textures/block/stone.png"
If you leave the background field out entirely, the simple layout uses the default sprite background (palladium:background/default), the same panel texture the built-in power screen uses. To have no background at all, set it to the palladium:empty type.
The texture fields of the texture-based backgrounds accept both plain texture paths and dynamic textures, the same texture reference format used by render layers.
Background Types
Empty
palladium:emptyRepeating Texture
palladium:repeating_texture- Settings
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
texture | Texture Reference | Texture path. | / | |
width | Integer (>= 0) | Width of the texture file. | 256 | |
height | Integer (>= 0) | Height of the texture file. | 256 |
Sprite
palladium:sprite- Settings
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
sprite | Identifier | Sprite ID. | / |
Texture
palladium:texture- Settings
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
texture | Texture Reference | Texture path. | / | |
width | Integer (>= 0) | Width of the texture file. | 256 | |
height | Integer (>= 0) | Height of the texture file. | 256 |