Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

[WIP] ExtraPoster support #138

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 11 additions & 0 deletions language/resource.language.en_gb/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,18 @@ msgctxt "#31232"
msgid "Background image"
msgstr ""

msgctxt "#31233"
msgid "Extraposter"
msgstr ""

#: for Extraposter
msgctxt "#31234"
msgid "Enabled"
msgstr ""

msgctxt "#31235"
msgid "Disabled"
msgstr ""

#: settings
msgctxt "#31300"
Expand Down
5 changes: 3 additions & 2 deletions xml/DialogVideoInfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,11 @@
<!-- Artwork -->
<control type="group">
<visible>!Control.IsVisible(50)</visible>
<control type="image">
<control type="multiimage">
<width>540</width>
<height>810</height>
<texture background="true">$VAR[art:Portrait]</texture>
<timeperimage>6000</timeperimage>
<imagepath background="true">$VAR[art:Portrait]</imagepath>
<aspectratio align="left">scale</aspectratio>
</control>
</control>
Expand Down
51 changes: 50 additions & 1 deletion xml/Includes_Menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
<onclick condition="$EXP[Content.IsVideo]">UpdateLibrary(video)</onclick>
<onclick condition="$EXP[Content.IsAudio]">UpdateLibrary(music)</onclick>
<onup>7014</onup>
<ondown>7091</ondown>
<ondown>6006</ondown>
<onleft>7100</onleft>
<onright>50</onright>
<include>menu_Button</include>
Expand All @@ -262,6 +262,55 @@
</control>
</control>
</control>
<!--extra poster-->
<control type="group" id="6006">
<height>108</height>
<visible>$EXP[Content.IsVideo]</visible>
<control type="image">
<width>384</width>
<height>108</height>
<texture colordiffuse="$VAR[color:Main]">colorize/100.png</texture>
<visible>Control.HasFocus(6007)</visible>
</control>
<control type="togglebutton" id="6007">
<top>12</top>
<label>31233</label>
<onclick>Skin.ToggleSetting(SkinHelper.EnableExtraPoster)</onclick>
<onup>7090</onup>
<ondown>7091</ondown>
<onleft>7100</onleft>
<onright>50</onright>
<include>menu_Button</include>
</control>
<control type="group">
<top>54</top>
<left>32</left>
<control type="label">
<textcolor>$VAR[color:Main]</textcolor>
<label>31234</label>
<include>menu_Label</include>
<visible>!Control.HasFocus(6007) + Skin.HasSetting(SkinHelper.EnableExtraPoster)</visible>
</control>
<control type="label">
<textcolor>$VAR[color:Main]</textcolor>
<label>31235</label>
<include>menu_Label</include>
<visible>!Control.HasFocus(6007) + !Skin.HasSetting(SkinHelper.EnableExtraPoster)</visible>
</control>
<control type="label">
<width>384</width>
<label>31234</label>
<include>menu_Label</include>
<visible>Control.HasFocus(6007) + Skin.HasSetting(SkinHelper.EnableExtraPoster)</visible>
</control>
<control type="label">
<width>384</width>
<label>31235</label>
<include>menu_Label</include>
<visible>Control.HasFocus(6007) + !Skin.HasSetting(SkinHelper.EnableExtraPoster)</visible>
</control>
</control>
</control>
<!--get more-->
<control type="group" id="7091">
<height>108</height>
Expand Down
1 change: 1 addition & 0 deletions xml/Variables.xml
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,7 @@
<value condition="Container.Content(seasons) + String.IsEqual(ListItem.Label,$LOCALIZE[20366])">$INFO[Container().ListItem(1).Art(tvshow.poster)]</value>
<value condition="!String.IsEmpty(ListItem.Art(season.poster))">$INFO[ListItem.Art(season.poster)]</value>
<value condition="!String.IsEmpty(Container.Art(season.poster))">$INFO[Container.Art(season.poster)]</value>
<value condition="!String.IsEmpty(Window(Home).Property(SkinHelper.ListItem.Art.ExtraPoster)) + Skin.HasSetting(SkinHelper.EnableExtraPoster)">$INFO[Window(Home).Property(SkinHelper.ListItem.Art.ExtraPoster)]</value>
<value condition="!String.IsEmpty(ListItem.Art(tvshow.poster))">$INFO[ListItem.Art(tvshow.poster)]</value>
<value condition="!String.IsEmpty(ListItem.Art(poster))">$INFO[ListItem.Art(poster)]</value>
<value>$INFO[ListItem.Art(thumb)]</value>
Expand Down
10 changes: 6 additions & 4 deletions xml/ViewList.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@
<texture colordiffuse="$PARAM[DiffuseColor]">colorize/$PARAM[DiffuseLevel].png</texture>
<aspectratio>stretch</aspectratio>
</control>
<control type="image">
<control type="multiimage">
<left>9</left>
<top>9</top>
<width>72</width>
<height>72</height>
<texture>$PARAM[Art]</texture>
<timeperimage>6000</timeperimage>
<imagepath>$PARAM[Art]</imagepath>
<aspectratio>stretch</aspectratio>
<visible>$PARAM[ShowArt]</visible>
</control>
Expand Down Expand Up @@ -588,10 +589,11 @@
<control type="group">
<width>$PARAM[Width]</width>
<height>$PARAM[ArtHeight]</height>
<control type="image">
<control type="multiimage">
<width>$PARAM[Width]</width>
<height>$PARAM[ArtHeight]</height>
<texture background="true">$PARAM[Art]</texture>
<imagepath background="true">$PARAM[Art]</imagepath>
<timeperimage>6000</timeperimage>>
<fadetime>fadetime_Thumb</fadetime>
<aspectratio align="$PARAM[AspectRatioAlign]" aligny="center">$PARAM[Aspect]</aspectratio>
</control>
Expand Down