1
0
Fork 0
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:
Joe R 2022-05-26 20:07:06 -04:00
parent 30d3b047ce
commit b80bfc4ca6
3 changed files with 8 additions and 8 deletions

View file

@ -977,11 +977,11 @@ class DevilsSolitaire(Game):
x, y = layout.XM+4.5*layout.XS, self.height-layout.YS
s.talon = WasteTalonStack(x, y, self, max_rounds=3)
layout.createText(s.talon, 'n')
layout.createRoundText(s.talon, 'nnn')
layout.createText(s.talon, 'se')
layout.createRoundText(s.talon, 'n')
x -= layout.XS
s.waste = DevilsSolitaire_WasteStack(x, y, self)
layout.createText(s.waste, 'n')
layout.createText(s.waste, 'sw')
layout.defaultStackGroups()

View file

@ -268,11 +268,11 @@ class Contradance(Game):
x, y = l.XM+3*l.XS, l.YM+3*l.YS
s.talon = WasteTalonStack(x, y, self, max_rounds=2)
l.createText(s.talon, 'n')
l.createRoundText(self.s.talon, 'nnn')
l.createText(s.talon, 'sw')
l.createRoundText(self.s.talon, 'n')
x += l.XS
s.waste = WasteStack(x, y, self)
l.createText(s.waste, 'n')
l.createText(s.waste, 'se')
l.defaultStackGroups()

View file

@ -184,7 +184,7 @@ class LesserQueue(AbstractFlowerGame):
l.createText(s.talon, "n")
s.talon.texts.rounds = MfxCanvasText(
self.canvas,
self.width//2, h-2*l.TEXT_MARGIN,
self.width // 2, h - 2.5 * l.TEXT_HEIGHT - l.TEXT_MARGIN,
anchor="center",
font=self.app.getFont("canvas_default"))
x = x + l.XS
@ -208,7 +208,7 @@ class LesserQueue(AbstractFlowerGame):
x = x + l.XS
self.texts.info = MfxCanvasText(
self.canvas,
self.width//2, h-l.TEXT_MARGIN,
self.width // 2, h - l.TEXT_MARGIN - l.TEXT_HEIGHT,
anchor="center",
font=self.app.getFont("canvas_default"))