Added some code for disabling button visually, but it doesn't quite work
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user