INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Theatre View Skinning- Pictures not working correctly  (Read 4554 times)

leezer3

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1589
Theatre View Skinning- Pictures not working correctly
« on: May 24, 2010, 01:29:44 pm »

I'm trying to fix a skin I built a while back (MC13).
This uses pretty basic images as a backdrop for each button, and the picture section looks like this:
Code: [Select]
  <PICTURE>
   
    <Item Bitmap="Background.png" Location="***" Rect="window\0,0,100,100" Alpha="95" Background="1" />
    <Item Name="Image" Base="ViewBackground" Placement="Right" Size="100%" />
    <Item Bitmap="Pictures\Audio.png" Location="Audio" Rect="40,25,70,65" Alpha="70" Alignment="3" />
    <Item Bitmap="Pictures\Images.png" Location="Images" Rect="40,25,70,65" Alpha="70" Alignment="3" />
    <Item Bitmap="..\Shared\Pictures\Video.png" Location="Video" Rect="40,25,70,65" Alpha="70" Alignment="3" />
    <Item Bitmap="Pictures\Television.png" Location="Television" Rect="40,25,70,65" Alpha="70" Alignment="3" />
    <Item Bitmap="Pictures\LE.jpg" Location="Anime" Rect="40,25,70,65" Alpha="70" Alignment="3" />
    <Item Bitmap="Pictures\TVS.png" Location="TV Series" Rect="40,25,70,65" Alpha="70" Alignment="3" />
    <Item Bitmap="Pictures\DVD.png" Location="DVD" Rect="40,25,70,65" Alpha="70" Alignment="3" />
    <Item Bitmap="Pictures\Weather.png" Location="Weather" Rect="40,25,80,65" Alpha="70" Alignment="3" />
    <Item Bitmap="Pictures\News.png" Location="News" Rect="40,25,80,65" Alpha="70" Alignment="3" />
    <Item Bitmap="Pictures\Search.png" Location="Search" Rect="40,25,70,65" Alpha="70" Alignment="3" />
    <Item Bitmap="Pictures\Connected.png" Location="Connected" Rect="40,25,70,65" Alpha="70" Alignment="3" />
    <Item Bitmap="Pictures\Info.png" Location="Info" Rect="40,25,70,65" Alpha="70" Alignment="3" />
    <Item Bitmap="..\Shared\Pictures\Playing Now.png" Location="Playing Now" Rect="40,25,80,65" Alpha="70" Alignment="3" />
    <Item Bitmap="Pictures\Playlist.png" Location="Playlists" Rect="40,25,80,65" Alpha="70" Alignment="3" />
    <Item Bitmap="Pictures\Exit.png" Location="Exit" Rect="40,25,70,65" Alpha="70" Alignment="3" />
  </PICTURE>

This only now works with button based skins (Base 1.xml).
You've stated in the past that these are no longer supported, and this is fair enough.

