Solved Subtitle color options
#1
Hi,

When I use the Estuary skin, I can change subtitle colors in the player settings (Settings - Player - Subtitles).

But in my skin, I have the DialogColorPicker.xml file and the ColorButton defined, I can see the hex value for the color, click on it and have the color picker dialog, but I cannot see the colorbox (rectangle next to the hex value).
In the Esturay Skin the <colorbox> tag is not defined (I have only copied then button as is in my skin), and the preview rectangle is displayed.

Ideas ? (... I am sure you've got one Smile)

Thanks
Reply
#2
Post your complete colorbutton control.
Reply
#3
Hi, here it is :
Code:

        <control type="colorbutton" id="15">
            <description>Default ColorButton</description>
            <include>DefaultSettingButton</include>
        </control>
and the include :
Code:

    <include name="DefaultSettingButton">
        <param name="height">70</param>
        <param name="textoffsetx">40</param>
        <definition>
            <textoffsetx>$PARAM[textoffsetx]</textoffsetx>
            <top>0</top>
            <height>$PARAM[height]</height>
            <aligny>center</aligny>
            <invalidcolor>invalid</invalidcolor>
            <selectedcolor>selected</selectedcolor>
            <texturefocus colordiffuse="button_focus">lists/focus.png</texturefocus>
            <texturenofocus />
        </definition>
    </include>

As, I said, it is the Estuary code, as is.
Reply
#4
Not quite, you forgot about the one found in Defaults.xml.

xml:
<default type="colorbutton">
<colorwidth>150</colorwidth>
<colorheight>76</colorheight>
<texturecolormask>buttons/color-button-box.png</texturecolormask>
<texturecolordisabledmask colordiffuse="disabled">buttons/color-button-box.png</texturecolordisabledmask>
<font>font13</font>
<textcolor>white</textcolor>
<disabledcolor>disabled</disabledcolor>
<textoffsetx>7</textoffsetx>
<align>left</align>
<aligny>center</aligny>
<pulseonselect>no</pulseonselect>
</default>

So you're missing the colorwidth and colorheight tags.
Reply
#5
I forgot to add them here, however, my default.xml file is correctly defined.
Reply
#6
Please post that as well.
Reply
#7
Ok, but this is the same :
Code:
    <default type="colorbutton">
        <colorwidth>150</colorwidth>
        <colorheight>76</colorheight>
        <texturecolormask>buttons/color-button-box.png</texturecolormask>
        <texturecolordisabledmask colordiffuse="disabled">buttons/color-button-box.png</texturecolordisabledmask>
        <font>font13</font>
        <textcolor>white</textcolor>
        <disabledcolor>disabled</disabledcolor>
        <textoffsetx>7</textoffsetx>
        <align>left</align>
        <aligny>center</aligny>
        <pulseonselect>no</pulseonselect>
    </default>
Reply
#8
Ok, I found what's going on :
I missed to add the png texture file in my Textures.xbt.

Thanks
Reply
#9
Thread marked solved.
Reply

Logout Mark Read Team Forum Stats Members Help
Subtitle color options0