mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Corrected overlapping text in a few games.
This commit is contained in:
parent
30d3b047ce
commit
b80bfc4ca6
3 changed files with 8 additions and 8 deletions
|
@ -977,11 +977,11 @@ class DevilsSolitaire(Game):
|
||||||
|
|
||||||
x, y = layout.XM+4.5*layout.XS, self.height-layout.YS
|
x, y = layout.XM+4.5*layout.XS, self.height-layout.YS
|
||||||
s.talon = WasteTalonStack(x, y, self, max_rounds=3)
|
s.talon = WasteTalonStack(x, y, self, max_rounds=3)
|
||||||
layout.createText(s.talon, 'n')
|
layout.createText(s.talon, 'se')
|
||||||
layout.createRoundText(s.talon, 'nnn')
|
layout.createRoundText(s.talon, 'n')
|
||||||
x -= layout.XS
|
x -= layout.XS
|
||||||
s.waste = DevilsSolitaire_WasteStack(x, y, self)
|
s.waste = DevilsSolitaire_WasteStack(x, y, self)
|
||||||
layout.createText(s.waste, 'n')
|
layout.createText(s.waste, 'sw')
|
||||||
|
|
||||||
layout.defaultStackGroups()
|
layout.defaultStackGroups()
|
||||||
|
|
||||||
|
|
|
@ -268,11 +268,11 @@ class Contradance(Game):
|
||||||
|
|
||||||
x, y = l.XM+3*l.XS, l.YM+3*l.YS
|
x, y = l.XM+3*l.XS, l.YM+3*l.YS
|
||||||
s.talon = WasteTalonStack(x, y, self, max_rounds=2)
|
s.talon = WasteTalonStack(x, y, self, max_rounds=2)
|
||||||
l.createText(s.talon, 'n')
|
l.createText(s.talon, 'sw')
|
||||||
l.createRoundText(self.s.talon, 'nnn')
|
l.createRoundText(self.s.talon, 'n')
|
||||||
x += l.XS
|
x += l.XS
|
||||||
s.waste = WasteStack(x, y, self)
|
s.waste = WasteStack(x, y, self)
|
||||||
l.createText(s.waste, 'n')
|
l.createText(s.waste, 'se')
|
||||||
|
|
||||||
l.defaultStackGroups()
|
l.defaultStackGroups()
|
||||||
|
|
||||||
|
|
|
@ -184,7 +184,7 @@ class LesserQueue(AbstractFlowerGame):
|
||||||
l.createText(s.talon, "n")
|
l.createText(s.talon, "n")
|
||||||
s.talon.texts.rounds = MfxCanvasText(
|
s.talon.texts.rounds = MfxCanvasText(
|
||||||
self.canvas,
|
self.canvas,
|
||||||
self.width//2, h-2*l.TEXT_MARGIN,
|
self.width // 2, h - 2.5 * l.TEXT_HEIGHT - l.TEXT_MARGIN,
|
||||||
anchor="center",
|
anchor="center",
|
||||||
font=self.app.getFont("canvas_default"))
|
font=self.app.getFont("canvas_default"))
|
||||||
x = x + l.XS
|
x = x + l.XS
|
||||||
|
@ -208,7 +208,7 @@ class LesserQueue(AbstractFlowerGame):
|
||||||
x = x + l.XS
|
x = x + l.XS
|
||||||
self.texts.info = MfxCanvasText(
|
self.texts.info = MfxCanvasText(
|
||||||
self.canvas,
|
self.canvas,
|
||||||
self.width//2, h-l.TEXT_MARGIN,
|
self.width // 2, h - l.TEXT_MARGIN - l.TEXT_HEIGHT,
|
||||||
anchor="center",
|
anchor="center",
|
||||||
font=self.app.getFont("canvas_default"))
|
font=self.app.getFont("canvas_default"))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue