Skip to content

Commit

Permalink
detailedlistview wip
Browse files Browse the repository at this point in the history
  • Loading branch information
realcopacetic committed Aug 29, 2024
1 parent 2d78b5e commit 6236bf2
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 1 deletion.
3 changes: 3 additions & 0 deletions 16x9/Expressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,9 @@
<expression name="ListView_Flags_Studio_IsVisible">Control.IsVisible(50) + [$EXP[ListView_Flags_Studio] | $EXP[ListView_Flags_All]]</expression>
<expression name="ListView_Flags_Rating_IsVisible">Control.IsVisible(50) + [$EXP[ListView_Flags_Rating] | $EXP[ListView_Flags_All]]</expression>

<!-- DetailedList -->
<expression name="DetailedListView_IsVisible">!$EXP[Infoscreen_IsVisible] + [Control.HasFocus(500) | String.IsEqual(Container.ViewMode,DetailedList)]</expression>

<!-- Billboard -->
<expression name="BillboardView_Enabled">[Skin.HasSetting(BillboardView_Enabled) + [Window.Is(videos) | Window.Is(music)]] | [Skin.HasSetting(BillboardView_Enabled_Addons) + Window.Is(programs)]<!-- | [Skin.HasSetting(BillboardView_Enabled_favouritesbrowser) + Window.Is(favouritesbrowser)]--></expression>
<expression name="BillboardView_IsVisible">$EXP[BillboardView_Media_IsVisible] | $EXP[BillboardView_Widget_IsVisible]</expression>
Expand Down
1 change: 1 addition & 0 deletions 16x9/Includes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
<include file="Templates_Viewtypes.xml" />
<include file="Templates_Widgets.xml" />
<include file="Viewtype_50_List.xml" />
<include file="Viewtype_500_DetailedList.xml" />
<include file="Viewtype_501_Billboard.xml" />
<include file="Viewtype_502_Showcase.xml" />
<include file="Viewtype_504_Strip.xml" />
Expand Down
2 changes: 1 addition & 1 deletion 16x9/MyVideoNav.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<defaultcontrol always="true">50</defaultcontrol>
<menucontrol>3000</menucontrol>
<backgroundcolor>$VAR[Dark_Color]</backgroundcolor>
<views>50,501,502,504,505</views>
<views>50,500,501,502,504,505</views>
<controls>
<include content="Common_Controls" />
<include content="videos_Controls" />
Expand Down
44 changes: 44 additions & 0 deletions 16x9/Viewtype_500_DetailedList.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<includes>

<include name="DetailedListView_Container">
<param name="visible" default="true" />
<definition>

<include content="Viewtype_Details_Template">
<param name="visible" value="true" />
<param name="viewtype_label" value="DetailedList" />
<control type="fixedlist" id="500">
<viewtype label="DetailedList">list</viewtype>
<left>120</left>
<right>120</right>
<top>240</top>
<bottom>0</bottom>
<focusposition>1</focusposition>
<movement>1</movement>
<preloaditems>2</preloaditems>
<pagecontrol>60</pagecontrol>
<orientation>vertical</orientation>
<onleft>SetFocus(3000,0,absolute)</onleft>
<onright condition="Integer.IsGreater(Container($PARAM[id]).NumItems,3)">60</onright>
<include content="Default_Scrolltime" condition="!Skin.HasSetting(Quick_Transitions)" />
<include content="Quick_Scrolltime" condition="Skin.HasSetting(Quick_Transitions)" />
<itemlayout width="1680" height="240" infoupdate="5000">
<control type="label">
<label>$INFO[ListItem.Label]</label>
</control>
</itemlayout>
<focusedlayout width="1680" height="240" infoupdate="5000">
<control type="image">
<texture border="10" colordiffuse="$VAR[PVR_DetailedListView_Focus_Color]">views/white_100_rounded10.png</texture>
</control>
<control type="label">
<label>$INFO[ListItem.Label]</label>
</control>
</focusedlayout>
</control>
</include>
</definition>
</include>

</includes>

0 comments on commit 6236bf2

Please sign in to comment.