Advertisement
binooetomo

Navit osd cmd_interface to refresh logo

Mar 7th, 2012
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.99 KB | None | 0 0
  1. <!-- This is my try to implement what told by dandor at #Navit :
  2.  
  3. 19:55 < dandor> <osd  type="cmd_interface" command='osd[@name==mybutton].src="a.png" '  />
  4. 19:55 < dandor> <osd name="mybutton" src="XYZ.png">
  5. 20:02 < dandor> the above two lines will hopefully answer wowon's question
  6. 20:03 < dandor> wowon,in case you read the logs
  7. 20:03 < dandor> osd_set_attr() function is deprecated,instead you can use the object filtering built into the command system
  8. 20:03 < dandor> as above
  9.  
  10. /-->
  11. <osd name="mylogo" enabled="yes" x="0" y="0" src="mylogo.png" />
  12. <osd name="logosikat" enabled="yes" type="cmd_interface" x="0" y="0" update_period="1" command='osd[@name==mylogo].src="mylogo.png"' />
  13.  
  14. <!--Result
  15. It only show a black transparent box at 0.0
  16. I post the result screenshoot at http://oi44.tinypic.com/15gqa1l.jpg
  17. actualy 'mylogo.png' currently is a navit logo
  18.  
  19. I make a video post at http://videobam.com/widget/icRkf
  20. Looks like navit don't re-read the same file ... until re-started
  21.  
  22. />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement