added feature titles to place image
This commit is contained in:
parent
31d8ad027b
commit
0abad58446
@ -5602,21 +5602,28 @@ class StockTicker():
|
||||
f.close()
|
||||
|
||||
imgs = []
|
||||
feature_title = False
|
||||
|
||||
for place in all_settings['places']:
|
||||
if "2017" in place:
|
||||
try:
|
||||
img = self.openImage('logos/r_place/r_place 2017.png')
|
||||
if all_settings['title']:
|
||||
feature_title = self.openImage('feature_titles/place2017.png')
|
||||
except:
|
||||
pass
|
||||
elif "2022" in place:
|
||||
try:
|
||||
img = self.openImage('logos/r_place/r_place 2022.png')
|
||||
if all_settings['title']:
|
||||
feature_title = self.openImage('feature_titles/place2022.png')
|
||||
except:
|
||||
pass
|
||||
elif "2023" in place:
|
||||
try:
|
||||
img = self.openImage('logos/r_place/r_place 2023.png')
|
||||
if all_settings['title']:
|
||||
feature_title = self.openImage('feature_titles/place2023.png')
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
@ -5625,8 +5632,16 @@ class StockTicker():
|
||||
x = random.randint(0, max_x)
|
||||
y = random.randint(0, max_y)
|
||||
snapshot = img.crop((x, y, x + int(all_settings['width']), y + 32))
|
||||
|
||||
try:
|
||||
imgs.append(self.stitchImage([feature_title,snapshot]))
|
||||
except:
|
||||
imgs.append(snapshot)
|
||||
img.close()
|
||||
try:
|
||||
feature_title.close()
|
||||
except:
|
||||
pass
|
||||
except:
|
||||
pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user