Boolean expression request - window_id.isLayout(layout_id)

About usage, announcement and development of skins for VLC
tvtalkshowshigh
Blank Cone
Blank Cone
Posts: 95
Joined: 13 Jun 2005 12:36
Location: UK

Boolean expression request - window_id.isLayout(layout_id)

Postby tvtalkshowshigh » 14 May 2006 18:24

would it be possible to add a boolean expression to the skins2 interface please?

while skins2 allows you to check the visibility of a "window" it doesn't let you check the "layout" of that window.

i'd suggest something along the lines of:

window_id.isLayout(layout_id)

thanks in advance,

mark.

ipkiss
Big Cone-huna
Big Cone-huna
Posts: 695
Joined: 23 Nov 2003 01:49

Postby ipkiss » 14 May 2006 20:11

Yes, this makes sense, and it should be easy to do.
It will be added soon :)

tvtalkshowshigh
Blank Cone
Blank Cone
Posts: 95
Joined: 13 Jun 2005 12:36
Location: UK

Postby tvtalkshowshigh » 14 May 2006 21:13

excellent! :D

thanks ipkiss.

ipkiss
Big Cone-huna
Big Cone-huna
Posts: 695
Joined: 23 Nov 2003 01:49

Postby ipkiss » 15 May 2006 00:20

Done. The syntax is:

Code: Select all

LayoutID.isActive

tvtalkshowshigh
Blank Cone
Blank Cone
Posts: 95
Joined: 13 Jun 2005 12:36
Location: UK

Postby tvtalkshowshigh » 15 May 2006 09:07

a much friendlier syntax than my suggestion.

i was forgetting that layout IDs are globally unique, rather than being local to their window.

thanks again,

mark.

ipkiss
Big Cone-huna
Big Cone-huna
Posts: 695
Joined: 23 Nov 2003 01:49

Postby ipkiss » 15 May 2006 09:19

You found the "aesthetical" reason for this syntax, but there was also a technical one: since the parentheses are already used for the priority in boolean expressions, it would have made the parser much more complex :-)


Return to “Skins”

Who is online

Users browsing this forum: No registered users and 8 guests