diff options
| author | troido <troido@hotmail.com> | 2017-12-29 22:40:24 +0100 |
|---|---|---|
| committer | troido <troido@hotmail.com> | 2017-12-29 22:40:24 +0100 |
| commit | 29149f398986620cf13ba1fc4d2d7cca139bead0 (patch) | |
| tree | d8f7915bdf656599319ab5dd63d3873b9f8c59a3 /asciifarm/client/display/display.py | |
| parent | a1c60cfcb63b013f575943e17854cf205f8db913 (diff) | |
keybinding macros have their own file and selectors can now be used!
Diffstat (limited to 'asciifarm/client/display/display.py')
| -rw-r--r-- | asciifarm/client/display/display.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/asciifarm/client/display/display.py b/asciifarm/client/display/display.py index 4a74711..a3ee602 100644 --- a/asciifarm/client/display/display.py +++ b/asciifarm/client/display/display.py @@ -59,7 +59,7 @@ class Display: "msg": self.messagePad, "textinput": self.textInput } - self.changed = False + #self.changed = False self.update() @@ -74,28 +74,28 @@ class Display: (x, y), spriteName = cell sprite = self.getChar(spriteName) self.fieldPad.changeCell(x, y, *sprite) - self.change() + #self.change() def setFieldCenter(self, pos): self.fieldPad.setCenter(pos) def setHealth(self, health, maxHealth): self.healthPad.setHealth(health, maxHealth) - self.change() + #self.change() def showInfo(self, infostring): if infostring != self.lastinfostring: self.infoPad.showString(infostring) - self.change() + #self.change() self.lastinfostring = infostring def setInventory(self, items): self.inventoryPad.setInventory(items) - self.change() + #self.change() def setGround(self, items): self.groundPad.setInventory(items) - self.change() + #self.change() def getSelector(self, name): widget = self.getWidget(name) @@ -106,7 +106,7 @@ class Display: def addMessage(self, message): self.messagePad.addMessage(message) - self.change() + #self.change() def getChar(self, sprite): """This returns the character belonging to some spritename. This does not read a character""" @@ -119,12 +119,12 @@ class Display: """This does actually read input""" return self.textInput.getString() - def change(self): - self.changed = True + #def change(self): + #self.changed = True def update(self, force=False): - if not self.changed and not force: - return + #if not self.changed and not force: + #return self.fieldPad.update(force) self.messagePad.update(force) @@ -137,5 +137,5 @@ class Display: self.screen.update() - self.changed = False + #self.changed = False |
