]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Menu.h
BEAUTIFIED ALL SOURCE CODE
[lugaru.git] / Source / Menu.h
index 6a1911af746c6735afc67831e91fba17f27d3436..5abeeb10282655ce91f8ce82a4bfa668e47da1b3 100644 (file)
@@ -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