X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FMenu.h;h=5abeeb10282655ce91f8ce82a4bfa668e47da1b3;hb=24004d6ab1e68faaf85ece11b566449997da5013;hp=6a1911af746c6735afc67831e91fba17f27d3436;hpb=1eec4500c708d0619abf36759454f59fa175cacf;p=lugaru.git diff --git a/Source/Menu.h b/Source/Menu.h index 6a1911a..5abeeb1 100644 --- a/Source/Menu.h +++ b/Source/Menu.h @@ -3,19 +3,20 @@ #include "Game.h" -namespace Menu { - void clearMenu(); - void addLabel(int id,const string& text,int x,int y,float r=1,float g=0,float b=0); - void addButton(int id,const string& text,int x,int y,float r=1,float g=0,float b=0); - void addImage(int id,Texture texture,int x,int y,int w,int h,float r=1,float g=1,float b=1); - void addButtonImage(int id,Texture texture,int x,int y,int w,int h,float r=1,float g=1,float b=1); - void addMapLine(int x, int y, int w, int h, float startsize, float endsize, float r,float g,float b); - void addMapMarker(int id,Texture texture,int x,int y,int w,int h,float r,float g,float b); - void addMapLabel(int id,const string& text,int x,int y,float r=1,float g=0,float b=0); - void setText(int id,const string& text); - void setText(int id,const string& text,int x,int y,int w,int h); - int getSelected(int mousex, int mousey); - void drawItems(); +namespace Menu +{ +void clearMenu(); +void addLabel(int id, const string& text, int x, int y, float r = 1, float g = 0, float b = 0); +void addButton(int id, const string& text, int x, int y, float r = 1, float g = 0, float b = 0); +void addImage(int id, Texture texture, int x, int y, int w, int h, float r = 1, float g = 1, float b = 1); +void addButtonImage(int id, Texture texture, int x, int y, int w, int h, float r = 1, float g = 1, float b = 1); +void addMapLine(int x, int y, int w, int h, float startsize, float endsize, float r, float g, float b); +void addMapMarker(int id, Texture texture, int x, int y, int w, int h, float r, float g, float b); +void addMapLabel(int id, const string& text, int x, int y, float r = 1, float g = 0, float b = 0); +void setText(int id, const string& text); +void setText(int id, const string& text, int x, int y, int w, int h); +int getSelected(int mousex, int mousey); +void drawItems(); } #endif