Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Themes for Script Creators

Ben Wallis edited this page Jul 6, 2015 · 1 revision

A Theme is a collection of Text Colours, Background Colours, and Border Colours, known as Theme Components. A Theme Component comprises of a colour, a name, and a target block item type (Text, Background or Border).

Within an item filter script, Theme Components are designated by adding a "Theme Component Tag" to the relevant Block Item, like so:

SetBackgroundColor 255 0 255 # Rare Items Background

When a script is loaded, all of the Theme Component Tags are used to build a Master Theme for that script. This is the collection of Theme Components that are available for use in that script. If a Theme Component Tag has multiple colours defined within a script - which it shouldn't - the colour assigned to the first occurrence of the tag is used. You can edit the Master Theme for a script by clicking the Edit Master Theme button on the ribbon:

Edit Master Theme Button

This will load the Master Theme into the Theme Editor:

Master Theme in Theme Editor

From within the Theme Editor you can add and remove Theme Components, rename them, and see how many times they are used in the owning script.

To assign a Theme Component to a Block Item, simply click Add Theme Tag on the block item:

Add Theme Tag Button

A dropdown box will then appear where you can select the Theme Component to assign to that Block Item:

Theme Component Selection Dropdown

To remove a Theme Component from a Block Item, click the X button to the right of the dropdown box.

Clone this wiki locally