many changes :P
This commit is contained in:
@@ -5,12 +5,23 @@
|
||||
|
||||
class ToolMapGrid : public Tool {
|
||||
|
||||
private:
|
||||
|
||||
bool show = true;
|
||||
|
||||
public:
|
||||
|
||||
virtual void keyPressEvent(MapView2D* m, QKeyEvent* e) {
|
||||
(void) m;
|
||||
if (e->key() == Qt::Key_NumberSign) { show = !show; }
|
||||
}
|
||||
|
||||
void paintBefore(MapView2D* m, Painter& p) override {
|
||||
|
||||
(void) m;
|
||||
|
||||
if (!show) {return;}
|
||||
|
||||
static const QColor cB(250,250,250);
|
||||
static const QColor cN(235,235,235);
|
||||
static const QColor c0(128,128,128);
|
||||
|
||||
Reference in New Issue
Block a user