Skip to content

Commit

Permalink
constants for positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Nov 28, 2016
1 parent 9f53c1d commit 4fbcf56
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 32 deletions.
4 changes: 2 additions & 2 deletions xml/EventLog.xml
Expand Up @@ -12,9 +12,9 @@
<include>OpenClose_Right</include>
<control type="fixedlist" id="50">
<left>490</left>
<top>0</top>
<top>list_y_offset</top>
<right>0</right>
<height>100%</height>
<bottom>list_y_offset</bottom>
<onleft>9000</onleft>
<onright>60</onright>
<onup>50</onup>
Expand Down
6 changes: 4 additions & 2 deletions xml/Includes.xml
Expand Up @@ -31,6 +31,8 @@
<constant name="DepthSideBlade">0.10</constant>
<constant name="bg_alpha">79</constant>
<constant name="dialogbuttons_itemgap">-20</constant>
<constant name="list_y_offset">0</constant>
<constant name="list_item_height">80</constant>
<expression name="infodialog_active">Window.IsActive(musicinformation) | Window.IsActive(songinformation) | Window.IsActive(movieinformation) | Window.IsActive(addoninformation) | Window.IsActive(pvrguideinfo) | Window.IsActive(pvrrecordinginfo) | Window.IsActive(pictureinfo) | Window.IsVisible(script-script.extendedinfo-DialogVideoInfo.xml) | Window.IsVisible(script-script.extendedinfo-DialogInfo.xml) | Window.IsVisible(script-script.extendedinfo-VideoList.xml)</expression>
<expression name="sidebar_focused">ControlGroup(9000).HasFocus | Control.HasFocus(6130)</expression>
<include name="CommonScrollbars">
Expand Down Expand Up @@ -444,9 +446,9 @@
<definition>
<control type="fixedlist" id="$PARAM[list_id]">
<left>0</left>
<top>0</top>
<top>list_y_offset</top>
<bottom>list_y_offset</bottom>
<width>$PARAM[width]</width>
<height>100%</height>
<focusposition>4</focusposition>
<movement>3</movement>
<onleft>$PARAM[onleft_id]</onleft>
Expand Down
25 changes: 13 additions & 12 deletions xml/View_50_List.xml
Expand Up @@ -56,7 +56,8 @@
<control type="fixedlist" id="$PARAM[list_id]">
<left>0</left>
<width>list_width</width>
<height>100%</height>
<top>list_y_offset</top>
<bottom>list_y_offset</bottom>
<movement>5</movement>
<focusposition>6</focusposition>
<scrolltime tween="cubic" easing="out">500</scrolltime>
Expand All @@ -68,30 +69,30 @@
<ondown>$PARAM[list_id]</ondown>
<viewtype label="$PARAM[viewtype_label]">list</viewtype>
<visible>Container.Content(movies) | Container.Content(sets) | Container.Content(tvshows) | Container.Content(seasons) | Window.IsActive(MyPlaylist.xml)</visible>
<focusedlayout height="80" width="list_width">
<focusedlayout height="list_item_height" width="list_width">
<control type="image">
<left>0</left>
<right>0</right>
<top>0</top>
<height>80</height>
<bottom>0</bottom>
<texture colordiffuse="button_focus">lists/focus.png</texture>
<visible>Control.HasFocus($PARAM[list_id])</visible>
</control>
<control type="label">
<left>70</left>
<right>70</right>
<top>0</top>
<height>80</height>
<bottom>0</bottom>
<aligny>center</aligny>
<scroll>true</scroll>
<font>font27</font>
<label>$INFO[ListItem.Label]</label>
<shadowcolor>text_shadow</shadowcolor>
</control>
<control type="label">
<left>100</left>
<top>0</top>
<height>80</height>
<bottom>0</bottom>
<left>100</left>
<right>20</right>
<align>right</align>
<aligny>center</aligny>
Expand All @@ -102,15 +103,15 @@
</control>
<control type="image">
<left>21</left>
<top>24</top>
<centertop>50%</centertop>
<width>32</width>
<height>32</height>
<texture>$VAR[ListWatchedIconVar]</texture>
<animation effect="fade" start="30" end="100" time="300" reversible="false">Focus</animation>
</control>
<control type="image">
<left>21</left>
<top>24</top>
<centertop>50%</centertop>
<width>32</width>
<height>32</height>
<texture colordiffuse="button_focus">$VAR[ListWatchedIconVar]</texture>
Expand All @@ -119,12 +120,12 @@
<visible>!Control.HasFocus($PARAM[list_id])</visible>
</control>
</focusedlayout>
<itemlayout height="80" width="list_width">
<itemlayout height="list_item_height" width="list_width">
<control type="label">
<left>70</left>
<right>70</right>
<top>0</top>
<height>80</height>
<bottom>0</bottom>
<aligny>center</aligny>
<font>font27</font>
<label>$INFO[ListItem.Label]</label>
Expand All @@ -134,7 +135,7 @@
<left>20</left>
<right>20</right>
<top>0</top>
<height>80</height>
<bottom>0</bottom>
<align>right</align>
<aligny>center</aligny>
<font>font12</font>
Expand All @@ -144,7 +145,7 @@
</control>
<control type="image">
<left>21</left>
<top>24</top>
<centertop>50%</centertop>
<width>32</width>
<height>32</height>
<texture colordiffuse="grey">$VAR[ListWatchedIconVar]</texture>
Expand Down
36 changes: 20 additions & 16 deletions xml/View_55_WideList.xml
Expand Up @@ -7,9 +7,9 @@
<include>Visible_Right</include>
<control type="fixedlist" id="55">
<left>594</left>
<top>0</top>
<top>list_y_offset</top>
<bottom>list_y_offset</bottom>
<right>0</right>
<height>100%</height>
<scrolltime tween="cubic" easing="out">500</scrolltime>
<orientation>vertical</orientation>
<pagecontrol>531</pagecontrol>
Expand All @@ -21,18 +21,18 @@
<ondown>55</ondown>
<viewtype label="$LOCALIZE[31107]">list</viewtype>
<visible>Container.Content(artists) | Container.Content(albums) | Container.Content(songs) | Container.Content(addons) | Container.Content(actors) | Container.Content(directors) | Container.Content(files) | Container.Content(mixed) | Container.Content(musicvideos) | Container.Content(videos) | Container.Content() | Container.Content(episodes) | Container.Content(movies) | Container.Content(tvshows) | Container.Content(seasons)</visible>
<focusedlayout height="80" width="widelist_width" condition="Container.Content(artists) | Container.Content(albums) | Container.Content(actors) | Container.Content(directors) | Container.Content(files) | Container.Content(mixed) | Container.Content(videos) | Container.Content(episodes) | Container.Content(movies) | Container.Content(tvshows) | Container.Content(seasons)">
<focusedlayout height="list_item_height" width="widelist_width" condition="Container.Content(artists) | Container.Content(albums) | Container.Content(actors) | Container.Content(directors) | Container.Content(files) | Container.Content(mixed) | Container.Content(videos) | Container.Content(episodes) | Container.Content(movies) | Container.Content(tvshows) | Container.Content(seasons)">
<control type="image">
<left>0</left>
<right>0</right>
<height>80</height>
<bottom>0</bottom>
<texture colordiffuse="button_focus">lists/focus.png</texture>
<visible>Control.HasFocus(55)</visible>
</control>
<control type="label">
<left>18</left>
<top>2</top>
<height>80</height>
<top>0</top>
<bottom>0</bottom>
<width>80</width>
<aligny>center</aligny>
<label>$INFO[ListItem.Year]</label>
Expand All @@ -41,15 +41,16 @@
</control>
<control type="image">
<left>35</left>
<top>25</top>
<centertop>50%</centertop>
<width>32</width>
<height>32</height>
<texture>$VAR[ListWatchedIconVar]</texture>
<visible>Container.Content(tvshows) | Container.Content(seasons) | Container.Content(episodes) | Container.Content(movies) | String.IsEmpty(ListItem.Year)</visible>
</control>
<control type="label">
<left>105</left>
<height>80</height>
<top>0</top>
<bottom>0</bottom>
<right>100</right>
<aligny>center</aligny>
<scroll>true</scroll>
Expand All @@ -58,19 +59,20 @@
</control>
<control type="label">
<left>40</left>
<height>80</height>
<top>0</top>
<bottom>0</bottom>
<right>40</right>
<align>right</align>
<aligny>center</aligny>
<label>$VAR[ListLabel2Var]</label>
<shadowcolor>text_shadow</shadowcolor>
</control>
</focusedlayout>
<itemlayout height="80" width="widelist_width" condition="Container.Content(artists) | Container.Content(albums) | Container.Content(actors) | Container.Content(directors) | Container.Content(files) | Container.Content(mixed) | Container.Content(videos) | Container.Content(episodes) | Container.Content(movies) | Container.Content(tvshows) | Container.Content(seasons)">
<itemlayout height="list_item_height" width="widelist_width" condition="Container.Content(artists) | Container.Content(albums) | Container.Content(actors) | Container.Content(directors) | Container.Content(files) | Container.Content(mixed) | Container.Content(videos) | Container.Content(episodes) | Container.Content(movies) | Container.Content(tvshows) | Container.Content(seasons)">
<control type="label">
<left>18</left>
<top>2</top>
<height>80</height>
<top>0</top>
<bottom>0</bottom>
<width>80</width>
<aligny>center</aligny>
<label>$INFO[ListItem.Year]</label>
Expand All @@ -80,23 +82,25 @@
</control>
<control type="image">
<left>35</left>
<top>25</top>
<centertop>50%</centertop>
<width>32</width>
<height>32</height>
<texture colordiffuse="grey">$VAR[ListWatchedIconVar]</texture>
<visible>Container.Content(tvshows) | Container.Content(seasons) | Container.Content(episodes) | Container.Content(movies) | String.IsEmpty(ListItem.Year)</visible>
</control>
<control type="label">
<left>105</left>
<height>80</height>
<top>0</top>
<bottom>0</bottom>
<right>100</right>
<aligny>center</aligny>
<label>$INFO[ListItem.Label]</label>
<shadowcolor>text_shadow</shadowcolor>
</control>
<control type="label">
<left>40</left>
<height>80</height>
<top>0</top>
<bottom>0</bottom>
<right>40</right>
<align>right</align>
<aligny>center</aligny>
Expand All @@ -105,7 +109,7 @@
</control>
<control type="image">
<left>35</left>
<top>25</top>
<centertop>50%</centertop>
<visible>String.IsEmpty(ListItem.Year) + String.IsEmpty(ListItem.AddonVersion)</visible>
<width>32</width>
<height>32</height>
Expand Down

0 comments on commit 4fbcf56

Please sign in to comment.