no custom window
#1
i tried to add a custom window but nothing happens. I used the code from the wiki but without luck. i use the aeon skin and add the custom1.xml where the home.xml is with this code

Code:
<window>
  <id>14000</id>
  <defaultcontrol>2</defaultcontrol>
  <allowoverlay>yes</allowoverlay>
  <type>dialog</type>
  <visible>true</visible>
  <coordinates>
    <system>1</system>
    <posX>200</posX>
    <posY>100</posY>
  </coordinates>
  <controls>
            
            
            <control type="image">
                <description>Panel</description>
                <posx>0</posx>
                <posy>0</posy>
                <height>147</height>
                <width>389</width>
                <colordiffuse>cdffffff</colordiffuse>
                <texture>osd/medialogo.png</texture>
            </control>
            
            
    </controls>
</window>

the mediaplogo.png is in the right directory. The window shoul shows up if a video is startet or a tvshow.

Can someone help me please
Reply
#2
skycryer Wrote:i tried to add a custom window but nothing happens. I used the code from the wiki but without luck. i use the aeon skin and add the custom1.xml where the home.xml is with this code

Code:
<window>
  <id>14000</id>
  <defaultcontrol>2</defaultcontrol>
  <allowoverlay>yes</allowoverlay>
  <type>dialog</type>
  <visible>true</visible>
  <coordinates>
    <system>1</system>
    <posX>200</posX>
    <posY>100</posY>
  </coordinates>
  <controls>
            
            
            <control type="image">
                <description>Panel</description>
                <posx>0</posx>
                <posy>0</posy>
                <height>147</height>
                <width>389</width>
                <colordiffuse>cdffffff</colordiffuse>
                <texture>osd/medialogo.png</texture>
            </control>
            
            
    </controls>
</window>
the mediaplogo.png is in the right directory. The window shoul shows up if a video is startet or a tvshow.

Can someone help me please
it exist two ways to show a dialog window, first you activate the window with a click on a button or key "ActivateWindow(14000)", or second you must set a visible condition, where it should be visible.

i believe a <visible>true</visible> is not enough.

<visible>Player.HasVideo</visible> should show the window if the player has loaded a video file
Reply
#3
i changed "<visible>true</visible>" to "<visible>Player.HasVideo</visible>" but the picture dont show up if i play a video file.
Reply
#4
skycryer Wrote:i changed "<visible>true</visible>" to "<visible>Player.HasVideo</visible>" but the picture dont show up if i play a video file.
is it visible if you activate it with a button?
so you can test, whether the dialog is not opening, or something is wrong with the image

ps.: you could use the videooverlay.xml, that dialog is always visible if the player has a video loaded.
Reply
#5
In my First experiments I add the control part from
above into videoosd.XML and everytime the videoosd shows up m picture was in top of the right corner. That's because I think the picture is ok.
Reply

Logout Mark Read Team Forum Stats Members Help
no custom window0