Skip to content

Commit

Permalink
WIP Infoscreen details
Browse files Browse the repository at this point in the history
  • Loading branch information
realcopacetic committed Mar 18, 2024
1 parent 6d722e2 commit 343c358
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 0 deletions.
80 changes: 80 additions & 0 deletions 16x9/Components_Infoscreens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -371,4 +371,84 @@
</control>
</include>

<include name="Infoscreen_Details_Layout">
<param name="visible" default="true" />
<definition>
<control type="grouplist">
<visible>$PARAM[visible]</visible>
<width>100%</width>
<height>60</height>
<orientation>horizontal</orientation>
<align>center</align>
<itemgap>60</itemgap>
<control type="label">
<height>100%</height>
<width>420</width>
<label>$PARAM[label]</label>
<textcolor>$VAR[Light_Color]</textcolor>
<font>Plot_Fullscreen</font>
<align>right</align>
</control>
<control type="label">
<height>100%</height>
<width>1280</width>
<label>$PARAM[label2]</label>
<textcolor>$VAR[Light_Color]</textcolor>
<font>Keyboard_Button_-2</font>
<align>left</align>
<scroll>true</scroll>
<scrollspeed>50</scrollspeed>
<scrollsuffix> / </scrollsuffix>
</control>
</control>
</definition>
</include>

<include name="Infoscreen_Details">
<definition>
<control type="grouplist">
<visible>$PARAM[visible]</visible>
<include content="Visible_Fade_Delayed_Animation" />
<width>1680</width>
<centerleft>50%</centerleft>
<height>600</height>
<centertop>50%</centertop>
<scrolltime tween="sine" easing="inout">360</scrolltime>
<orientation>vertical</orientation>
<align>center</align>
<usecontrolcoords>false</usecontrolcoords>
<itemgap>0</itemgap>
<include content="Infoscreen_Details_Layout">
<param name="label" value="Filename" />
<param name="label2" value="$INFO[ListItem.FileNameAndPath]" />
</include>
<include content="Infoscreen_Details_Layout">
<param name="label" value="Size" />
<param name="label2" value="$INFO[Window(home).Property(ListItem_Size)]" />
</include>
<include content="Infoscreen_Details_Layout">
<param name="label" value="Date added" />
<param name="label2" value="$INFO[ListItem.DateAdded]" />
</include>
<include content="Infoscreen_Details_Layout">
<param name="label" value="Resolution" />
<param name="label2" value="$INFO[ListItem.VideoResolution]" />
</include>
<include content="Infoscreen_Details_Layout">
<param name="label" value="Codec" />
<param name="label2" value="$INFO[ListItem.VideoCodec]" />
</include>
<include content="Infoscreen_Details_Layout">
<param name="label" value="Aspect" />
<param name="label2" value="$INFO[ListItem.VideoAspect]" />
</include>
<include content="Infoscreen_Details_Layout">
<param name="visible" value="!String.IsEmpty(ListItem.Set)" />
<param name="label" value="Set" />
<param name="label2" value="$INFO[ListItem.Set]" />
</include>
</control>
</definition>
</include>

</includes>
2 changes: 2 additions & 0 deletions 16x9/Components_Viewtypes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@
<!-- Settings transition from addonbrowser -->
<onfocus condition="Window.Is(addonbrowser) + $EXP[Container_Addons_NonRepo]">SetProperty(Container_Addons_NonRepo,true,home)</onfocus>
<onfocus condition="Window.Is(addonbrowser) + !$EXP[Container_Addons_NonRepo]">ClearProperty(Container_Addons_NonRepo,home)</onfocus>
<!-- Information to pass to Infoscreen -->
<onfocus>SetProperty(ListItem_Size,$INFO[ListItem.Size],home)</onfocus>
</control>
</definition>
</include>
Expand Down
6 changes: 6 additions & 0 deletions 16x9/Content_Infoscreens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@
<onfocus>SetProperty(ResetScroll," ")</onfocus>
<onfocus>SetProperty(Focused_Button,$LOCALIZE[184],movieinformation)</onfocus>
</control>
<control type="button" id="96">
<description>Details</description>
<include content="Hidden_Button_Template" />
<onunfocus>SetProperty(ResetScroll,"")</onunfocus>
<onfocus>SetProperty(Focused_Button,$LOCALIZE[33029],movieinformation)</onfocus>
</control>
</include>

<include name="musicinformation_Menu_Content">
Expand Down
3 changes: 3 additions & 0 deletions 16x9/DialogVideoInfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
<param name="itemgap" value="30" />
<param name="starheight" value="90" />
</include>
<include content="Infoscreen_Details">
<param name="visible" value="ControlGroup(3000).HasFocus(96)" />
</include>
</include>
<include content="Infoscreen_Furniture_Template">
<param name="overlay" value="!ControlGroup(3000).HasFocus + !Control.HasFocus(3205)" />
Expand Down

0 comments on commit 343c358

Please sign in to comment.