Log in

View Full Version : Interesting button and highlight shape


jeanl
19th February 2006, 19:12
Guys,
The DVD "Broken Flowers" R1 has an interesting main menu where the buttons overlap, and the highlights can appear in 2 different button rectangles! See the picture below, where I've modified the transparency to opaque to show the highlights! The "scenes" highlights appear in both the scenes rectangle and the "bonus" rectangle!

http://img482.imageshack.us/img482/3008/menu0wp.png (http://imageshack.us)

When I played that DVD I was totally puzzled by it! How can it be that when the "Bonus Feature" button is selected, the part of the "scenes" highlight that's in the same rectangle does not get highlighted?
The answer is pretty smart! They don't use the same pixel types. The Bonus features highlight uses the "p" pixel type and the scenes uses the "e1" pixel type (easy to check with DVDSubEdit :)).
So, the colorscheme for the "Bonus feature" button makes the "p" pixels opaque, and the colorscheme for the "scenes" button makes the "e1" pixels opaque, this way, even though some of the scenes highlights are in the "bonus feature" rectangle, they're not visible when you select that button.

First time I've ever seen something like that... I thought it was pretty cool (in a geeky kind of way! :D )
Jeanl

laserfan
19th February 2006, 20:17
...and are we ever glad jeanl that you are that geeky kind of guy! ;)

Referring of course to all the amazing recent enhancements to the excellent DVDSubEdit!

jeanl
19th February 2006, 20:18
OK OK OK, power to the geeks! :D :D
Thanks laserfan!
jeanl

goonix
20th February 2006, 00:42
@jeanl

You should have seen it before, because you have posted in this Thread (http://forum.doom9.org/showthread.php?p=756971#post756971) ;)

Here I have explained how to create overlapping buttons and that you can use the great DVDSubedit to examine them!

:D

goonix

jeanl
20th February 2006, 03:28
:D! Now I remember! I knew I had seen that somewhere! I looked for it but couldn't find it!!!!!!
But it's still my first time in a commercial DVD...
Thanks goonix!
Jeanl

r0lZ
20th February 2006, 13:24
This method brings another question: what happens if a PC user clicks in the overlapping part of the active zones? I suppose the player will pick the first button defined in the table, but who knows? Maybe it is even possible to see both highlights at the same time!

mpucoder
20th February 2006, 13:58
Whichever button is selected will be highlighted and "pressed" when you click on it. I tried a few overlapping button menus in software players and moving the mouse around looks somewhat bizarre. It looks like, on one player at least, that the button order is used to search for a hit on the area, so there is a priority.

r0lZ
20th February 2006, 14:17
Thanks for the information, mpucoder. That's what I thought. But I suppose that, as usual, the priority is not always the same with all players. Anyway, it doesn't matter too much if at least one big part of the active zone is not overlapped by another one.

goonix
20th February 2006, 16:26
Yes, you are right!

The behaviour is different between the software players I have tested overlapping buttons, but it works on all.
I have never seen both subpics at the same time using this method.

And you have to have at least one part of the hotspot rectangle that must not be overlapped if it should be selectable with a mouse.

On desktop players it works flawlessly.

goonix