From what I can see though, and this is only an educated guess, the location data isn't being nicely passed by the roller, and this seems to be rooted somewhere in the Base 2.xml & Base 3.xml files.
Changing to use Base 1.xml makes the images work as expected. (I'd also note that this change fixes the spinning cube in Glass etc.)
Oddly, the images appear when drilling down into the category, which is where they aren't supposed to.

-Leezer-
Logged

raym

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3583
Re: Theatre View Skinning- Pictures not working correctly
« Reply #1 on: May 24, 2010, 05:06:16 pm »

+1

I was reminded of this problem yesterday when I was trying to use an image on the main menu to reflect the root menu selection.   
Logged
RKM Smart Home - www.rkmsmarthome.com.au
Z-Wave Home Automation

raym

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3583
Re: Theatre View Skinning- Pictures not working correctly
« Reply #2 on: May 28, 2010, 12:51:41 am »

Quote
Changing to use Base 1.xml makes the images work as expected. (I'd also note that this change fixes the spinning cube in Glass etc.)
Oddly, the images appear when drilling down into the category, which is where they aren't supposed to.

I hadn't realised this but you're right, the Base 1.xml does indeed show the pictures just not on the home screen, which is where I'd like them too :( I hope this isn't a big deal to fix sometime soon. It's obviously not a serious bug but it is one of the few nice things about the older style Theater View skins.

I'll throw this out there too while we're on the subject.... How difficult would it be to allow us to show the date on the home screen like we can currently for time?

Cheers.
Logged
RKM Smart Home - www.rkmsmarthome.com.au
Z-Wave Home Automation

leezer3

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1589
Re: Theatre View Skinning- Pictures not working correctly
« Reply #3 on: June 29, 2010, 04:27:50 pm »

End of June, so bump :)

-Leezer-
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42442
  • Shoes gone again!
Re: Theatre View Skinning- Pictures not working correctly
« Reply #4 on: June 29, 2010, 04:32:11 pm »

So to make sure I understand, you want the roller selection to be part of the 'Location' like the button selection was part of the location in the past?
Logged
Matt Ashland, JRiver Media Center

leezer3

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1589
Re: Theatre View Skinning- Pictures not working correctly
« Reply #5 on: June 29, 2010, 04:35:39 pm »

So to make sure I understand, you want the roller selection to be part of the 'Location' like the button selection was part of the location in the past?

I think so  ?
Basically, I want the pictures to appear on the theatre view main menu  ;D
From my quick bashing, this seemed to be the issue, but I'm by no means certain where your code is getting the location for the picture from.
eg. If I've got a theatre view menu item named "Video", with button based skins this makes the image appear:
Code: [Select]
<Item Bitmap="..\Shared\Pictures\Video.png" Location="Video" Rect="40,25,70,65" Alpha="70" Alignment="3" />
Thanks :)

-Leezer-
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42442
  • Shoes gone again!
Re: Theatre View Skinning- Pictures not working correctly
« Reply #6 on: June 29, 2010, 04:38:03 pm »

Would you mind emailing me a copy of the skin that should work but doesn't?  I'm matt at jriver dot com.

Hopefully we can get it going.

Thanks.
Logged
Matt Ashland, JRiver Media Center

raym

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3583
Re: Theatre View Skinning- Pictures not working correctly
« Reply #7 on: June 29, 2010, 05:21:30 pm »

So to make sure I understand, you want the roller selection to be part of the 'Location' like the button selection was part of the location in the past?

Yes. On the main menu of the old skins like Noire, each button corresponded to a location and picture and was configurable too. I'm personally not too interested in showing these images beyond the home screen but I think the older skins allowed this also. 

What i'd also like to see is support for nested menus (again just on the main menu/home screen). For example, if the video menu item is selected, you could show video.png and when you nav to a movies item under this, mc shows movies.png. Know what I mean? 
Logged
RKM Smart Home - www.rkmsmarthome.com.au
Z-Wave Home Automation

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42442
  • Shoes gone again!
Re: Theatre View Skinning- Pictures not working correctly
« Reply #8 on: June 30, 2010, 12:06:05 pm »

Coming in build 69:
Changed: The Theater View location string includes the root roller selection when at the root (used by skins).

The means Root > Audio will have a location of "Audio" and inside Audio will also have a location of "Audio".  I don't see a good way around this.
Logged
Matt Ashland, JRiver Media Center

leezer3

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1589
Re: Theatre View Skinning- Pictures not working correctly
« Reply #9 on: June 30, 2010, 05:49:12 pm »

A lot better than it was, but I think we really need an option to only show the images on the root roller :)
Since you've updated the skin format, perhaps consider adding an option to the picture? Something like this:
Quote
1. Root roller only:
<Item Bitmap="Pictures\Audio.png" Location="Audio" Placement="Root" Rect="40,25,70,65" Alpha="70" Alignment="3" />
2. Inside Selected item:
<Item Bitmap="Pictures\Audio.png" Location="Audio" Placement="Inside" Rect="40,25,70,65" Alpha="70" Alignment="3" />
3. All:
<Item Bitmap="Pictures\Audio.png" Location="Audio" Placement="All" Rect="40,25,70,65" Alpha="70" Alignment="3" />

