The Daily Click ::. Forums ::. Klik Coding Help ::. Transparent background for IconView object?
 

Post Reply  Post Oekaki 
 

Posted By Message

Strife

Administrator
Der Dairy Crick

Registered
  21/11/2002
Points
  2305

VIP MemberGOTW AWARD! -Astro Dude - part 1 GOTM JULY - 2009 - 3RD PLACE!It's-a me, Mario!Has Donated, Thank You!I donated an open source project
20th April, 2010 at 11:29:08 -

So here's my dilemma. I'm using the IconView object in order to display a list of spells in a spellbook, like so:

Image

Problem is, I have to use a solid background for the list, which clashes a little bit with the texture of the page. Is there any way to make the background transparent? Alternately, is there a way to add a background image to the IconView object? At least in that case, I could just add an appropriate texture.

 

Hernan



Registered
  04/03/2003
Points
  707

VIP Member
20th April, 2010 at 12:16:29 -

I know a trick to do this, but it could be very awkward. I kinda think it's easier to make some kind of custom list using actives and strings. Anyway, it goes like this:
-Create a subapp, point it to another frame and set it to popup window
-In the other frame, place the iconview object. Set the framesize to the same size of the iconview object.
-Place the window transparency object (http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=167583) in the frame. Turn "subapp use" on
-Add the event Start of frame -> Set alpha color to (255,255,255) (leave the background color of the iconview object white)

Now you have a iconview object with a transparent background. But the catch is that the iconview object is now in another frame and you have to communicate between subapps.

 
This space is for rent

Strife

Administrator
Der Dairy Crick

Registered
  21/11/2002
Points
  2305

VIP MemberGOTW AWARD! -Astro Dude - part 1 GOTM JULY - 2009 - 3RD PLACE!It's-a me, Mario!Has Donated, Thank You!I donated an open source project
20th April, 2010 at 13:01:07 -

Dang, that's a clever trick. I've actually been meaning to get my hands on an extension like that for a different game.

Since this is (currently) the only way to get transparency in the IconView object, I'll see if I can figure something out. Thanks for the tips!

If anyone else has any additional ideas, I'm all ears.

 
   

Post Reply



 



Advertisement

Worth A Click