Label colour

Doctor Agon
12 Oct 2017, 20:07

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.


K.V.
12 Oct 2017, 20:45

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


Doctor Agon
12 Oct 2017, 21:51

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


K.V.
12 Oct 2017, 22:55

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


Doctor Agon
12 Oct 2017, 23:01

Thanks again KV


Forgewright
04 Nov 2017, 22:49

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.