NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 16 17 18 19 20 … 93 Next »
Skin question - how to centre a list UiList control on screen?

 
  • 0 Vote(s) - 0 Average
Skin question - how to centre a list UiList control on screen?
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#1
2011-02-16, 01:13 PM
I'd like to centre the list on the screen but when I change the IconView's location attribute the list background moves but the list items do not. Is there another tag/attribute I need to modify?

Skin file contents (with modified attribute in bold):
Code:
<?xml version="1.0" encoding="utf-8"?>
<Skin>
  <Element name="IconView" location="[B]10[/B],12.36" size="90,75.28" alpha="255" rows="3" columns="3">
    <Rect location="0,0" size="50,0.3" fillColor="Accent2_Horizontal_FadeIn"/>
    <Rect location="49.99,0" size="50.01,0.3" fillColor="Accent2_Horizontal_FadeOut"/>
    <Rect location="0,0" size="100,100" fillColor="BaseColor1"/>
    <Rect location="0,99.4" size="50,0.6" fillColor="Accent2_Horizontal_FadeIn"/>
    <Rect location="49.99,99.4" size="50.01,0.6" fillColor="Accent2_Horizontal_FadeOut"/>
  </Element>

  <Element name="IconItem" location="3.09,15.45" size="26.6,22.9" alpha="255" alphaFade="true">
    <RoundedRect visible="!@selected" location="0.77,0.77" size="98.45,98.45" fillColor="Normal_Icon" borderColor="Border2" radius="0.77" borderWidth="0.38"/>
    <RoundedRect visible="@selected" location="0.77,0.77" size="98.45,98.45" fillColor="Selected_Icon" borderColor="Border2" radius="0.77" borderWidth="0.38"/>
    <Image visible="!@selected" source="@previewImage" location="6,6" size="88,88" fixedAspectRatio="true" />
    <Image visible="@selected" source="@previewImage" location="5,5" size="90,90" fixedAspectRatio="true" />
    <Text text="@name" location="1.55,0" size="97,100" font="Default" align="Left" valign="Center"/>
  </Element>

  <Element name="IconSelectionMetaData" location="0,87.44" size="100,4.64" alpha="255" alphaFade="true">
    <Rect location="-2,0" size="104,100" fillColor="BaseColor2"/>
    <Text text="@name" location="0,0" size="100,100" font="Title1" align="Center" valign="Center"/>
    <Text text="@positionInfo" location="0,0" size="95.36,100" font="Title3Minimum" align="Right" valign="Center"/>
  </Element>
  
  <Element name="ListPosition" location="50,87.44" size="90,4.64" alpha="255" alphaFade="true">
    <Rect location="-2,0" size="104,100" fillColor="BaseColor2"/>
    <Text text="@positionInfo" location="0,0" size="95.36,100" font="Title3Minimum" align="Right" valign="Center"/>
  </Element>
</Skin>
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2011-02-16, 05:04 PM
From memory, the items are placed relative to the top/left position specified in the "IconItem" element. ("3.09,15.45" in the example above)
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#3
2011-02-17, 08:46 AM
You're right. Thanks.
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Web API only_new Question Gazavant 6 2,583 2021-04-04, 06:54 PM
Last Post: sub
  Another Artwork question scJohn 15 8,036 2019-09-10, 05:33 PM
Last Post: nonob
  Remote control example code? drmargarit 4 3,717 2018-04-21, 11:24 PM
Last Post: drmargarit
  Skin help (correct location?) SFX Group 4 3,830 2018-01-24, 07:42 AM
Last Post: pBS
  Channels List by Channel Group Name scJohn 1 2,729 2018-01-05, 10:45 PM
Last Post: mvallevand
  WEB API GuidService/Listing question(s) scJohn 6 4,217 2017-08-09, 02:18 PM
Last Post: scJohn
  Channel List (native controller) psycik 2 3,021 2017-06-19, 09:14 AM
Last Post: psycik
  API help - remote control greg in kansas 0 2,621 2016-07-04, 03:54 PM
Last Post: greg in kansas
  skin question pBS 2 3,305 2016-06-18, 07:03 PM
Last Post: pBS
  uiList not redrawing when replacing items cncb 10 5,601 2015-10-02, 07:52 PM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode