forked from Legalo/SnootGame
Compare commits
2 Commits
gallery_fi
...
testing_gr
Author | SHA1 | Date | |
---|---|---|---|
726ecfa6ba | |||
9236e748e9 |
@ -1064,6 +1064,10 @@ screen preferences():
|
||||
textbutton _("Mute All"):
|
||||
action Preference("all mute", "toggle")
|
||||
style "mute_all_button"
|
||||
vbox:
|
||||
style_prefix "radio"
|
||||
label _("Play Tester options")
|
||||
textbutton _("Open Console") action _console.enter
|
||||
|
||||
|
||||
style pref_label is gui_label
|
||||
|
@ -1,3 +1,18 @@
|
||||
label testo:
|
||||
python:
|
||||
import pygame
|
||||
|
||||
# (src_image: FactorScale; name: string, ext: string) FactorScale refers to an image scaled down/up using im.FactorScale()
|
||||
def save_thumb(src_image, name, ext):
|
||||
savepath = config.basedir.replace("\\","/") + "/game/cache/"
|
||||
if renpy.android:
|
||||
savepath = os.environ['ANDROID_PUBLIC'] + "/cache/"
|
||||
|
||||
data = src_image.load() #Returns a pygame surface
|
||||
pygame.image.save(data, savepath+"thmb_"+name+ext) #Saves the image to file
|
||||
|
||||
$save_thumb(NOT_UNLOCKED_COVER,"default",".jpg")
|
||||
define config.developer = True
|
||||
init python:
|
||||
|
||||
# CONST PARAMS
|
||||
|
Reference in New Issue
Block a user