Layering Miniconsoles

Post Reply
Thylacine
Posts: 28
Joined: Sun May 10, 2009 5:04 am

Layering Miniconsoles

Post by Thylacine »

I've been attempting to layer miniconsoles for a 'chat' display using showWindow/hideWindow.

For the most part, I think it should work however whenever one miniconsole is layered by another, even if it's hidden immediately, the first becomes invisible and unwritable.

I've tried setting the alpha to both 0/100 with setBackgroundColor, but no luck.

Once again, Arch64, latest git build. Guessing labels and the last parameter could be used instead, but, well, if it's slower :P

Here's the current (hacked) script, if it helps:

Code: Select all

-- Tabbed Chat init files --
-- They're all hidden by default

--chat_current = "chatall"

--"All" Tab
createMiniConsole("chatall", global_width - 323,25, 308, 400)
setBackgroundColor("chatall", 10,10,10, 0)
--hideWindow("chatall")

--"Guild" Tab
createMiniConsole("chatguild", global_width - 323,25, 308, 400)
setBackgroundColor("chatguild", 10,10,10, 0)
--hideWindow("chatguild")

--"House" Tab
createMiniConsole("chathouse", global_width - 323,25, 308, 400)
setBackgroundColor("chathouse", 10,10,10, 0)
--hideWindow("chathouse")

--"Market" Tab
createMiniConsole("chatmarket", global_width -323,25, 308, 400)
setBackgroundColor("chatmarket", 10,10,10, 0)
--hideWindow("chatmarket")

--"Web" Tab
createMiniConsole("chatweb", global_width - 323,25, 308, 400)
setBackgroundColor("chatweb", 10,10,10, 0)
--hideWindow("chatweb")

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Layering Miniconsoles

Post by Heiko »

fixed

Post Reply