Dynamically changing backgroud color of the whole windows.

Post Reply
ftpd
Posts: 8
Joined: Wed Feb 01, 2017 10:13 am

Dynamically changing backgroud color of the whole windows.

Post by ftpd »

Is it even possible? I would like to permanently change bg color after receiving specified text from mud (permanently - until the 'cancelling' text, but nevermind).

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

Re: Dynamically changing backgroud color of the whole window

Post by Jor'Mox »

You can change background colors using the setBackgroundColor function, though it only works for mini consoles and labels, not the main window. The syntax is as follows: setBackgroundColor("console or label name", red, blue, green, transparency)

RGB and transparency values must be from 0 to 255.

ftpd
Posts: 8
Joined: Wed Feb 01, 2017 10:13 am

Re: Dynamically changing backgroud color of the whole window

Post by ftpd »

Yes, I know. I thought there is also something for the main window. Ok, thanks for the answer.

User avatar
Vadi
Posts: 5035
Joined: Sat Mar 14, 2009 3:13 pm

Re: Dynamically changing backgroud color of the whole window

Post by Vadi »

Yep, you can't do that yet. You can change the border colour though: http://wiki.mudlet.org/w/Manual:Lua_Fun ... orderColor

Post Reply