How to get the standard background of Geyser.Label

Geyser is an object oriented framework for creating, updating and organizing GUI elements within Mudlet.
Post Reply
Mundron
Posts: 1
Joined: Sun Oct 07, 2018 9:43 am

How to get the standard background of Geyser.Label

Post by Mundron » Sun Oct 07, 2018 10:08 am

Hi,

I built an Interface using Geyser.Label. If I case a buff, the background of a certain label should become yellow and if the buff runs out, the label should have the standard background again. Is there a simple function to change the background to its standard color?

Jor'Mox
Posts: 1099
Joined: Wed Apr 03, 2013 2:19 am

Re: How to get the standard background of Geyser.Label

Post by Jor'Mox » Sun Oct 07, 2018 3:53 pm

Labels don't have a "standard color" in a general sense. So if you want to return it to whatever color it had before you changed it to yellow, your code will have to know or in some other way "remember" what that color was, so it can set it.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests