diff --git a/whiteboard.py b/whiteboard.py index b4c69a8..4a96635 100755 --- a/whiteboard.py +++ b/whiteboard.py @@ -139,7 +139,6 @@ class Board(Drawing): def InitPersistent(self, owner, stName, user, rglayer=None, dtLastModified=None): super(Board, self).InitPersistent(owner, stName, user, rglayer=rglayer, dtLastModified=dtLastModified) self.defs = Defs() - self.layerObj = self.rglayer[0] def StType(self): return "Board" @@ -182,10 +181,9 @@ class Board(Drawing): self.chat = Chat() if versionOld < 4: self.defs = Defs() - self.layerObj = self.rglayer[0] def LayerObj(self): - return self.layerObj + return self.rglayer[0] def AchAtPos(self, pos, layer = None): if layer == None: @@ -299,7 +297,7 @@ class Cursor(TokenClient): def MenuLayers(self, miQuit): return MiMenu(Rgseq([None], self.rgmiLayer, [None, MiButton("New Layer", self.NewLayer), MiButton("Move up", self.LayerUp), MiButton("Move down", self.LayerDown), - None, MiToggle("Show One"), MiButton("Set as bot layer", self.SetBotLayer), None, + None, MiToggle("Show One"), None, MiStatic("Rename selected layer:"), MiTypein(self.RenameLayer, "LayerName", 80), None, miQuit, None])) def StLayerTab(self): return "Layers" def Save(self): @@ -342,9 +340,6 @@ class Cursor(TokenClient): self.GetLayer().SetName(st) return True - def SetBotLayer(self): - self.game.drawing.layerObj = self.GetLayer() - def blinkCursor(self, fBlink): self.fBlink = fBlink if not fBlink and self.cDontBlink > 0: