Users browsing this thread: 3 Guest(s)
Struggle's Scripts
#9
(12-29-2014, 05:21 PM)Tcll Wrote: here's a little trickery for ya:

>>> staack = {}
>>> stack[0] = {}
>>> stack[5] = {}
>>> stack[2] = {}
>>> stack[4] = {}
>>> list(reversed([ _k for _k in stack ]))
[ 5, 4, 2, 0 ]

I'm doing this for my GUI's stack as I need to draw from top to bottom.
(it doesn't matter if there's missing layers such as 3 or 1)

what the stack does is draw the GUI with only a single transparency affection, so the buttons on the UI aren't affected by the BG, and display the model as they're supposed to Smile
Oh I see... You create an array and navigate to existing layers and then draw the model, as it's supposed to be, right?
Reply
Thanked by:


Messages In This Thread
Struggle's Scripts - by Struggleton! - 12-12-2014, 09:38 PM
RE: Struggle's Scripts - by Struggleton! - 12-12-2014, 10:39 PM
RE: Struggle's Scripts - by puggsoy - 12-13-2014, 12:19 AM
RE: Struggle's Scripts - by Struggleton! - 12-13-2014, 12:57 AM
RE: Struggle's Scripts - by Tcll - 12-13-2014, 11:21 AM
RE: Struggle's Scripts - by Struggleton! - 12-13-2014, 12:56 PM
RE: Struggle's Scripts - by Struggleton! - 12-28-2014, 11:33 PM
RE: Struggle's Scripts - by Tcll - 12-29-2014, 05:21 PM
RE: Struggle's Scripts - by Struggleton! - 12-29-2014, 08:47 PM
RE: Struggle's Scripts - by Tcll - 12-29-2014, 09:01 PM
RE: Struggle's Scripts - by Struggleton! - 01-17-2015, 08:25 PM
RE: Struggle's Scripts - by Struggleton! - 01-24-2015, 10:48 PM
RE: Struggle's Scripts - by Struggleton! - 02-17-2015, 06:38 AM

Forum Jump: