]> git.jsancho.org Git - lugaru.git/blob - Source/Menu.h
6a1911af746c6735afc67831e91fba17f27d3436
[lugaru.git] / Source / Menu.h
1 #ifndef _MENU_H_
2 #define _MENU_H_
3
4 #include "Game.h"
5
6 namespace Menu {
7     void clearMenu();
8     void addLabel(int id,const string& text,int x,int y,float r=1,float g=0,float b=0);
9     void addButton(int id,const string& text,int x,int y,float r=1,float g=0,float b=0);
10     void addImage(int id,Texture texture,int x,int y,int w,int h,float r=1,float g=1,float b=1);
11     void addButtonImage(int id,Texture texture,int x,int y,int w,int h,float r=1,float g=1,float b=1);
12     void addMapLine(int x, int y, int w, int h, float startsize, float endsize, float r,float g,float b);
13     void addMapMarker(int id,Texture texture,int x,int y,int w,int h,float r,float g,float b);
14     void addMapLabel(int id,const string& text,int x,int y,float r=1,float g=0,float b=0);
15     void setText(int id,const string& text);
16     void setText(int id,const string& text,int x,int y,int w,int h);
17     int getSelected(int mousex, int mousey);
18     void drawItems();
19 }
20
21 #endif