Always use top layer as bot layer

This commit is contained in:
Jeremy Penner 2020-08-01 22:22:48 -04:00
parent 7cfe7184dc
commit 31ab88ab6c

View file

@ -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: