Added some code for disabling button visually, but it doesn't quite work

This commit is contained in:
2011-07-06 16:47:34 -04:00
parent eccc773457
commit 8a4ed42ab1
3 changed files with 21 additions and 4 deletions

View File

@ -44,7 +44,8 @@ class MenuButton : public Entity
// To get some complexity out of the Game class, let's teach MenuButton
// how to handle her own state, based on the current Mode and VertexType
// This isn't wonderful coupling, but it'll do
void set_state(Mode mode, VertexType type, GameVertex* current);
void set_state(Mode mode, VertexType type, GameVertex* current,
bool can_build);
private:
string text;
@ -59,6 +60,7 @@ class MenuButton : public Entity
bool hover;
bool selected;
bool visible;
bool enabled;
TTF_Font* font;