A skin option to show location images only at the root level would also work, but be somewhat more of a blunt instrument :)
Trouble is that I only really want to use the images for visual navigation at the root level, and the size & opacity options that make them look good there really don't lend themselves to being in the background of a filelist.

-Leezer-
Logged

raym

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3583
Re: Theatre View Skinning- Pictures not working correctly
« Reply #10 on: July 17, 2010, 11:51:54 pm »

Matt, would it be possible please to implement what leezer3 has proposed? Like him, I need a way to display text and images ONLY ON THE HOME SCREEN. Prior to these changes, this used to be possible like this:

  <Item Bitmap="Pictures\1.png" Location="" Rect="25,40,60,50" Alpha="100"/>

Now this no longer works  :(

Thanks.
Logged
RKM Smart Home - www.rkmsmarthome.com.au
Z-Wave Home Automation

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42442
  • Shoes gone again!
Re: Theatre View Skinning- Pictures not working correctly
« Reply #11 on: July 19, 2010, 10:09:33 am »

Matt, would it be possible please to implement what leezer3 has proposed? Like him, I need a way to display text and images ONLY ON THE HOME SCREEN. Prior to these changes, this used to be possible like this:

  <Item Bitmap="Pictures\1.png" Location="" Rect="25,40,60,50" Alpha="100"/>

Now this no longer works  :(

Thanks.

Here's an explanation of wildcards you can use in locations:

Code: [Select]
The location in Theater View (Playing Now, Media Library, etc.) where something will be shown
Special modifiers:
* = any text at a given level
\** = any children of this item
\*** = this item and any children
Example Locations:
Location="***" (visible everywhere)
Location="Media Library" (will be visible when the "Media Library" menu item is selected - not visible anywhere else)
Location="*" (will be visible at any root item)
Location="Media Library\**" (will be visible for the children of "Media Library")
Location="Media Library\***" (will be visible at "Media Library" and anywhere underneath)
Location="*\*" (will be visible at any second level items)

So try:
Location="*"
Logged
Matt Ashland, JRiver Media Center

leezer3

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1589
Re: Theatre View Skinning- Pictures not working correctly
« Reply #12 on: July 19, 2010, 01:38:05 pm »

I'm confused now  :D
I thought that your changes had removed these special modifiers, as you're now passing the data whenever.

If I create an image using solely the root modifier, like this:
Code: [Select]
<Item Bitmap="Pictures\Exit.png" Location="*" Rect="40,25,70,65" Alpha="70" Alignment="3" />This shows up on the main screen & every subscreen, except the ?special? ones (Playing Now basically).

On the other hand, a picture like this:
Code: [Select]
<Item Bitmap="Pictures\Audio.png" Location="Audio" Rect="40,25,70,65" Alpha="70" Alignment="3" />This shows up on the main screen when Audio is slected & every subscreen for the audio viewscheme, but nowhere else. It doesn't matter whether I've got audio selected on the roller or not.

Like I say, I'm after the ability for visual navigation on the main screen :)

Bug in the works somewhere?

-Leezer-
Logged

raym

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3583
Re: Theatre View Skinning- Pictures not working correctly
« Reply #13 on: July 19, 2010, 05:16:00 pm »

Thanks for the reply Matt but the following makes images apper everywhere, not just on the home screen:

Location="*"

Also, all my root menus are categories, with menu items beneath them. Perhaps this is causing some confusion also.
Logged
RKM Smart Home - www.rkmsmarthome.com.au
Z-Wave Home Automation

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42442
  • Shoes gone again!
Re: Theatre View Skinning- Pictures not working correctly
« Reply #14 on: July 19, 2010, 08:37:57 pm »

This got confusing when we tried to hook roller selection to the location.

Does "Audio" mean at the root with the Audio selected, or does it mean inside "Audio" view?

I'm not sure the right way to handle this.  Any advice?
Logged
Matt Ashland, JRiver Media Center

raym

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3583
Re: Theatre View Skinning- Pictures not working correctly
« Reply #15 on: July 20, 2010, 01:25:30 am »

As Leezer states above, I think we need a way to describe placement using either an additional tag like "Placement" or simply introducing new "Location" descriptors. Something like the following examples perhaps:

Location="*" (means home screen only and irrespective of the current menu selection)
Location="*Audio" (means home screen only and only when the Audio menu item is selected)
Location="Audio*" (means home screen when Audio menu item is selected and inside all Audio views)

The second and third definitions would need to apply to home menu roller categories too. For instance, I have a "Television" category on my home screen with the following buttons underneath it:

Television
  |--Live TV
  |--Recorded TV
  |--Guide

So, using the above method, to allow me to show a different picture on the home screen ONLY when either "Television" or "Live TV" is selected, I would achived this with: "Location=*Television" and "Location=*Live TV" respectively.

Thanks.
Logged
RKM Smart Home - www.rkmsmarthome.com.au
Z-Wave Home Automation

leezer3

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1589
Re: Theatre View Skinning- Pictures not working correctly
« Reply #16 on: July 20, 2010, 02:32:14 pm »

This got confusing when we tried to hook roller selection to the location.

Is "Audio" mean at the root with the Audio selected, or does it mean inside "Audio" view?

I'm not sure the right way to handle this.  Any advice?

I'd put it back the way it used to work pre-roller :)
Thus:
Code: [Select]
Location="Audio"Selected at the root.
Code: [Select]
Location="Audio\**"Inside the audio viewscheme
Code: [Select]
Location="Audio\***With audio selected at the root, and also inside audio.

-Leezer-
Logged

raym

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3583
Re: Theatre View Skinning- Pictures not working correctly
« Reply #17 on: July 20, 2010, 05:02:27 pm »

And Location="*" should mean JUST THE HOME SCREEN & REGARDLESS OF MENU SELECTION so static images and text can be placed on the main screen independent of anything else.
Logged
RKM Smart Home - www.rkmsmarthome.com.au
Z-Wave Home Automation

raym

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3583
Re: Theatre View Skinning- Pictures not working correctly
« Reply #18 on: July 22, 2010, 06:28:30 pm »

Matt, does this all work for you? I'm really missing not being able to show static text and pictures just on the home screen anymore (ie, irrespective of menu selection) :(
Logged
RKM Smart Home - www.rkmsmarthome.com.au
Z-Wave Home Automation

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42442
  • Shoes gone again!
Re: Theatre View Skinning- Pictures not working correctly
« Reply #19 on: July 26, 2010, 01:31:25 pm »

Thanks for the reply Matt but the following makes images apper everywhere, not just on the home screen:

Location="*"

That's the location we use for the clock text with the default skins, and it only shows at the root for me.

Is this still the main problem?  Does the clock text work for you with the default skin?
Logged
Matt Ashland, JRiver Media Center

leezer3

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1589
Re: Theatre View Skinning- Pictures not working correctly
« Reply #20 on: July 26, 2010, 03:37:22 pm »

That's the location we use for the clock text with the default skins, and it only shows at the root for me.

Is this still the main problem?  Does the clock text work for you with the default skin?

The clock text works with the default skins, seems to be because it's placed within the RootText\
Shifting it out of this makes it appear on every page.

Further, to that, declaring images in the skin file, using this makes them work as I want:
Code: [Select]
Rect="RootTextBackground\Anything wrong with doing this?

raym- I'd assume this'll work for you too.

-Leezer-
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42442
  • Shoes gone again!
Re: Theatre View Skinning- Pictures not working correctly
« Reply #21 on: July 26, 2010, 04:17:09 pm »

Next build:
Changed: Theater View location text used in skinning no longer includes roller selection.

If the roller selection is necessary, I think we'll have to find a different way to expose it.  For now, we're just going to revert to the old system of not including the selection in the location.
Logged
Matt Ashland, JRiver Media Center

leezer3

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1589
Re: Theatre View Skinning- Pictures not working correctly
« Reply #22 on: July 26, 2010, 04:21:56 pm »

Fair enough :)
IMHO I think it's necessary (I would wouldn't I  : 8) ), and there are definitely others who think so too.
I presume you've seen the threads like this one for example:
http://yabb.jriver.com/interact/index.php?topic=58532.0

