/*
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.
#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;
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