X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FMenu%2FMenu.hpp;h=713a59c82f35f61656ad1d56c1c176f438cb3f47;hb=6f9609cebe4bcb87a7722b628b02a1975c56148c;hp=eea5a5c2188bd5b17337f094f2d32e9ca0dd596a;hpb=ed3662c0852c4312a612b4fc35bd03aba8d13db7;p=lugaru.git diff --git a/Source/Menu/Menu.hpp b/Source/Menu/Menu.hpp index eea5a5c..713a59c 100644 --- a/Source/Menu/Menu.hpp +++ b/Source/Menu/Menu.hpp @@ -1,6 +1,6 @@ /* Copyright (C) 2003, 2010 - Wolfire Games -Copyright (C) 2010-2016 - Lugaru contributors (see AUTHORS file) +Copyright (C) 2010-2017 - Lugaru contributors (see AUTHORS file) This file is part of Lugaru. @@ -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