2 Commits

Author SHA1 Message Date
726ecfa6ba Android open console thing 2022-10-19 22:53:16 -03:00
9236e748e9 Mario bros 2022-10-18 12:09:25 -03:00
2 changed files with 19 additions and 0 deletions

View File

@ -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

View File

@ -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