PDA

View Full Version : layout for components


kinwashi
21st September 2001, 16:03
I'm trying to add a <layout> on top of the normal component stuff, with borders around the whole components. so I got all the corners and stretches, but my problem is the middle part, which I want transparent. I tried setting the layout background to a transparent png, didn't work. I also tried to remove the background tag, didn't work either. so how can I add another frame on top of everything, and have the middle part transparent, so my playlist etc is visible?

I hope this makes sence :D

kinwashi
21st September 2001, 16:17
nevermind, I just realized there's no need for a second layout, since if the <component/> is on the bottom of the XML, I should be able to put stuff on top of it without a new layout (right?). I guess alpha blending on top of the component content isn't working?

Francis
21st September 2001, 20:39
Originally posted by kinwashi
nevermind, I just realized there's no need for a second layout, since if the <component/> is on the bottom of the XML, I should be able to put stuff on top of it without a new layout (right?). I guess alpha blending on top of the component content isn't working?

I have no idea what is it you're trying to do :) Could you explain again ? :)

Francis.

jakov.sosic
21st September 2001, 21:04
I think it's impossible to do that.

Components are on top of layout, so if your layout is transparent, and component is (offcourse) in front of that layout, so the transparent parts are hidden with component.

Or maybe there is a way that I don't know for?
:confused:

kinwashi
21st September 2001, 21:22
ok, I'll just explain what I want to do instead :D

http://www.kinwashi.org/componentcorner.jpg

the top one is how it looks now. the bottom one is the way I want it to look. see the shadows etc? I want that to be shown on top of whatever the actual component contains.

YtseJam
21st September 2001, 21:33
OMG, is that the playlist from y'r blueish skin? :)
err, sorry to intrude, you guys continue...

<happy>

:)

kinwashi
21st September 2001, 21:41
Originally posted by nant`
OMG, is that the playlist from y'r blueish skin? :)
err, sorry to intrude, you guys continue...

<happy>

:)

yes it is! but there's still a couple of things I haven't figured out how to achieve yet (the problem in this post being one of them). I want to use a truetype font for the title, and I want it aligned right. I also want to be able to use png's for the backgrounds of horizontal and vertical sliders. So I just have to wait till that works :D

YtseJam
21st September 2001, 21:45
Sorry to post again, I'm trying to stay awake... :)
00:50 here in Israel...

Francisssss, please help The Master! :)

lunarboy1
22nd September 2001, 02:27
need to use regions. Regions will work nice. May be a bitch to script, but regions will do what you want :) check out my winique skin and in the mid mode start the AVS.

Naamloos
22nd September 2001, 06:01
I see what you mean, create a bitmap wich contains the actual form of the blue screen.. (with a curved corner)
Now in a script using regions, load that bitmap ;)
Maybe lunarboy1 can help you with it ? ;)

(Can i post the script ? or do you do that? )

lunarboy1
22nd September 2001, 06:31
you still won't get that nice shaded look even with regions. sorry Kin.

no*name: if you wanna throw a little example together, thats fine. If you don't get to it then i'll catch it and do it tomorrow most likely. :)

Francis
22nd September 2001, 08:23
Originally posted by kinwashi
ok, I'll just explain what I want to do instead :D

http://www.kinwashi.org/componentcorner.jpg

the top one is how it looks now. the bottom one is the way I want it to look. see the shadows etc? I want that to be shown on top of whatever the actual component contains.

As lunarboy said it's not possible to do this yet, the closest thing you can do is a 1 bit transparency region between the component and the rest of the layout. I know it sucks... eventually components will be handled in the alpha tree like other objects but that's not yet possible.

I don't think the region would work for you either because of the blending.

I don't really see a workaround, except rearranging it so the component has nothing over it.

The thing is, even when it will work, this kind of things (ui elements over a playlist) will slow the scrolling of a playlist, because suddently you cannot optimize the blit from screen to screen but everything has to be redrawn in a buffer.

Francis.

kinwashi
22nd September 2001, 15:02
ok, I guess this goes back to the sketchboard again...

lunarboy1
22nd September 2001, 17:12
it still looks pretty damn cool.

kinwashi
22nd September 2001, 17:51
thanks lunarboy

I've changed the components so nothing will overlap. i don't like it as much as the original idea, but what to do... ;)

screenshot can be found here (http://www.kinwashi.org/probecomponent.jpg) if anyone's interested.

YtseJam
22nd September 2001, 18:20
Wooo... Very perty!! :)

Hey, umm, I dunno if you know it(I think you do), but near the Sort button, the text in the right is a little too high. (Where it says "working playlist")

Sorry to "bitch" ;)

kinwashi
22nd September 2001, 18:46
Originally posted by nant`
Wooo... Very perty!! :)

Hey, umm, I dunno if you know it(I think you do), but near the Sort button, the text in the right is a little too high. (Where it says "working playlist")

Sorry to "bitch" ;)

yeh I know, just haven't fixed it yet :D resize bar and sliders arent done either, and the buttons need a little work.

nIRV
23rd September 2001, 02:18
nice work there kinwashi, as usual :) keep up the work...

peace

Naamloos
23rd September 2001, 07:39
Verry nice as we expected from you :D
How did you skinned the [add] [del] and the pl buttons?

molotov
23rd September 2001, 16:41
...is f*cking amazing. i've got wa3blue - now i want the rest. :D

I actually prefer the way you've got the playlist now, even tho there's no shadow.

mark e
23rd September 2001, 17:39
http://www.sargessmilies.homestead.com/files/Smilies/Sarge/Yikes_anim.gif

Wow, OMG, when or where can I get it... http://www.sargessmilies.homestead.com/files/Smilies/Sarge/Blurp_anim.gif

Good work Kinwashi. You're the best... ;) :D

jakov.sosic
23rd September 2001, 17:56
Kinwashi you rule!

Although I don't prefer skins that look like this one
(I mean the shape of main window), this is really excelent work.

Spoonman
24th September 2001, 12:51
I'm coming into this thread late, but I'm wondering if you could cheat a little, Kinwashi. As in, instead of having the center area of that overlay completely transparent, give it an alpha of 1 (assuming opaque is 255). You should still be able to see everything through it with minimal interference.