OSD Subtitle delay positioning and look
#1
Where can I modify the subtitles delay OSD window size and positioning? As it is by default it's really in the middle of the picture...

Edit: I suppose it's DialogSlider.xml and I could try by trial and error but if somebody has suggestions, I'm all ears (eyes... Smile ).
For troubleshooting and bug reporting please make sure you read this first (usually it's enough to follow instructions in the second post).
Reply
#2
The subtitle dialog in OSD is here from line 240 onwards:
https://github.com/Tgxcorporation/skin.b...D.xml#L240

The slider for subtitles delay and other things is here:
https://github.com/Tgxcorporation/skin.b...Slider.xml

Tgx
Reply
#3
Thanks a lot for the quick answer. I guessed right, then. I'm working on DialogSlider.xml and I just wanted to be sure that it's used only for subtitles (and audio I suppose) delay. Is that the case?

Thanks a lot. Once I'll get to a satisfying result I'll post the code here. It's one of those things that if the coder doesn't use often maybe he doesn't realize how annoying they could be. I remember Ronie changed it years ago, on Transparency, upon my suggestion. Thanks again. Smile
For troubleshooting and bug reporting please make sure you read this first (usually it's enough to follow instructions in the second post).
Reply
#4
(2016-03-29, 19:01)ashlar Wrote: Thanks a lot for the quick answer. I guessed right, then. I'm working on DialogSlider.xml and I just wanted to be sure that it's used only for subtitles (and audio I suppose) delay. Is that the case?

Thanks a lot. Once I'll get to a satisfying result I'll post the code here. It's one of those things that if the coder doesn't use often maybe he doesn't realize how annoying they could be. I remember Ronie changed it years ago, on Transparency, upon my suggestion. Thanks again. Smile

I think it's used for every settings in audio/video Osd that requires a slider. Not only for subtitles. Zoom for example.

Tgx
Reply
#5
This is what I came up with. Surely it's not pixel perfect as far as alignments are concerned, but it gives the general idea of how I think it would be better (and serves my needs for now). I lifted most of the code from Confluence, which had it set similarly to how I wanted it.

This is my current DialogSlider.xml (I don't have the slightest idea about what line 11 is for):
Code:
<?xml version="1.0" encoding="utf-8"?>
<window>
    <defaultcontrol always="true">11</defaultcontrol>
   <include>DialogOpenClose</include>
        <coordinates>
        <left>0</left>
        <top>0</top>
        </coordinates>
    <controls>
       <control type="group">
        <include condition="Skin.HasSetting(BlackGlassMode)+!Skin.HasSetting(DisableSlidingAnimations)">OpenCloseSlideRight</include>
            <posx>0</posx>
            <posy>0</posy>
            <include name="WindowClosingButton">
            <param name="id" value="9001"/>
            <param name="x" value="400"/>
            <param name="y" value="-36"/>
        </include>
        <control type="image">
            <left>600</left>
            <top>-15</top>
            <width>720</width>
            <height>80</height>
            <texture>common/bg_dialog.png</texture> -->
        </control>
        <control type="label" id="10">
            <left>635</left>
            <top>10</top>
            <width>230</width>
            <height>20</height>
            <align>left</align>
            <aligny>center</aligny>
            <font>OSDFont</font>
            <textcolor>MainColor</textcolor>
        </control>
        <control type="slider" id="11">
            <left>650</left>
            <top>35</top>
            <width>620</width>
            <height>20</height>
            <aligny>center</aligny>
            <onup>noop</onup>
            <ondown>noop</ondown>
            <onleft>11</onleft>
            <onright>11</onright>
        </control>
        <control type="label" id="12">
            <left>865</left>
            <top>10</top>
            <width>420</width>
            <height>20</height>
            <align>right</align>
            <aligny>center</aligny>
            <texturefocus>-</texturefocus>
            <texturenofocus>-</texturenofocus>            
            <font>OSDFont</font>
            <textcolor>MainColor</textcolor>
        </control> -->
      </control> -->
    </controls>
</window>
For troubleshooting and bug reporting please make sure you read this first (usually it's enough to follow instructions in the second post).
Reply

Logout Mark Read Team Forum Stats Members Help
OSD Subtitle delay positioning and look0