mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
selectionwindow
This commit is contained in:
@@ -64,6 +64,12 @@ void GraphicalPrimitiveCanvas::addRectangle(const Point & topLeft, const Point &
|
||||
primitives.push_back({color, topLeft, size, PrimitiveType::RECTANGLE});
|
||||
}
|
||||
|
||||
void GraphicalPrimitiveCanvas::clear()
|
||||
{
|
||||
primitives.clear();
|
||||
redraw();
|
||||
}
|
||||
|
||||
TransparentFilledRectangle::TransparentFilledRectangle(Rect position, ColorRGBA color) :
|
||||
GraphicalPrimitiveCanvas(position)
|
||||
{
|
||||
|
||||
@@ -38,6 +38,7 @@ public:
|
||||
void addLine(const Point & from, const Point & to, const ColorRGBA & color);
|
||||
void addBox(const Point & topLeft, const Point & size, const ColorRGBA & color);
|
||||
void addRectangle(const Point & topLeft, const Point & size, const ColorRGBA & color);
|
||||
void clear();
|
||||
};
|
||||
|
||||
class TransparentFilledRectangle : public GraphicalPrimitiveCanvas
|
||||
|
||||
@@ -544,7 +544,6 @@ void CGStatusBar::activate()
|
||||
|
||||
void CGStatusBar::deactivate()
|
||||
{
|
||||
assert(GH.statusbar().get() == this);
|
||||
GH.setStatusbar(nullptr);
|
||||
|
||||
if (enteringText)
|
||||
|
||||
Reference in New Issue
Block a user