-void Menu::addMapLine(const XYZ& start, const XYZ& end, float startsize, float endsize, float r,float g,float b){
- items.push_back(MenuItem(start,end,startsize,endsize,r,g,b));
-}
-void Menu::addMapMarker(int id,int texture,MBCallback cb,int x,int y,int w,int h,float r,float g,float b){
- items.push_back(MenuItem(MenuItem::MAPMARKER,id,"",texture,cb,x,y,w,h,r,g,b));
+void Menu::addMapLabel(int id,const string& text,int x,int y,float r,float g,float b){
+ items.push_back(MenuItem());
+ items.back().init(MenuItem::MAPLABEL,id,text,Texture(),x,y,-1,-1,r,g,b);