From f220ecde50fdd5bfbff5fcd001e2d586c8b6030e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobiasz=20Ma=C5=82yszek?= <120247557+TobsterLobster08@users.noreply.github.com> Date: Sun, 18 Feb 2024 16:50:11 +0100 Subject: [PATCH] drawing probably final update --- gui/button.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gui/button.py b/gui/button.py index 9087290..ce16e38 100644 --- a/gui/button.py +++ b/gui/button.py @@ -1,4 +1,5 @@ import classes.game +import gui.polygonDrawing import pygame import settingsSetup @@ -193,6 +194,7 @@ def checkifclicked(self, mousepos): if self.number == 4: if classes.game.isDrawingModeOn == True: classes.game.isDrawingModeOn = False + gui.polygonDrawing.clearPoints() elif classes.game.isDrawingModeOn == False: classes.game.isDrawingModeOn = True