Building a skin from scratch - a tour - (1 Viewer)

Pog

Retired Team Member
  • Premium Supporter
  • September 7, 2009
    401
    315
    Wicklow
    Home Country
    Ireland Ireland
    There may be a trick to help get around this...

    Have a control that is just an image or label.

    Use a group control with an invisible button that sits where image/label control is. When the button in the group is focused the whole group will become visible. Note, use dimColor set to zero so the group is invisible when the button is not in focus.

    Code:
    <control>
      <type>label</type>
      <label>LIST</label>
    </control>
     
    <control>
      <type>group</type>
      <dimColor>00000000</dimColor>
      <control>
      <type>button</type>
      <label>LIST</label>
      </control>
      <control>
      <type>label</type>
      </control>
    </control>
     
    Last edited:

    mbuzina

    Retired Team Member
  • Premium Supporter
  • April 11, 2005
    2,839
    726
    Germany
    Home Country
    Germany Germany
    I might try that or I might use skin settings (will see if that works).
     

    mbuzina

    Retired Team Member
  • Premium Supporter
  • April 11, 2005
    2,839
    726
    Germany
    Home Country
    Germany Germany
    Dialogs have their own issues and limitations. You can not access the state of other controls within the dialog layer but you can access the controls in the underlying window.
    That is probably a way to battle duplicate control ids in dialogs...
     

    mbuzina

    Retired Team Member
  • Premium Supporter
  • April 11, 2005
    2,839
    726
    Germany
    Home Country
    Germany Germany
    Again an interesting side effect? I finished the mymusic stuff yesterday, so now I wanted to see how easy it is to copy all to another plugin. I chose myPics.

    And it is pretty easy, it took about 45 minutes to clean up all the views. Now up to the myPic specialties. Like the Exif Dialog (or DialogPictureInfo.xml). Sadly it does not provide properties, but labels are set directly by the plugin depending on ID. OK, it works but takes a lot of freedom away (Artist & Album Info are good citizens, Exif is not).

    But now to something very stange (at least to me). I decided I did not want the picture shown again, as my dialog is an overlay. MyPic has a bug that it shows the hidden menu every time something interesting is done (like opening Slideshow or showing the Exif dialog) but I can work around. But somehow the dialog shows the picture (in the place it is when using list view, but with different zoom properties). I can not get that one away. Any ideas?
    11-05-52.png
     

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    14,427
    10,454
    Königstein (Taunus)
    Home Country
    Germany Germany
    But now to something very stange (at least to me). I decided I did not want the picture shown again, as my dialog is an overlay. MyPic has a bug that it shows the hidden menu every time something interesting is done (like opening Slideshow or showing the Exif dialog) but I can work around. But somehow the dialog shows the picture (in the place it is when using list view, but with different zoom properties). I can not get that one away. Any ideas?
    Yup - the image shown has the ID 3.
    You must move it outside the visible area.
    I´ve done that also as an overlay, so I used the following syntax to show the image where I want it (including mask which is not possible with the original image ID):

    Code:
    <control>
    	  <description>Image</description>
    	  <type>image</type>
    	  <id>3</id>
    	  <posX>3766</posX>
    	  <posY>253</posY>
    	  <width>660</width>
    	  <height>590</height>
    	  <texture>-</texture>
    	  <keepaspectratio>yes</keepaspectratio>
    	</control>
    	<control>
    	  <description>Image</description>
    	  <type>image</type>
    	  <id>1</id>
    	  <posX>630</posX>
    	  <posY>210</posY>
    	  <width>632</width>
    	  <height>421</height>
    	  <keepaspectratio>yes</keepaspectratio>
    	  <centered>yes</centered>
    	  <texture mask="picturecase_mask.png">#selectedthumb</texture>
    	</control>
    	<control>
    	  <description>Image</description>
    	  <type>image</type>
    	  <id>1</id>
    	  <posX>630</posX>
    	  <posY>210</posY>
    	  <width>632</width>
    	  <height>421</height>
    	  <texture>picturecase.png</texture>
    	  <keepaspectratio>no</keepaspectratio>
    	</control>

    *** EDIT***: The picture shown in your screenshot is the one from the underlying window I assume?
    Then give that a visible tag like this:

    <visible>!window.isvisible(2014)</visible>
     
    Last edited:

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    While following this thread I tend to propose a new thread name:
    "Building a skin from scratch - a tour" into "Building a skin from scratch - a torture"
    ;)
    sorry for being OT :D
     

    mbuzina

    Retired Team Member
  • Premium Supporter
  • April 11, 2005
    2,839
    726
    Germany
    Home Country
    Germany Germany
    @catavolt: Thanks for the tip on id3 and moving. I had it in there - but set it to visible false. The plugin overruled that obviously.

    *** EDIT***: The picture shown in your screenshot is the one from the underlying window I assume? Then give that a visible tag like this: !window.isvisible(2014)
    Tried that one before - does not help, does not change a thing.


    "Building a skin from scratch - a tour" into "Building a skin from scratch - a torture"
    A bit.

    Right now I am trying to get selected fan art working. Somehow whenever I use the selected fanart (just as prescribed, for checking I have the following in place:
    XML:
    <define>#useSelectedFanart:yes</define>
    <controls>
    	<control Style="hiddenGroupStyle">
    			<type>group</type> 
    			<posX>800</posX>
    			<posY>200</posY>
    			<control Style="hiddenStyle">
    				<description>DUMMY CONTROL FOR SELECTED FANART 1 VISIBILITY CONDITION</description>
    				<type>label</type>
    				<id>91919291</id>
    				<label>1#fanarthandler.music.backdrop1.selected1</label>
    			</control>
    			<control Style="hiddenStyle">
    				<description>DUMMY CONTROL FOR SELECTED FANART 2 VISIBILITY CONDITION</description>
    				<type>label</type>
    				<id>91919292</id>
    				<width>300</width>
    				<height>30</height>
    				<font>labelFont</font>
    				<textcolor>FFFF3333</textcolor>
    				<label>2#fanarthandler.music.backdrop2.selected2</label>
    				<visible>true</visible>
    			</control>
    			<control Style="hiddenStyle">
    				<description>DUMMY CONTROL FOR SELECTED FANART AVAILABILITY CONDITION</description>
    				<type>label</type>
    				<id>91919293</id>
    				<label>#useSelectedFanart</label>
    			</control>
    		</control>
    </controls>

    But somehow the #fanarthandler.music.backdrop1.selected & #fanarthandler.music.backdrop2.selected stay empty (the 91919293 is visible, and both other fields are also visible). The group is not the cause (I tried without it as well). Any other idea what I am doing wrong? FA is working for Random and also selected on other skins...
     

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    14,427
    10,454
    Königstein (Taunus)
    Home Country
    Germany Germany
    But somehow the #fanarthandler.music.backdrop1.selected & #fanarthandler.music.backdrop2.selected stay empty (the 91919293 is visible, and both other fields are also visible). The group is not the cause (I tried without it as well). Any other idea what I am doing wrong?
    Because htbackdrops is down?
     

    Pog

    Retired Team Member
  • Premium Supporter
  • September 7, 2009
    401
    315
    Wicklow
    Home Country
    Ireland Ireland
    Also the way fanarthandler works, so I believe, is to scan the skin files at startup for settings. It misses settings in the themes folder and if the skin is changed without restarting you won't get the changed settings either.
     

    Users who are viewing this thread

    Top Bottom