Added a method that return value is used to enable/disable the brush

bar.
This commit is contained in:
fendrin 2013-04-01 14:23:05 +02:00
parent 9cbc251919
commit 7aa8807ba6

View file

@ -117,6 +117,9 @@ public:
*/
common_palette& get_palette() { return palette_; }
/** Wether we need the brush bar, is used to grey it out.*/
virtual bool supports_brushes() { return false; }
/**
* Set the mouse overlay for this action. Defaults to an empty overlay.
*/
@ -275,6 +278,8 @@ public:
void set_mouse_overlay(editor_display& disp);
bool supports_brushes() { return true; }
protected:
const terrain_palette& terrain_palette_;
@ -315,6 +320,8 @@ public:
editor_action* click_perform_right(editor_display& disp, const std::set<map_location>& hexes);
virtual void set_mouse_overlay(editor_display& disp);
bool supports_brushes() { return true; }
};
/**