Gamestudio Links
Zorro Links
Newest Posts
Zorro 3.01 recoded MMI function issue
by 11honza11. 06/13/26 11:40
How to select between IB accounts by script?
by Jack_Zodiac. 06/12/26 23:17
Zorro tutorial ideas?
by pr0logic. 06/12/26 13:36
Max Number of Strategies in /Strategy folder
by Martin_HH. 06/12/26 08:50
Stooq now requires an API key
by AndrewAMD. 06/11/26 17:55
Z9 getting Error 058
by k_ivan. 06/10/26 14:38
ZorroGPT
by TipmyPip. 06/10/26 13:07
Z12 live performance
by alx. 06/09/26 20:42
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (Quad, TipmyPip, 1 invisible), 2,064 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Student_64151, Koti, curry, DeepxKalsi, Samed
19219 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Buttonlayer #303513
12/29/09 14:10
12/29/09 14:10
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline OP
Serious User
Dark_samurai  Offline 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 Offline
Expert
slacer  Offline
Expert

Joined: Jan 2004
Posts: 2,062
Hamburg, Germany
Check the manual for panel->layer

Quote:

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 Offline OP
Serious User
Dark_samurai  Offline 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 Offline
Serious User
DJBMASTER  Offline
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...
Code:
button(...) // layer 1
button(...) // layer 2
window(...) //layer 3


It works for me.

Last edited by DJBMASTER; 12/29/09 23:48.
Re: Buttonlayer [Re: DJBMASTER] #303610
12/30/09 13:22
12/30/09 13:22
Joined: Jul 2000
Posts: 28,101
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,101
Frankfurt
At the moment, panel elements have no defined order. Therefore when they are mouse dependent, they shouldn't overlap.

Using their order of appearance in the panel definition would be a solution, but would be complicated to implement in the current panel system. Also, it would not solve the situation when panel elements are created by script functions.

So my suggestion is to use separate panels for elements that really overlap.


Moderated by  aztec, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1