Skip to content

Commit

Permalink
[Games] Add GameOSD.xml and settings
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeSiLVO committed Oct 10, 2018
1 parent d1fb335 commit ba61152
Show file tree
Hide file tree
Showing 12 changed files with 316 additions and 42 deletions.
2 changes: 1 addition & 1 deletion 16x9/DialogSeekBar.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<window>
<defaultcontrol>1</defaultcontrol>
<visible>!Skin.HasSetting(Enable.ScreenshotMode)</visible>
<visible>!Skin.HasSetting(Enable.ScreenshotMode) + !Player.HasGame</visible>
<visible>![Player.Paused + Window.IsActive(1134) + !Skin.HasSetting(Disable.Netflix.Pause)]</visible>
<visible>[Window.IsVisible(videoosd) | [Window.IsVisible(fullscreeninfo) + !VideoPlayer.Content(LiveTV)] | [Window.IsActive(fullscreeninfo) + VideoPlayer.Content(LiveTV)] | Player.ShowInfo | Player.Seeking | Player.DisplayAfterSeek | Player.Paused | Player.Forwarding | Player.Rewinding | Player.Caching] + VideoPlayer.IsFullscreen | [[Window.IsActive(fullscreenvideo) | Window.IsActive(visualisation)] + !Window.IsActive(pvrosdchannels) + !String.IsEmpty(PVR.ChannelNumberInput)]</visible>
<zorder>1</zorder>
Expand Down
2 changes: 1 addition & 1 deletion 16x9/DialogSlider.xml
Expand Up @@ -15,7 +15,7 @@
<width>720</width>
<height>140</height>
<texture border="40,0,40,35">topbar2.png</texture>
<visible>[Window.IsActive(fullscreenvideo) | Window.IsActive(visualisation) | Window.IsActive(slideshow)]</visible>
<visible>[Window.IsActive(fullscreenvideo) | Window.IsActive(visualisation) | Window.IsActive(slideshow) | Window.IsActive(gamevolume)]</visible>
</control>
<control type="label" id="10">
<description>Dialog Header</description>
Expand Down
141 changes: 141 additions & 0 deletions 16x9/GameOSD.xml
@@ -0,0 +1,141 @@
<?xml version="1.0" encoding="UTF-8"?>
<window>
<defaultcontrol always="true">9000</defaultcontrol>
<coordinates>
<system>1</system>
<left>550</left>
<top>245</top>
</coordinates>
<include>DialogOpenCloseAnimation</include>
<controls>
<control type="group">
<visible>!Window.IsActive(1129)</visible>
<include>SettingsFadeAnimation</include>
<control type="image">
<width>820</width>
<height>350</height>
<texture border="40">dialogs/default/bg.png</texture>
</control>
<control type="group">
<top>30</top>
<control type="label">
<left>29</left>
<width>760</width>
<height>40</height>
<font>font16_title_bold</font>
<label>$LOCALIZE[35221]</label>
<textcolor>dialogheader</textcolor>
<align>center</align>
<scroll>true</scroll>
</control>
<control type="image">
<left>17</left>
<top>50</top>
<width>785</width>
<height>1</height>
<texture colordiffuse="$VAR[ThemeLabelColor]">new_pvr/osd_line_white.png</texture>
</control>
</control>
<control type="group" id="9000">
<control type="list" id="3">
<left>20</left>
<top>88</top>
<width>800</width>
<height>360</height>
<onup>3</onup>
<ondown>3</ondown>
<onleft>60</onleft>
<pagecontrol>60</pagecontrol>
<scrolltime tween="quadratic" easing="out">200</scrolltime>
<itemlayout height="60" width="800">
<control type="image">
<width>60</width>
<height>60</height>
<texture colordiffuse="grey2">$INFO[ListItem.Icon]</texture>
</control>
<control type="label">
<left>64</left>
<width>716</width>
<height>60</height>
<textoffsetx>15</textoffsetx>
<font>font14</font>
<textcolor>grey2</textcolor>
<label>$INFO[ListItem.Label]</label>
</control>
<control type="label">
<left>64</left>
<width>716</width>
<height>60</height>
<textoffsetx>15</textoffsetx>
<font>font14</font>
<textcolor>grey2</textcolor>
<align>right</align>
<label>$INFO[ListItem.Label2]</label>
</control>
</itemlayout>
<focusedlayout height="60" width="800">
<control type="image">
<width>780</width>
<height>60</height>
<texture colordiffuse="$VAR[HighlightBarColor]" border="5">listselect_fo.png</texture>
<visible>Control.HasFocus(3)</visible>
<include>VisibleFadeAnimation</include>
</control>
<control type="group">
<animation effect="fade" start="100" end="70" time="300" tween="sine" easing="inout" condition="!Control.HasFocus(3)">Conditional</animation>
<control type="image">
<width>60</width>
<height>60</height>
<texture colordiffuse="white">$INFO[ListItem.Icon]</texture>
</control>
<control type="label">
<left>64</left>
<width>716</width>
<height>60</height>
<textoffsetx>15</textoffsetx>
<font>font14</font>
<scroll>true</scroll>
<label>$INFO[ListItem.Label]</label>
</control>
<control type="label">
<width>716</width>
<height>60</height>
<textoffsetx>15</textoffsetx>
<font>font14</font>
<align>right</align>
<label>$INFO[ListItem.Label2]</label>
</control>
</control>
</focusedlayout>
<content>
<item>
<description>Pause / Resume button</description>
<label>$LOCALIZE[35224]</label>
<icon>osd/buttons/play.png</icon>
<onclick>Play</onclick>
</item>
<item>
<description>Reset button</description>
<label>$LOCALIZE[13007]</label>
<icon>osd/buttons/reset.png</icon>
<onclick>PlayerControl(Reset)</onclick>
</item>
<item>
<description>Stop button</description>
<label>$LOCALIZE[35222]</label>
<icon>osd/buttons/stop.png</icon>
<onclick>Stop</onclick>
</item>
<item>
<description>Settings button</description>
<label>$LOCALIZE[5]</label>
<icon>osd/buttons/settings.png</icon>
<onclick>SetProperty(CustomSelectGameOSDSettings,true,Home)</onclick>
<onclick>ActivateWindow(1129)</onclick>
</item>
</content>
</control>
</control>
</control>
</controls>
</window>
33 changes: 33 additions & 0 deletions 16x9/Includes.xml
Expand Up @@ -1955,6 +1955,39 @@
</definition>
</include>
<!-- Custom Select -->
<include name="SelectGameOSDSettings">
<item>
<description>Video filter button</description>
<label>$LOCALIZE[35225]</label>
<onclick>ActivateWindow(GameVideoFilter)</onclick>
</item>
<item>
<description>Stretch mode button</description>
<label>$LOCALIZE[35233]</label>
<onclick>ActivateWindow(GameStretchMode)</onclick>
</item>
<item>
<description>Video rotation button</description>
<label>$LOCALIZE[35227]</label>
<onclick>ActivateWindow(GameVideoRotation)</onclick>
</item>
<item>
<description>Volume button</description>
<label>$LOCALIZE[13376]</label>
<label2>[COLOR grey]Select + Right Stick[/COLOR]</label2>
<onclick>ActivateWindow(GameVolume)</onclick>
</item>
<item>
<description>Controller settings button</description>
<label>$LOCALIZE[35234]</label>
<onclick>ActivateWindow(GameControllers)</onclick>
</item>
<item>
<description>Advanced settings</description>
<label>$LOCALIZE[35226]</label>
<onclick>ActivateWindow(GameAdvancedSettings)</onclick>
</item>
</include>
<include name="SelectSearch">
<item>
<label>$LOCALIZE[31472]</label>
Expand Down
1 change: 1 addition & 0 deletions 16x9/Variables.xml
Expand Up @@ -41,6 +41,7 @@
<value>$LOCALIZE[12317] $LOCALIZE[31090]</value>
</variable>
<variable name="CustomSelectLabelVar">
<value condition="!String.IsEmpty(Window(Home).Property(CustomSelectGameOSDSettings))" />
<value condition="!String.IsEmpty(Window(Home).Property(CustomSelectSearch))">$LOCALIZE[137]</value>
<value>$LOCALIZE[22080]</value>
</variable>
Expand Down

0 comments on commit ba61152

Please sign in to comment.