-
Notifications
You must be signed in to change notification settings - Fork 65
Themes for Script Creators
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:
This will load the Master Theme into the 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:
A dropdown box will then appear where you can select the Theme Component to assign to that Block Item:
To remove a Theme Component from a Block Item, click the X button to the right of the dropdown box.



