1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

Removed limit on number of pause/demo text images loaded per style.

This commit is contained in:
Joe R 2024-02-06 23:38:13 -05:00
parent a94d0235b8
commit af2f730816

View file

@ -545,19 +545,30 @@ class Application:
self.gimages.redeal.append(self.dataloader.findImage(f, dirname))
dirname = os.path.join("images", "demo", self.opt.demo_logo_style)
self.gimages.demo = []
for f in ("demo01", "demo02", "demo03", "demo04", "demo05",):
foundall = False
count = 0
while not foundall:
count += 1
try:
self.gimages.demo.append(self.dataloader.findImage(f, dirname))
self.gimages.demo.append(self.dataloader.findImage("demo" +
("%02d" %
(count,)),
dirname))
except OSError:
pass
foundall = True
dirname = os.path.join("images", "pause", self.opt.pause_text_style)
self.gimages.pause = []
for f in ("pause01", "pause02", "pause03",):
foundall = False
count = 0
while not foundall:
count += 1
try:
self.gimages.pause.append(self.dataloader.findImage(f,
self.gimages.pause.append(self.dataloader.findImage("pause" +
("%02d" %
(count,)),
dirname))
except OSError:
pass
foundall = True
# dirname = os.path.join("images", "stats")
# for f in ("barchart",):
# self.gimages.stats.append(self.dataloader.findImage(f, dirname))