More elaborated osd examples.
authorchristeck <christeck@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sat, 23 Aug 2008 00:22:34 +0000 (00:22 +0000)
committerchristeck <christeck@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sat, 23 Aug 2008 00:22:34 +0000 (00:22 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@1310 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/navit.xml

index ce5c1f7..eba9183 100644 (file)
@@ -29,16 +29,18 @@ Change to your home coordinates.
 
 
 <!--
-       <osd type="compass" />
-       <osd type="eta" />
-       <osd type="navigation" />
-       -->
+osd items allow to position display and control items directly on top of the map:
+<osd type="compass" />
+<osd type="eta" />
+<osd type="navigation" />
 
-<!--
-               Usage of negative values change the origins, e.g. x="0" y="0" specifies the top left, x="-0" y="-0" the bottom right corner.
-               Commands include gui_internal_menu, gui_internal_fullscreen, zoom_in and zoom_out:
-       <osd type="button" x="48" y="336" command="zoom_in" src="zoom_in.xpm" />
-       <osd type="button" x="48" y="96" command="zoom_out" src="zoom_out.xpm" />
+Commands include gui_internal_menu, gui_internal_fullscreen, zoom_in and zoom_out.
+Usage of negative values change the button origins. x="0" y="0" specifies the top left, x="-0" y="-0" the bottom right corner.
+It's always the top left corner of the icon, so you need to consider the icon's size when you enter the values.
+<osd type="button" x="48" y="48" command="gui_internal_fullscreen" src="toggle_fullscreen.xpm" />
+<osd type="button" x="-96" y="48" command="gui_internal_menu" src="menu.xpm" />
+<osd type="button" x="-96" y="-96" command="zoom_in" src="zoom_in.xpm" />
+<osd type="button" x="48" y="-96" command="zoom_out" src="zoom_out.xpm" />
 -->