|
2 registered members (Quad, AndrewAMD),
1,007
guests, and 6
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Panels and priorities
#114724
03/02/07 15:17
03/02/07 15:17
|
Joined: Apr 2006
Posts: 737 Ottawa, Canada
Ottawa
OP
User
|
OP
User
Joined: Apr 2006
Posts: 737
Ottawa, Canada
|
Hi!
I’m having a problem with buttons in my panels. There seems to be a priority between them. It’s when I started moving then around in SED that things got better and I noticed a priority.
Here’s the situation :
On the left side of the screen there are 3 buttons (top to bottom) On the right side there are 4 buttons (again ...top to bottom)
All these buttons are on level 7 (the highest level) and do not overlap. I removed the overlay flag to check all buttons. All panels have : flags = refresh, overlay ;
All buttons on the right work all the time... But the buttons on the left work only when going from the bottom ...up. When you choose the bottom one ...others at the top are available.. As you go up...the bottom one is not available....and so on.
I went into SED and moved the panel scrips around. Things got better, but not a 100%.
In this script I have.... (structure)
All bitmaps One Text panel and function Panel button one.... level 7 ------panel that is visible when one chooses button one panel button two.... level 7 -----panel that is visible when one chooses button 2 panel button three.... level 7 -----panel that is visible when one chooses button 3 panel button four.... level 7 -----panel that is visible when one chooses button 4 panel button five.....level 7 -----panel that is visible when one chooses button 5 the last 2 panels have the door and menu options ...(level 7) there a 9 panels on level 1. All the functions. One Action
This is the best that I have right now. Questions : Is there a priority system for buttons? This script was working very well in version 6.4. Is there a limit on the number of buttons in ver6.5 Pro.
Hope this helps! Ottawa  Ver 7.86.2 Pro and Lite-C
|
|
|
Re: Panels and priorities
[Re: Ottawa]
#114725
03/02/07 16:31
03/02/07 16:31
|
Joined: Jul 2000
Posts: 27,935 Frankfurt
jcl

Chief Engineer
|

Chief Engineer
Joined: Jul 2000
Posts: 27,935
Frankfurt
|
There is no "button priority", but maybe your problem is this: "Panels with no bmap and undefined size now got a default size from it's upper left corner up to the lower right corners of it's elements. This can lead to a different mouse clicking or touching behavior when you had previously undefined size panels in your project." From: http://manual.conitec.net/newfeatures65.htmMake sure that all the buttons are inside the panel area that you give with size_x/size_y.
|
|
|
Re: Panels and priorities
[Re: jcl]
#114726
03/02/07 17:46
03/02/07 17:46
|
Joined: Apr 2006
Posts: 737 Ottawa, Canada
Ottawa
OP
User
|
OP
User
Joined: Apr 2006
Posts: 737
Ottawa, Canada
|
Hi jcl!
I'll look into this.
Hope this helps! Ottawa  Ver 7.86.2 Pro and Lite-C
|
|
|
Re: Panels and priorities
[Re: Ottawa]
#114727
03/03/07 03:31
03/03/07 03:31
|
Joined: Apr 2006
Posts: 737 Ottawa, Canada
Ottawa
OP
User
|
OP
User
Joined: Apr 2006
Posts: 737
Ottawa, Canada
|
Hi jcl! Yep that's it....but I don't know how to control the size. My buttons are 78 x 40 pixels They are on the left hand side of the screen And my code is : Code:
panel une_note { size_x = 200; size_y = 200; layer = 7; alpha = 100; button = 10,96,note_1_R,note_1_R,note_1_V,choix_un_son,null,null; flags = refresh, overlay ; }
Can you give me an example 
Hope this helps! Ottawa  Ver 7.86.2 Pro and Lite-C
|
|
|
Re: Panels and priorities
[Re: Ottawa]
#114728
03/05/07 06:41
03/05/07 06:41
|
Joined: Jul 2000
Posts: 27,935 Frankfurt
jcl

Chief Engineer
|

Chief Engineer
Joined: Jul 2000
Posts: 27,935
Frankfurt
|
If you have only one button, you do not need to set a panel size - it's set automatically. However then don't give an offset to a non-existing panel background!
This is the correct way to define a 1-button panel:
panel une_note = { layer = 7; button(0,0,note_1_R,note_1_R,note_1_V,choix_un_son,NULL,NULL); flags = OVERLAY; }
|
|
|
Re: Panels and priorities
[Re: jcl]
#114729
03/05/07 22:53
03/05/07 22:53
|
Joined: Apr 2006
Posts: 737 Ottawa, Canada
Ottawa
OP
User
|
OP
User
Joined: Apr 2006
Posts: 737
Ottawa, Canada
|
Thanks jcl!
I've been experimenting and I haven't found the solution yet.
I'll try this..."The correct way..." And get back to you!
Hope this helps! Ottawa  Ver 7.86.2 Pro and Lite-C
|
|
|
Re: Panels and priorities
[Re: Ottawa]
#114730
03/06/07 21:32
03/06/07 21:32
|
Joined: Apr 2006
Posts: 737 Ottawa, Canada
Ottawa
OP
User
|
OP
User
Joined: Apr 2006
Posts: 737
Ottawa, Canada
|
HI jcl! I removed the flags that were not important as you suggested.  It's still not working properly....when I open the level all buttons are ready and fonctionnal. If I choose the bottons on the left side and go up it's ok ...but I can't come down. The buttons on the right side are always fonctionnal and when I use them ...I can use the ones on the left side again from bottom to up. question about Quote:
panel one_note =
is the "=" important?
Hope this helps! Ottawa  Ver 7.86.2 Pro and Lite-C
|
|
|
Re: Panels and priorities
[Re: jcl]
#114732
03/09/07 00:02
03/09/07 00:02
|
Joined: Apr 2006
Posts: 737 Ottawa, Canada
Ottawa
OP
User
|
OP
User
Joined: Apr 2006
Posts: 737
Ottawa, Canada
|
Hi jcl!  Could you explain where the “=” comes from in “panel one_note =”, what it does and when to use it? I have gone through the script and placed “=” for every single button and all the others. No change. I’ve removed the overlay flag to see all of the bmapSS. There is no overlap for the 7 buttons and their actions (in the centre). Since you were talking of panel viewing zones ...I moved the buttons away from the side of the window ...no change.
Hope this helps! Ottawa  Ver 7.86.2 Pro and Lite-C
|
|
|
|