From e1786cfdaf3ac96c0ea4be4e18ea678fbb135d97 Mon Sep 17 00:00:00 2001 From: troido Date: Fri, 10 Nov 2017 21:13:29 +0100 Subject: added force option to pads. not usd it yet --- asciifarm/client/display/inventorypad.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'asciifarm/client/display/inventorypad.py') diff --git a/asciifarm/client/display/inventorypad.py b/asciifarm/client/display/inventorypad.py index e81f9de..f10b138 100644 --- a/asciifarm/client/display/inventorypad.py +++ b/asciifarm/client/display/inventorypad.py @@ -22,8 +22,8 @@ class InventoryPad: def getHeight(self): return self.maxItems+2 - def update(self, screen, x, y, xmax, ymax): - if not self.changed and (x, y, xmax, ymax) == self.lastView or xmax <= x or ymax <= y: + def update(self, screen, x, y, xmax, ymax, force=False): + if not self.changed and (x, y, xmax, ymax) == self.lastView or xmax <= x or ymax <= y and not force: return self.lastView = (x, y, xmax, ymax) self.changed = False -- cgit