You also saw the incomplete example I mailed to you, and I seriously think it's something that should be explored more thoroughly.
The online slideshow is a neat little trick, but I personally don't think it's a real replacement for a properly co-ordinated and designed skin.

-Leezer-
Logged

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4583
Re: Theatre View Skinning- Pictures not working correctly
« Reply #23 on: July 26, 2010, 05:20:27 pm »

Next build:
Changed: Theater View location text used in skinning no longer includes roller selection.

If the roller selection is necessary, I think we'll have to find a different way to expose it.  For now, we're just going to revert to the old system of not including the selection in the location.
i got lost in this thread, as in, i dont understand.

so this mean that i dont have to define
Location="Playing Now\***"
Location="*\Playing Now\***"
Location="*\*\Playing Now\***"
etc
for both the skin and the themes.

so that playing now etc is just one place, as it used to be?

 :)
gab
Logged

raym

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3583
Re: Theatre View Skinning- Pictures not working correctly
« Reply #24 on: July 27, 2010, 12:32:12 am »

Next build:
Changed: Theater View location text used in skinning no longer includes roller selection.

If the roller selection is necessary, I think we'll have to find a different way to expose it.  For now, we're just going to revert to the old system of not including the selection in the location.

So we've come full cirlce?  ;D I honestly didn't expect this to be so hard.

