Label colour

I'd like to be able to change the colour of the names(labels) for the various panes, eg. Compass, Inventory, Places and Objects., without changing the main game theme. Basically because I like the classic look.


Hello!

JS.setCss ("#inventoryLabel", "color:red")
JS.setCss ("#placesObjectsLabel", "color:purple")
JS.setCss ("#compassLabel", "color:green")

image

https://github.com/ThePix/quest/wiki/UI-Part-02:-HTML-elements-and-CSS-attributes


Thanks KV. I knew it would be something simple. I thought I'd checked all the documentation. I must've missed this.


You're welcome!

...and you didn't miss it in the docs.

It's on Pixie's GitHub wiki (along with a LOT of other cool stuff):

https://github.com/ThePix/quest/wiki

The files:

https://github.com/ThePix/quest


EDIT:

I'm especially fond of YAML to Quest (using Ruby).


Thanks again KV


This will change all color aspects of the panes if you want all panes the same. Copied from The Pixie's earlier post....

JS.setPanes("red", "blue", "yellow", "green")

red is the object text
blue is the background
yellow is the selected object text
green is the selected object text background

Place this code in Game Start Script and change colors as needed.


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums