X-Git-Url: https://git.jsancho.org/?p=lugaru.git;a=blobdiff_plain;f=Source%2FMenu%2FMenu.hpp;h=713a59c82f35f61656ad1d56c1c176f438cb3f47;hp=0ed6ed912c7d1a44e43886e5b772d4b2bbaff7c0;hb=6a8cb464330e92163c8feaf101b8b5837c973bba;hpb=5fca41ab430df85d6dd620a7f4130df01bc1430f diff --git a/Source/Menu/Menu.hpp b/Source/Menu/Menu.hpp index 0ed6ed9..713a59c 100644 --- a/Source/Menu/Menu.hpp +++ b/Source/Menu/Menu.hpp @@ -23,8 +23,19 @@ along with Lugaru. If not, see . #include "Game.hpp" -struct MenuItem { - enum MenuItemType {NONE, LABEL, BUTTON, IMAGE, IMAGEBUTTON, MAPMARKER, MAPLINE, MAPLABEL} type; +struct MenuItem +{ + enum MenuItemType + { + NONE, + LABEL, + BUTTON, + IMAGE, + IMAGEBUTTON, + MAPMARKER, + MAPLINE, + MAPLABEL + } type; int id; string text; Texture texture; @@ -36,8 +47,8 @@ struct MenuItem { float lineendsize; MenuItem(MenuItemType _type, int _id, const string& _text, Texture _texture, - int _x, int _y, int _w, int _h, float _r, float _g, float _b, - float _linestartsize = 1, float _lineendsize = 1); + int _x, int _y, int _w, int _h, float _r, float _g, float _b, + float _linestartsize = 1, float _lineendsize = 1); }; class Menu