[MOD] Slider Dialog
#1
The osd when adjusting audio and subtitle offsets was covering most of the screen so I implemented the SliderDialog.xml that is in XBMC SVN. The mod consists two modified files and two new files.

Modded file #1 VideoOSDSettings.xml add

PHP Code:
<control type="group">
    <
animation effect="fade" start="100" end="0" time="200" condition="Window.IsVisible(SliderDialog)">conditional</animation

right before the code (which should be around line 12)

PHP Code:
    <control type="image">
        <
description>Panel</description

and

PHP Code:
</control

right before

PHP Code:
</controls>
</
window

at the end of the file.



Modded file #2 VideoOSD.xml line 11 changed from

PHP Code:
        <visible>!Window.IsActive(125)</visible

to

PHP Code:
        <visible>!Window.IsActive(125) + !Window.IsVisible(SliderDialog)</visible
Added file #1 DialogSlider.xml in the 720p Directory


PHP Code:
<window id="145">
    <
defaultcontrol>11</defaultcontrol>
    <
animation effect="fade" time="200">WindowOpen</animation>
    <
animation effect="fade" time="200">WindowClose</animation>
    <
coordinates>
        <
system>1</system>
        <
posx>235</posx>
        <
posy>450</posy>
    </
coordinates>
    <
controls>    
        <include>
Dialogs_Group</include>
        <include>
Dialogs_Tablet</include>

        <
control type="image">
            <
posx>6</posx>
            <
posy>4</posy>
            <
width>81</width>
            <
height>82</height>
            <
texture>dialogs/delay.png</texture>
        </
control>
        
        <
control type="label" id="10">
            <
description>Dialog header</description>
            <include>
Dialogs_Label1</include>
            <
aligny>center</aligny>
        </
control>
        <
control type="label" id="12">
            <
description>Slider Value</description>
            <
posx>105</posx>
            <
width>390</width>
            <
height>21</height>
            <
textcolor>FFF5F5F5</textcolor>
            <
font>Font_ProgressLabel</font>        
            <
posy>26</posy>    
            <
align>center</align>
            <
aligny>center</aligny>
        </
control>
        <
control type="slider" id="11">
            <
description>Slider</description>
            <
posy>15</posy>
            <
posx>105</posx>
            <
width>390</width>
            <
align>center</align>
            <
sliderwidth>211</sliderwidth>
            <
sliderheight>65</sliderheight>
            <
texturesliderbar>osd/osd_sliderback.png</texturesliderbar>
            <
textureslidernib>osd/osd_slidernub.png</textureslidernib>
            <
textureslidernibfocus>osd/osd_slidernubf.png</textureslidernibfocus>
            <
onup>11</onup>
            <
ondown>11</ondown>
            <
onleft>11</onleft>
            <
onright>11</onright>
        </
control>
    </
controls>
</
window

Added file #2 delay.png in the media/dialogs directory.

Image
Reply
#2
Can you provide any screenshots as I don't really understand what exactly you modded.
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#3
I think this the feature that hides the big menu and just shows the slider you're using so as to not cover up the video.
Mind if I add this to my mod?
Reply
#4
For anyone having as little knowledge as me concerning this SliderDialog check this: http://xbmc.org/jmarshall/2009/05/11/eas...-settings/
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#5
Hitcher Wrote:I think this the feature that hides the big menu and just shows the slider you're using so as to not cover up the video.
Mind if I add this to my mod?

No problem, go right ahead
Reply
#6
The slider dialog is nice but not very user friendly if you see to the navigation.

Is it possible to activate the slider by hitting right and left? Now it only pops up when hitting SELECT and that is quite annoying imo.

Can it be done in skinning or does it have to be patched in XBMC?


EDIT: I have made some progress. I added

Code:
                <onright>XBMC.ActivateWindow(SliderDialog)</onright>
                <onleft>XBMC.ActivateWindow(SliderDialog)</onleft>

to

Code:
<control type="button" id="7">

It opens the Slider but not with the correct values. It's just empty. And of course it opens slider dialog if I hit right and left on the "browse for subtitles" button. Smile
Reply
#7
I started a discussion about it in skin help.

http://forum.xbmc.org/showthread.php?p=3...post373530

Doesn't seem to be that easy.
Reply

Logout Mark Read Team Forum Stats Members Help
[MOD] Slider Dialog0