|
3 registered members (Quad, TipmyPip, 1 invisible),
2,064
guests, and 3
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Buttonlayer
#303513
12/29/09 14:10
12/29/09 14:10
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
OP
Serious User
|
OP
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
Hi!
I have a panel with a slider on it. I used a button for the background of the slider. But if a button is under the slider it's not possible to move it anymore.
It would be much better if the collision is sorted by the order of the definitions in the panel. I mean that the last defined element has a higher layer than the others. I'm not sure if it is rendered in this way but if not it should.
This would give us more flexibility.
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
Re: Buttonlayer
[Re: Dark_samurai]
#303515
12/29/09 14:44
12/29/09 14:44
|
Joined: Jan 2004
Posts: 2,062 Hamburg, Germany
slacer
Expert
|
Expert
Joined: Jan 2004
Posts: 2,062
Hamburg, Germany
|
Check the manual for panel->layer Determines the order of a panel, text, view, view entity, or sky entity, if it overlaps with other objects. Normally, elements with higher layer value will be placed over elements with lower layer value.
The layer parameter can only be set in a definition. For changing it during gameplay, use layer_sort
|
|
|
Re: Buttonlayer
[Re: slacer]
#303526
12/29/09 18:06
12/29/09 18:06
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
OP
Serious User
|
OP
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
I know that layers are implemented for panels.
But I talk about elements inside a panel (like buttons, sliders, ...).
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
Re: Buttonlayer
[Re: Dark_samurai]
#303568
12/29/09 23:47
12/29/09 23:47
|
Joined: Nov 2007
Posts: 1,143 United Kingdom
DJBMASTER
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,143
United Kingdom
|
I have this feature in my Easy Scripter to allow you to layer panel elements. What I do is assign a layer id to each element, aggregate the layer values for all elements, remove any duplicate values and finally sort them numerically. Basically first write which elements you want on the lower layers, and write the last ones on the higher layers...
button(...) // layer 1
button(...) // layer 2
window(...) //layer 3
It works for me.
Last edited by DJBMASTER; 12/29/09 23:48.
|
|
|
|