Always use top layer as bot layer
This commit is contained in:
parent
7cfe7184dc
commit
31ab88ab6c
|
@ -139,7 +139,6 @@ class Board(Drawing):
|
||||||
def InitPersistent(self, owner, stName, user, rglayer=None, dtLastModified=None):
|
def InitPersistent(self, owner, stName, user, rglayer=None, dtLastModified=None):
|
||||||
super(Board, self).InitPersistent(owner, stName, user, rglayer=rglayer, dtLastModified=dtLastModified)
|
super(Board, self).InitPersistent(owner, stName, user, rglayer=rglayer, dtLastModified=dtLastModified)
|
||||||
self.defs = Defs()
|
self.defs = Defs()
|
||||||
self.layerObj = self.rglayer[0]
|
|
||||||
|
|
||||||
def StType(self):
|
def StType(self):
|
||||||
return "Board"
|
return "Board"
|
||||||
|
@ -182,10 +181,9 @@ class Board(Drawing):
|
||||||
self.chat = Chat()
|
self.chat = Chat()
|
||||||
if versionOld < 4:
|
if versionOld < 4:
|
||||||
self.defs = Defs()
|
self.defs = Defs()
|
||||||
self.layerObj = self.rglayer[0]
|
|
||||||
|
|
||||||
def LayerObj(self):
|
def LayerObj(self):
|
||||||
return self.layerObj
|
return self.rglayer[0]
|
||||||
|
|
||||||
def AchAtPos(self, pos, layer = None):
|
def AchAtPos(self, pos, layer = None):
|
||||||
if layer == None:
|
if layer == None:
|
||||||
|
@ -299,7 +297,7 @@ class Cursor(TokenClient):
|
||||||
|
|
||||||
def MenuLayers(self, miQuit):
|
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),
|
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]))
|
MiStatic("Rename selected layer:"), MiTypein(self.RenameLayer, "LayerName", 80), None, miQuit, None]))
|
||||||
def StLayerTab(self): return "Layers"
|
def StLayerTab(self): return "Layers"
|
||||||
def Save(self):
|
def Save(self):
|
||||||
|
@ -342,9 +340,6 @@ class Cursor(TokenClient):
|
||||||
self.GetLayer().SetName(st)
|
self.GetLayer().SetName(st)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def SetBotLayer(self):
|
|
||||||
self.game.drawing.layerObj = self.GetLayer()
|
|
||||||
|
|
||||||
def blinkCursor(self, fBlink):
|
def blinkCursor(self, fBlink):
|
||||||
self.fBlink = fBlink
|
self.fBlink = fBlink
|
||||||
if not fBlink and self.cDontBlink > 0:
|
if not fBlink and self.cDontBlink > 0:
|
||||||
|
|
Loading…
Reference in a new issue