Hey, everybody. I searched for an answer on the forum but never found one. Maybe I'm just too dumb in programming and couldn't add 2+2.
I took the code for the replays gallery from here -
Thank you very much, BadMustard
Purpose: I want to make a password to unlock the gallery. And encrypt it.
Any help would be appreciated.
I took the code for the replays gallery from here -
You must be registered to see the links
,Thank you very much, BadMustard
Purpose: I want to make a password to unlock the gallery. And encrypt it.
Any help would be appreciated.
Code:
## Replay Gallery screen ######################################
## Take care when making changes to this file #################
default persistent.unlocked = False
screen Replayexit():
zorder 100
imagebutton:
auto "images/replay/exit_%s.png"
action EndReplay()
yalign .99
xalign .99
#yes AUTO create 2 images titled exit_hover.png and exit_idle.png
#add these 2 line below if you want an exit button during the replay(optional)
#this must be added after every label used for replay
#if _in_replay:
# show screen Replayexit
screen replay_gallery():
tag menu
add "black"
$start = replay_page * 9
$end = min(start + 9 - 1, len(Replay_items) - 1)
#grid for images
grid 3 3:
xfill True
yfill True
for i in range(start, end + 1):
if renpy.seen_label(Replay_items[i].replay) or persistent.unlocked:
imagebutton idle Replay_items[i].thumbs:
style "replay_button" #delete this line to remove hover
action Replay(Replay_items[i].replay, locked=False)
xalign 0.5
yalign 0.5
else:
vbox xalign 0.5 yalign 0.5:
image "replay_locked"
#image "lockedthumb" #if you're using the gallery use the same image (optional)
#required to fill in empty grid items (do not change)
for i in range(end - start + 1, 9):
null
#grid for info
grid 3 3:
xfill True
yfill True
for i in range(start, end + 1):
if renpy.seen_label(Replay_items[i].replay) or persistent.unlocked:
hbox:
spacing maxthumbx - 20
xalign 0.5
yalign 0.1
text Replay_items[i].name
else:
null
#required to fill in empty grid items (do not change)
for i in range(end - start + 1, 9):
null
#previous/next buttons
if replay_page > 0:
textbutton "{color=#fff}Previous{/color}":
action SetVariable("replay_page", replay_page - 1)
xalign 0.1
yalign 0.98
background "#000"
if (replay_page + 1) * 9 < len(Replay_items):
textbutton "{color=#fff}Next{/color}":
action SetVariable("replay_page", replay_page + 1)
xalign 0.9
yalign 0.98
background "#000"
#return button
textbutton "{color=#fff}Return{/color}":
action Return()
xalign 0.5
yalign 0.98
background "#000"
if persistent.unlocked:
textbutton _("{color=#000}Lock{/color}") action ToggleVariable("persistent.unlocked") xalign 0.5 yalign 0.912 background "#fff"
else:
textbutton _("{color=#fff}Unlock{/color}") action ToggleVariable("persistent.unlocked") xalign 0.5 yalign 0.912 background "#000"
style replay_button:
hover_background "images/gallery/thumbs/hover.png"