Add current time to the Video OSD
#1
i wanted to add the current time to the video osd because i think is very useful. my c skills are almost nonexistent but i did it Smile

guiwindowosd.cpp

#define osd_time 101

must be added

and the lines in cursive to cguiwindowosd

void cguiwindowosd::get_timeinfo()

if (!g_application.m_pplayer) return;
if (!g_application.m_pplayer->hasvideo()) return;

wchar wsztime[32];
systemtime time;
getlocaltime(&time);
swprintf(wsztime,l"%d:%02d:%02d",time.whour,time.wminute,time.wsecond);
set_control_label(getid(), osd_time, wsztime);



skin changes (visor skin):

videoosd.xml

<control>
<description>time info background</description>
<type>image</type>
<id>0</id>
<posx>567</posx>
<posy>120</posy>
<width>73</width>
<height>23</height>
<texture>osd_menu_bg.png</texture>
</control>
<control>
<description>time info</description>
<type>label</type>
<id>101</id>
<posx>570</posx>
<posy>120</posy>
<label>-</label>
<align>left</align>
<font>font13</font>
<textcolor>ffffffff</textcolor>
</control>



Image

and now my question: are there any chances of this being added to the cvs? so i won't need to update manually guiwindowosd.cpp
Reply

Logout Mark Read Team Forum Stats Members Help
Add current time to the Video OSD0