The online slideshow is a neat little trick, but I personally don't think it's a real replacement for a properly co-ordinated and designed skin.

Agree. Just a little more flexibility and "co-ordination" would encourage far more skin designers for Theater View. There's a lot of demand for this...
Logged
RKM Smart Home - www.rkmsmarthome.com.au
Z-Wave Home Automation

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4583
Re: Theatre View Skinning- Pictures not working correctly
« Reply #25 on: July 27, 2010, 05:36:13 pm »

i got lost in this thread, as in, i dont understand.

so this mean that i dont have to define
Location="Playing Now\***"
Location="*\Playing Now\***"
Location="*\*\Playing Now\***"
etc
for both the skin and the themes.

so that playing now etc is just one place, as it used to be?

 :)
gab
apparently the answer is no. a well.

 :)
gab
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42442
  • Shoes gone again!
Re: Theatre View Skinning- Pictures not working correctly
« Reply #26 on: November 10, 2010, 11:28:41 am »

In a coming build:
Changed: Reworked how Theater View positions are reported so that it's easier to make skins with context sensitive images.

The location string will always contain the path to the current view followed by the name of the selection.

So a location of "Audio" means at the root with the audio button selected.  "Audio\[some other text]" means inside the audio view.

These rules should still be true:
Code: [Select]

The location in Theater View (Playing Now, Media Library, etc.) where something will be shown
Special modifiers:
* = any text at a given level
\** = any children of this item
\*** = this item and any children
Example Locations:
Location="***" (visible everywhere)
Location="Media Library" (will be visible when the "Media Library" menu item is selected - not visible anywhere else)
Location="*" (will be visible at any root item)
Location="Media Library\**" (will be visible for the children of "Media Library")
Location="Media Library\***" (will be visible at "Media Library" and anywhere underneath)
Location="*\*" (will be visible at any second level items)
Logged
Matt Ashland, JRiver Media Center

raym

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3583
Re: Theatre View Skinning- Pictures not working correctly
« Reply #27 on: November 10, 2010, 03:07:02 pm »

Nice! Thanks.
Logged
RKM Smart Home - www.rkmsmarthome.com.au
Z-Wave Home Automation

leezer3

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1589
Re: Theatre View Skinning- Pictures not working correctly
« Reply #28 on: November 10, 2010, 06:39:54 pm »

Brilliant, cheers :)

-Leezer-
Logged
Pages: [1]   Go Up