]> git.jsancho.org Git - lugaru.git/blob - Source/Menu.h
6f5de85046c929918a04bad1b7080b03a0fe4b69
[lugaru.git] / Source / Menu.h
1 #ifndef _MENU_H_
2 #define _MENU_H_
3
4 #include "Game.h"
5
6 namespace Menu {
7     typedef void(*MBCallback)(int id);
8
9     void GUITick(Game* game);
10     void clearMenu();
11     void addLabel(int id,const string& label,int x,int y);
12     void addButton(int id,const string& label,MBCallback cb,int x,int y,int w,int h,float r=1,float g=0,float b=0);
13     void addImage(int id,int texture,int x,int y,int w,int h);
14     void addImageButton(int id,int texture,MBCallback cb,int x,int y,int w,int h,float r=1,float g=1,float b=1);
15     void addMapLine(int x, int y, int w, int h, float startsize, float endsize, float r,float g,float b);
16     void addMapMarker(int id,int texture,MBCallback cb,int x,int y,int w,int h,float r,float g,float b);
17     void setMapItem(int id);
18     void setButtonText(int id,const string& label);
19     void setButtonText(int id,const string& label,int x,int y,int w,int h);
20     int getSelected(int mousex, int mousey);
21     void drawItems(Game* game);
22 }
23
24 #endif