I want to know how to change the screenshot into an image of my choice, the same way I'm able to change the save name by doing this in the script:
Code: Select all
$ save_name = "Chapter 3 Murder Unveiled"
Code: Select all
$ save_name = "Chapter 3 Murder Unveiled"
Code: Select all
init python:
def myjson(jsondata):
jsondata["thelover"]=lover
config.save_json_callbacks.append(myjson)
Code: Select all
default sloticons=["eileenslot.png","charlizeicon.png", "lindsayicon.png","yourface.png"]
Code: Select all
button:
action FileAction(slot)
has vbox
if FileLoadable(slot):
# define the content
$ icon_numb=FileJson(slot,"thelover")
$ img=sloticons[icon_numb]
add "img"
else:
null height 200 width 200
text FileTime(slot, format=_("{#file_time}%A, %B %d %Y, %H:%M"), empty=_("empty slot")):
style "slot_time_text"
text FileSaveName(slot):
style "slot_name_text"
key "save_delete" action FileDelete(slot)
Code: Select all
screen load_save_slot:
if FileLoad:
# define the content
$ icon_numb=FileJson(number,"thelover")
$ img=sloticons[icon_numb]
add "img"
else:
null height 200 width 200
Code: Select all
default sloticons=["cover1.png","cover2.png", "cover3.png","cover4.png"]
Code: Select all
init python:
def myjson(jsondata):
jsondata["thelover"]=lover
config.save_json_callbacks.append(myjson)
define sloticons=["cover1.png","cover2.png","cover3.png","cover4.png"]
default sloticons=1
Code: Select all
screen load_save_slot:
button:
action FileAction(number)
# has vbox
if FileLoadable(number):
# define the content
$ icon_numb=FileJson(number,"thelover")
$ img=sloticons[icon_numb]
add "img"
else:
null height 200 width 200
Users browsing this forum: Google [Bot], Majestic-12 [Bot]