diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-12-23 13:57:06 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-12-23 13:57:06 -0300 |
commit | 3b79dc162b6604bd4d1facbc5015443d0f0d7016 (patch) | |
tree | 6c9670feec76685c37e580076cd54e4b84ab92ff | |
download | sdk-3b79dc162b6604bd4d1facbc5015443d0f0d7016.tar.gz sdk-3b79dc162b6604bd4d1facbc5015443d0f0d7016.tar.bz2 sdk-3b79dc162b6604bd4d1facbc5015443d0f0d7016.tar.xz sdk-3b79dc162b6604bd4d1facbc5015443d0f0d7016.zip |
Initial commit
87 files changed, 4339 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..05fe6e1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,38 @@ +# Patterns to ignore. + +# Binaries +*.rpyb +*.rpyc +*.rpymc +*.pyc +*.pyo +cache/ +saves/ + +#Back up +*.bak +*~ + +# Compressed and dev +*.rpa +*.xcf +game/gfx/assets/* + +# Automatically Generated +*_conf.rpy +*.pem +*.crt +*.json +extra/* + +# DEV USE ONLY +*.dev.* +*.dev** +images/items/base** +tba/* +*.diff + +# Logs +log.txt +traceback.txt +errors.txt diff --git a/00_init.rpy b/00_init.rpy new file mode 100644 index 0000000..8b74c56 --- /dev/null +++ b/00_init.rpy @@ -0,0 +1,455 @@ +######################################################################################## +# This file is part of Spheres. +# Copyright (C) 2019 Jesusalva + +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. + +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. + +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +######################################################################################## + +init -3 python: + import json, traceback + config.autoreload = False + config.save_on_mobile_background = False + ERR_JSONDECODER=101 + ERR_INVALID=103 + if (persistent.allfiles is None): + persistent.allfiles=[] + allfiles=[] + + # Smart Print command + def stdout(message): + print(message) + renpy.write_log("[DEBUG] %s" % message) + return + + # IF Then Else (IFTE) + def ifte(ifs, then, elses): + if (ifs): + return then + else: + return elses + + # Global classes + # We need to override standard list method. Original by Triptych (stackoverflow) + class dlist(list): + + def __setitem__(self, index, value): + size = len(self) + if index >= size: + self.extend(None for _ in range(size, index + 1)) + + list.__setitem__(self, index, value) + + class ExecuteOnCall(): + def __init__(self, callable, *args, **kwargs): + self.callable = callable + self.args = args + self.kwargs = kwargs + + def __call__(self): + rv = self.callable(*self.args, **self.kwargs) + return rv + + def id(self): + return self.__call__() + + class RetString(): + def __init__(self, string): + self.string = string + + def __call__(self): + return self.string + + def id(self): + return self.__call__() + + class ExtraImage(renpy.display.im.Image): + """ + Custom image manipulator, based on bink's code, topic 11732 + """ + + def __init__(self, loc, **properties): + """ + @param loc: Where the image really is (get_path already applied) + """ + + super(ExtraImage, self).__init__(loc, **properties) + self.loc = loc + + def load(self, unscaled=False): # W0221 + try: + #page = open(self.loc, "rb") + #pd = page.read() + #picdata = os.tmpfile() + #picdata.write(pd) + #picdata.seek(0) # reset seek position + stdout("Requested to open: %s" % repr(self.loc)) + picdata = open(self.loc, "rb") + stdout("Picdata is open (%s)" % self.loc) + + if unscaled: + surf = renpy.display.pgrender.load_image_unscaled(picdata, self.loc) + else: + surf = renpy.display.pgrender.load_image(picdata, self.loc) + + stdout("Picdata was closed") + picdata.close() + #page.close() + + return surf + except Exception, e: + if renpy.config.missing_image_callback: + im = renpy.config.missing_image_callback(self.loc) + if im is None: + raise e + return im.load() + raise + + def virtpos(posix): + if isinstance(posix, float): + return posix*1024 + else: + return posix/1024.0 + + # File Managment Functions + def get_path(path): + return renpy.loader.get_path(path) + + def get_path_if_exists(path): + return renpy.loader.transfn(path) + + stdout("======================= %s %s" % (config.name, config.version)) + print "[STDBY] Loading Basic functions......." + + # Search for array[?][key]==search in an array of dicts + # Returns the dictionary, or returns ERR_INVALID + def dl_search(array, key, search): + try: + r=(item for item in array if item[key] == search).next() + except: + r=ERR_INVALID + if r is None: + r=ERR_INVALID + stdout("dlsearch: r is None") + return r + + def GAME_LOADER(): + global allunitsbase, allunits, allquests, allstory, allworld, alltaverns + global allnews, tr_uptodate, tr_memcheck + + # FIXME: Error handling + # Load unit data + #allunitsbase=json.loads(requests.get("http://"+HOST+'/units.json').text) + f=open(get_path_if_exists("units.json"), "r") + allunitsbase=json.load(f) + f.close() + + # Reorder unit data + allunits={} + for j in allunitsbase: + allunits[j["unit_id"]]=j + + # Load summons data + f=open(get_path_if_exists("summons.json"), "r") + allsummons=json.load(f) + f.close() + + # Load quest data + f=open(get_path_if_exists("quests.json"), "r") + allquests=json.load(f) + f.close() + + # Load story data + f=open(get_path_if_exists("story.json"), "r") + allstory=json.load(f) + f.close() + + # Load world data + f=open(get_path_if_exists("world.json"), "r") + allworld=json.load(f) + f.close() + + # Load tavern data + f=open(get_path_if_exists("bar.json"), "r") + alltaverns=json.load(f) + f.close() + + stdout("[OK] Game data loaded to memory") + tr_memcheck=True + return tr_load + + def card_composite(cid, path): + # We need to try to get rarity + try: + r=allunits[int(cid)]["rare"] + except: + r=4 # FIXME + + # We need to try to get the element + try: + e=allunits[int(cid)]["attribute"] + print str(e) + except: + e=0 + + return Composite( + (640, 960), + (0, 0), "gfx/cards/bg.png", + (0, 0), path, + (0, 0), "gfx/cards/"+str(r)+".png", + (0, 0), "gfx/cards/ele/"+str(e)+".png") + # size,) + + # TODO: square_ and gfx/square/units + # Converts regular image filepaths to displayables names and vice-versa + def img_regex(name, reverse=False): + if not reverse: + # Extension is ommited, add them yourself! + if name.startswith("unit_"): + return "gfx/units/%s" % name.replace("unit_") + elif name.startswith("mob_"): + return "gfx/mobs/%s" % name.replace("mob_") + elif name.startswith("dialog_"): + return "gfx/dialog/%s" % name.replace("dialog_") + elif name.startswith("bg "): + return "gfx/bg/%s" % name.replace("bg ") + elif name.startswith("summon_"): + return "gfx/summons/%s" % name.replace("summon_") + else: + print("ERROR: Not a regular filename") + return name + else: + if name.startswith("gfx/units/"): + return "unit_%s" % name + elif name.startswith("gfx/mobs/"): + return "mob_%s" % name + elif name.startswith("gfx/dialog/"): + return "dialog_%s" % name + elif name.startswith("gfx/bg/"): + return "bg %s" % name + elif name.startswith("gfx/summons/"): + return "summon_%s" % name + else: + print("ERROR: Not a regular display name") + return name + + # Loads a sound called VAL + def get_sfx(val, ext): + # Search for the sound + show_img(val, False, ext=ext) + + valb=dl_search(persistent.allfiles, 0, val)[1] + if valb == ERR_INVALID: + print ("Invalid Sound: %s (%s)" % (path, val)) + return "sfx/regnum.mp3" # FIXME + return valb + + # Load sprite images: "unit" + for file in renpy.list_files(): + fn=file.replace('gfx/units/','').replace('/', ' ').replace('.png','') + if file.startswith('gfx/units/'): + if file.endswith('.png') or file.endswith('.webp'): + name = "unit_"+fn + #renpy.image(name, Image(file, yanchor=1.0)) + renpy.image(name, card_composite(fn, file)) + + dl=dl_search(persistent.allfiles, 0, name) + if dl is not ERR_INVALID: + persistent.allfiles.append((name, file)) + allfiles.append(name) + continue + continue + + # Load sprite images: "mob" + for file in renpy.list_files(): + fn=file.replace('gfx/mobs/','').replace('/', ' ').replace('.png','') + if file.startswith('gfx/mobs/'): + if file.endswith('.png') or file.endswith('.webp'): + name = "mob_"+fn + renpy.image(name, Image(file, yanchor=1.0)) + if not name in persistent.allfiles: + persistent.allfiles.append((name, file)) + allfiles.append(name) + continue + continue + + + # Load sprite images: "dialog" + for file in renpy.list_files(): + fn=file.replace('gfx/dialog/','').replace('/', ' ').replace('.png','').replace('.webp','') + if file.startswith('gfx/dialog/'): + if file.endswith('.png') or file.endswith('.webp'): + name = "dialog_"+fn + renpy.image(name, Image(file, yanchor=1.0)) + dl=dl_search(persistent.allfiles, 0, name) + if dl is not ERR_INVALID: + persistent.allfiles.append((name, file)) + allfiles.append(name) + continue + continue + + + # Load background images: "bg" + for file in renpy.list_files(): + fn=file.replace('gfx/bg/','').replace('/', ' ').replace('.png','').replace('.webp','') + if file.startswith('gfx/bg/'): + if file.endswith('.png') or file.endswith('.webp'): + name = "bg "+fn + renpy.image(name, Frame(file, 0, 0)) + dl=dl_search(persistent.allfiles, 0, name) + if dl is not ERR_INVALID: + persistent.allfiles.append((name, file)) + allfiles.append(name) + continue + continue + + + # Load summon images: "summon" + for file in renpy.list_files(): + fn=file.replace('gfx/summons/','').replace('/', ' ').replace('.png','').replace('.webp','') + if file.startswith('gfx/summons/'): + if file.endswith('.png') or file.endswith('.webp'): + name = "summon_"+fn + renpy.image(name, Image(file, yanchor=1.0)) + dl=dl_search(persistent.allfiles, 0, name) + if dl is not ERR_INVALID: + persistent.allfiles.append((name, file)) + allfiles.append(name) + continue + continue + + def star_write(am): + i, st = 0, "" + while i < am: + i+=1 + st+="★" + return st + + + # Overrides renpy.image() method + def new_img(name, where): + # d: Downloaded path + if not isinstance(name, tuple): + name = tuple(name.split()) + + #d = renpy.renpy.easy.displayable(where) + if True or renpy.android: + d=ExtraImage(where) + else: + d = renpy.renpy.easy.displayable(where) + renpy.renpy.display.image.register_image(name, d) + return + + # Retrieves Ren'Py displayable name associated to PATH + def get_img(path): + # Search for the image name + val=img_regex(path, True) + show_img(val, False) + + valb=dl_search(persistent.allfiles, 0, val)[1] + if valb == ERR_INVALID: + print ("Invalid Image: %s (%s)" % (path, val)) + return "gfx/spinner.png" + return valb + + # Overrides renpy.show() and renpy.image() methods + # Missing: transient=False, munge_name=True + def show_img(img, show=True, at_list=[ ], tag=None, zorder=None, behind=[ ], atl=None, what=None, layer=None, ext=".webp"): + global tr_loading + # Image exists, display it + if img in allfiles: + if show: + renpy.show(img, at_list=at_list, tag=tag, zorder=zorder, behind=behind, atl=atl, what=what, layer=layer) + return + + # Have we downloaded this image previously? + path=dl_search(persistent.allfiles, 0, img) + print str(path) + + # Image doesn't exists, we must download it + while (path == ERR_INVALID): + tr_loading=True + # Latest version converts these formats to WebP + if ext in [".png", ".jpg", ".jpeg"]: + ext=".webp" + # Otherwise, preserve extension. + if True or renpy.android: + addr="extra_%s%s" % (img.replace(" ", "_"), ext) + else: + addr="extra/%s%s" % (img.replace(" ", "_"), ext) + + f=open(get_path(addr), "w") + stdout("Downloading additional file: %s" % img.replace(" ", "_")) + try: + x=requests.get("%s://%s/assets/%s?token=%s" % (ifte(persistent.ssl_enabled, "https", "http"), HOST, img.replace(" ", "_"), get_token()), verify=False) # , timeout=8.0 → Need to handle sudden death + except: + # Oh noes - something went *terribly* wrong + traceback.print_exc() + x=requests.Response() + x.status_code=403 + + if x.status_code == 200: + f.write(x.content) + f.close() + # Android needs paths to be saved by full + # But audio hates it, so. + if ext not in [".mp3", ".ogg"]: + addr=get_path(addr) + path=((img, addr)) + persistent.allfiles.append(path) + else: + stdout("ERROR FOR: %s://%s/assets/%s?token=%s" % (ifte(persistent.ssl_enabled, "https", "http"), HOST, img.replace(" ", "_"), get_token())) + try: + retry=renpy.call_screen("confirm", "Error downloading file.\nError Code: %d\n\nRetry?" % x.status_code, Return(True), Return(False)) + if not retry: + if tag is None: + tag=img + path=None + if show: + if tag is None: + tag=img + print("tag is %s" % str(tag)) + renpy.show("spinner", at_list=at_list, tag=tag, zorder=zorder, behind=behind, atl=atl, what=what, layer=layer) # TODO Show error + tr_loading=False + return + # TODO: “Retry?” + except: + print("Failed, trying again") + + # Image exists, but wasn't loaded yet + if (path != ERR_INVALID and path is not None): + print "Detected not loaded image" + # Valid Image Extensions: PNG, JPG, JPEG, GIF, WEBP + if ext in [".png", ".jpg", ".jpeg", ".gif", ".webp"]: + # Maybe it is an unit + if img.startswith("unit_"): + new_img(img, card_composite(img.replace("unit_", ""), path[1])) + else: + new_img(img, path[1]) + + stdout("registered image: "+path[1]) + allfiles.append(img) + if show: + renpy.show(img, at_list=at_list, tag=tag, zorder=zorder, behind=behind, atl=atl, what=what, layer=layer) + tr_loading=False + return + + # Something went wrong + stdout("show_img reached abnormal ending") + return + + + + + diff --git a/editor.rpy b/editor.rpy new file mode 100644 index 0000000..dd22cdb --- /dev/null +++ b/editor.rpy @@ -0,0 +1,415 @@ +######################################################################################## +# This file is part of Spheres. +# Copyright (C) 2019 Jesusalva + +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. + +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. + +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +######################################################################################## +# Editor labels for developers +screen quest_editor(): + modal True + frame: + background Frame("gui/frame.png", 0, 0) + xalign 0.5 + yalign 0.5 + ymargin 15 + ypadding 10 + xmargin 10 + + hbox: + spacing 30 + xmaximum 0.85 + ymaximum 0.85 + + # Navigation + viewport: + #child_size (350, 1000) + mousewheel True + draggable True + pagekeys True + xfill False + xmaximum 350 + scrollbars "vertical" + + vbox: + spacing 2 + label _("Quest list") + $i=0 + for entry in allquests: + textbutton "{size=18}"+_("%02d (D %d) (C %d)" % (entry["quest_id"], entry["difficulty"], entry["cost"]))+"{/size}" action SetVariable("current", i) + $i+=1 + $del i + + # News screen + viewport: + #child_size (0.4, 0.8) + mousewheel True + #draggable True + #arrowkeys True + xfill False + scrollbars "vertical" + + vbox: + xalign 0.5 + spacing 20 + + $ qedit=allquests[current] + $ qreq=qedit["requeriment"] + + label _("Quest %d" % (qedit["quest_id"])) + hbox: + spacing 10 + textbutton _("-") action Function(qeditor, "quest_id", -1) + label ("%d" % qedit["quest_id"]) + textbutton _("+") action Function(qeditor, "quest_id", 1) + null height 25 + + + ########################################### + label _("Requeriment") + hbox: + spacing 10 + textbutton _("-") action Function(qeditor, "requeriment", -1) + label ("%d" % qedit["requeriment"]) + textbutton _("+") action Function(qeditor, "requeriment", 1) + null height 15 + + + ########################################### + label _("Difficulty") + hbox: + spacing 10 + textbutton _("-10") action Function(qeditor, "difficulty", -10) + textbutton _("-5") action Function(qeditor, "difficulty", -5) + textbutton _("-1") action Function(qeditor, "difficulty", -1) + label _("%d" % qedit["difficulty"]) + textbutton _("+1") action Function(qeditor, "difficulty", 1) + textbutton _("+5") action Function(qeditor, "difficulty", 5) + textbutton _("+10") action Function(qeditor, "difficulty", 10) + null height 15 + + + ########################################### + label _("Cost") + hbox: + spacing 10 + textbutton _("-") action Function(qeditor, "cost", -1) + label _("%d" % qedit["cost"]) + textbutton _("+") action Function(qeditor, "cost", 1) + null height 15 + + + ########################################### + label _("Flags") + hbox: + spacing 10 + textbutton _("-") action Function(qeditor, "flags", -1) + label _("%d" % qedit["flags"]) + textbutton _("+") action Function(qeditor, "flags", 1) + text "None: 0\nClear Gems: 1\nTutorial Gems: 2\nSpecial: 4\nFirst Loot: 8\nDouble XP: 16\nDouble GP: 32" size 12 + null height 15 + + + ########################################### + label _("Loot") + vbox: + spacing 0 + $i=0 + for lt, ch in qedit["loot"]: + hbox: + spacing 1 + $ input=Input( + value=EditorInputValue(lt, "loot", i, "str", key3=0), + copypaste=True, + allow="0123456789", + length=9) + button: + #key_events True + action input.enable + add input + + label ": " + + $ input=Input( + value=EditorInputValue(ch, "loot", i, "int", key3=1), + copypaste=True, + allow="0123456789", + length=5) + button: + #key_events True + action input.enable + add input + + null width 40 + textbutton _("X Delete") action None + $i+=1 + textbutton _("Add Loot") action Function(qeditor_addloot) + null height 15 + + + ########################################### + label _("Waves") + vbox: + spacing 0 + $ wc=0 + null height 10 + for wave in qedit["waves"]: + $wc+=1 + label _("{size=22}Wave %d{/size}" % wc) + $ mc=0 + for mob in wave: + $mc+=1 + label _("{size=20}%s{/size}" % mob["name"]) + textbutton "{size=20}%d{/size}" % mob["sprite"] action None + hbox: + spacing 7 + textbutton "{size=20}Ele: %d{/size}" % mob["attribute"] action None + textbutton "{size=20}Boss: %s{/size}" % str(mob["boss"]) action Function(qeditor_input, "waves", wc-1, "bool", key3=mc-1, key4="boss") + null width 20 + textbutton _("X Delete") action Function(qeditor_delete, "waves", wc-1, mc-1) + null height 20 + textbutton "{size=22}"+_("Add Monster")+"{/size}" action Function(qeditor_addmonster, wc) + textbutton "{size=22}"+_("Delete Wave")+"{/size}" action Function(qeditor_delete, "waves", wc-1) + null height 20 + null height 20 + text "Fire: 1 Water: 2\nNature: 3 Light: 4\nDark: 5" size 12 + textbutton _("Add Wave") action Function(qeditor_addwave) + + + # TODO: Loot, waves + ########################################### + null height 40 + hbox: + spacing 25 + + textbutton _("Save") action Function(qeditor_save) + + textbutton _("Close") action Return() + textbutton _("New Quest") action Function(qeditor_new) + textbutton _("New S.") action Function(qeditor_new, 1) + + ## Right-click and escape refresh screen + key "game_menu" action Function(RestartInteraction)#Return() + key "K_RETURN" action Function(RestartInteraction)#Return() + +init python: + import json, copy + def RestartInteraction(): + renpy.restart_interaction() + return + + + def qeditor(key, operation, override=False): + global qedit + qedit=allquests[current] + print str(qedit["quest_id"]) + if override: + qedit[key]=operation + else: + qedit[key]+=operation + return + + def qeditor_save(): + global allquests + f=open(get_path("editor.json"), "w") + json.dump(allquests, f, indent=4, separators=(',', ': ')) + f.close() + renpy.notify("File saved as editor.json") + return + + def qeditor_new(special=False): + global allquests + if not special: + qeid=len(allquests) + qefl=1 + qec=1 + else: + qeid=90000 + qefl=4 + qec=20 + + allquests.append({ + "quest_id": qeid, + "difficulty": 0, + "requeriment": 0, + "cost": qec, + "flags": qefl, + "loot": [ + ["1010", 1000], + ["1020", 100], + ["1030", 10] + ], + "waves": []}) + renpy.notify("New quest added: %d" % qeid) + return + + def qeditor_addloot(): + global qedit + qedit=allquests[current] + qedit["loot"].append(["1000", 0]) + renpy.notify("Added new loot field id 1000 (an invalid ID)") + return + + def qeditor_addmonster(wave): + global qedit + qedit=allquests[current] + pointer=qedit["waves"][wave-1] + if len(pointer) < 3: + pointer.append({ + "name": "New Monster", + "sprite": 950000, + "attribute": 1, + "boss": False + }) + else: + renpy.notify("Max monsters per wave reached!") + return + + def qeditor_addwave(): + global qedit + qedit=allquests[current] + qedit["waves"].append([]) + renpy.notify("Blank wave created\nThis is buggy, remember to add monsters") + return + + + def qeditor_delete(key1, key2=None, key3=None, key4=None): + global qedit + qedit=allquests[current] + if key2 is None: + del qedit[key1] + #del allquests[current][key1] + elif key3 is None: + del qedit[key1][key2] + #del allquests[current][key1][key2] + elif key4 is None: + del qedit[key1][key2][key3] + #del allquests[current][key1][key2][key3] + else: + del qedit[key1][key2][key3][key4] + #del allquests[current][key1][key2][key3][key4] + return + + def qeditor_input(key1, key2=None, tp="int", temp="", key3=None, key4=None): + #temp=renpy.input("Please insert new value for this variable.\nCurrent value: [variable]") + global qedit + qedit=allquests[current] + variable="" + + # Key looping + if key2 is None: + target=qedit[key1] + elif key3 is None: + target=qedit[key1][key2] + elif key4 is None: + target=qedit[key1][key2][key3] + else: + target=qedit[key1][key2][key3][key4] + + # Convert input if needed + # tp int → convert to int + # tp key → Replace the key + # tp bool → Toogles the value + if tp == "int": + try: + variable=int(temp) + except: + renpy.notify("Invalid numeric input") + variable=0 # Sorry, but gets bad otherwise + elif tp == "key": + try: + qedit[key1][temp]=copy.copy(target) + renpy.notify("Key replaced") + del qedit[key1][key2] # Not sure "del target" would work + return + except: + renpy.notify("ERROR, doing nothing") + variable=target + elif tp == "bool": + try: + variable=(not target) + print "New boolean: %s" % str(variable) + except: + print "Illegal boolean" + renpy.notify("Illegal boolean") + variable=target + else: + try: + variable=str(temp) + except: + renpy.notify("Invalid string input") + + # Save input + # Key looping + if key2 is None: + target=qedit[key1]=variable + elif key3 is None: + target=qedit[key1][key2]=variable + elif key4 is None: + target=qedit[key1][key2][key3]=variable + else: + target=qedit[key1][key2][key3][key4]=variable + + return + + class EditorInputValue(InputValue): + def __init__(self, variable, key1, key2, inpu="int", key3=None, key4=None): + try: + self.variable = variable + except: + self.variable = "" + self.inpu = inpu + + self.default=True + self.editable=True + + self.key1=key1 + self.key2=key2 + self.key3=key3 + self.key4=key4 + + def get_text(self): + try: + return str(self.variable) + except: + return "" + #return globals()[self.variable] + + def set_text(self, s): + #globals()[self.variable] = s + qeditor_input(self.key1, self.key2, self.inpu, s, key3=self.key3, key4=self.key4) + + def enter(self): + renpy.restart_interaction() + #renpy.run(self.Disable()) + #raise renpy.IgnoreEvent() + +label quest_editors: + $ qedit=allquests[0] + $ current=0 + $print("") + $print(".:: THE BUILT-IN QUEST EDITOR ::.") + $print("Use ESC to redraw screen, saving input") + $print("") + call screen quest_editor + $print("Quest Editor closed") + jump restore + +label updater_editors: + $ url=renpy.input("Please insert update server URL:", default="http://spheres.tmw2.org/updates/") + $ updater.update(url) # , public_key="cert/certificate.pem") → Need to be RSA + + jump restore + + @@ -0,0 +1 @@ +/home/jesusalva/projetos/srv/assets/raw/
\ No newline at end of file @@ -0,0 +1,474 @@ +################################################################################
+## Initialization
+################################################################################
+
+## The init offset statement causes the initialization statements in this file
+## to run before init statements in any other file.
+init offset = -2
+
+## Calling gui.init resets the styles to sensible default values, and sets the
+## width and height of the game.
+init python:
+ gui.init(1280, 720)
+
+
+
+################################################################################
+## GUI Configuration Variables
+################################################################################
+
+
+## Colors ######################################################################
+##
+## The colors of text in the interface.
+
+## An accent color used throughout the interface to label and highlight text.
+define gui.accent_color = '#0099cc'
+
+## The color used for a text button when it is neither selected nor hovered.
+define gui.idle_color = '#888888'
+
+## The small color is used for small text, which needs to be brighter/darker to
+## achieve the same effect.
+define gui.idle_small_color = '#aaaaaa'
+
+## The color that is used for buttons and bars that are hovered.
+define gui.hover_color = '#66c1e0'
+
+## The color used for a text button when it is selected but not focused. A
+## button is selected if it is the current screen or preference value.
+define gui.selected_color = '#ffffff'
+
+## The color used for a text button when it cannot be selected.
+define gui.insensitive_color = '#8888887f'
+
+## Colors used for the portions of bars that are not filled in. These are not
+## used directly, but are used when re-generating bar image files.
+define gui.muted_color = '#003d51'
+define gui.hover_muted_color = '#005b7a'
+
+## The colors used for dialogue and menu choice text.
+define gui.text_color = '#ffffff'
+define gui.interface_text_color = '#ffffff'
+
+
+## Fonts and Font Sizes ########################################################
+
+## The font used for in-game text.
+define gui.text_font = "DejaVuSans.ttf"
+
+## The font used for character names.
+define gui.name_text_font = "DejaVuSans.ttf"
+
+## The font used for out-of-game text.
+define gui.interface_text_font = "DejaVuSans.ttf"
+
+## The size of normal dialogue text.
+define gui.text_size = 22
+
+## The size of character names.
+define gui.name_text_size = 30
+
+## The size of text in the game's user interface.
+define gui.interface_text_size = 22
+
+## The size of labels in the game's user interface.
+define gui.label_text_size = 24
+
+## The size of text on the notify screen.
+define gui.notify_text_size = 16
+
+## The size of the game's title.
+define gui.title_text_size = 50
+
+
+## Main and Game Menus #########################################################
+
+## The images used for the main and game menus.
+define gui.main_menu_background = "gui/main_menu.png"
+define gui.game_menu_background = "gui/game_menu.png"
+
+
+## Dialogue ####################################################################
+##
+## These variables control how dialogue is displayed on the screen one line at a
+## time.
+
+## The height of the textbox containing dialogue.
+define gui.textbox_height = 185
+
+## The placement of the textbox vertically on the screen. 0.0 is the top, 0.5 is
+## center, and 1.0 is the bottom.
+define gui.textbox_yalign = 1.0
+
+
+## The placement of the speaking character's name, relative to the textbox.
+## These can be a whole number of pixels from the left or top, or 0.5 to center.
+define gui.name_xpos = 240
+define gui.name_ypos = 0
+
+## The horizontal alignment of the character's name. This can be 0.0 for left-
+## aligned, 0.5 for centered, and 1.0 for right-aligned.
+define gui.name_xalign = 0.0
+
+## The width, height, and borders of the box containing the character's name, or
+## None to automatically size it.
+define gui.namebox_width = None
+define gui.namebox_height = None
+
+## The borders of the box containing the character's name, in left, top, right,
+## bottom order.
+define gui.namebox_borders = Borders(5, 5, 5, 5)
+
+## If True, the background of the namebox will be tiled, if False, the
+## background of the namebox will be scaled.
+define gui.namebox_tile = False
+
+
+## The placement of dialogue relative to the textbox. These can be a whole
+## number of pixels relative to the left or top side of the textbox, or 0.5 to
+## center.
+define gui.dialogue_xpos = 268
+define gui.dialogue_ypos = 50
+
+## The maximum width of dialogue text, in pixels.
+define gui.dialogue_width = 744
+
+## The horizontal alignment of the dialogue text. This can be 0.0 for left-
+## aligned, 0.5 for centered, and 1.0 for right-aligned.
+define gui.dialogue_text_xalign = 0.0
+
+
+## Buttons #####################################################################
+##
+## These variables, along with the image files in gui/button, control aspects of
+## how buttons are displayed.
+
+## The width and height of a button, in pixels. If None, Ren'Py computes a size.
+define gui.button_width = None
+define gui.button_height = None
+
+## The borders on each side of the button, in left, top, right, bottom order.
+define gui.button_borders = Borders(4, 4, 4, 4)
+
+## If True, the background image will be tiled. If False, the background image
+## will be linearly scaled.
+define gui.button_tile = False
+
+## The font used by the button.
+define gui.button_text_font = gui.interface_text_font
+
+## The size of the text used by the button.
+define gui.button_text_size = gui.interface_text_size
+
+## The color of button text in various states.
+define gui.button_text_idle_color = gui.idle_color
+define gui.button_text_hover_color = gui.hover_color
+define gui.button_text_selected_color = gui.selected_color
+define gui.button_text_insensitive_color = gui.insensitive_color
+
+## The horizontal alignment of the button text. (0.0 is left, 0.5 is center, 1.0
+## is right).
+define gui.button_text_xalign = 0.0
+
+
+## These variables override settings for different kinds of buttons. Please see
+## the gui documentation for the kinds of buttons available, and what each is
+## used for.
+##
+## These customizations are used by the default interface:
+
+define gui.radio_button_borders = Borders(18, 4, 4, 4)
+
+define gui.check_button_borders = Borders(18, 4, 4, 4)
+
+define gui.confirm_button_text_xalign = 0.5
+
+define gui.page_button_borders = Borders(10, 4, 10, 4)
+
+define gui.quick_button_borders = Borders(10, 4, 10, 0)
+define gui.quick_button_text_size = 14
+define gui.quick_button_text_idle_color = gui.idle_small_color
+define gui.quick_button_text_selected_color = gui.accent_color
+
+## You can also add your own customizations, by adding properly-named variables.
+## For example, you can uncomment the following line to set the width of a
+## navigation button.
+
+# define gui.navigation_button_width = 250
+
+
+## Choice Buttons ##############################################################
+##
+## Choice buttons are used in the in-game menus.
+
+define gui.choice_button_width = 790
+define gui.choice_button_height = None
+define gui.choice_button_tile = False
+define gui.choice_button_borders = Borders(100, 5, 100, 5)
+define gui.choice_button_text_font = gui.text_font
+define gui.choice_button_text_size = gui.text_size
+define gui.choice_button_text_xalign = 0.5
+define gui.choice_button_text_idle_color = "#cccccc"
+define gui.choice_button_text_hover_color = "#ffffff"
+define gui.choice_button_text_insensitive_color = "#444444"
+
+
+## File Slot Buttons ###########################################################
+##
+## A file slot button is a special kind of button. It contains a thumbnail
+## image, and text describing the contents of the save slot. A save slot uses
+## image files in gui/button, like the other kinds of buttons.
+
+## The save slot button.
+define gui.slot_button_width = 276
+define gui.slot_button_height = 206
+define gui.slot_button_borders = Borders(10, 10, 10, 10)
+define gui.slot_button_text_size = 14
+define gui.slot_button_text_xalign = 0.5
+define gui.slot_button_text_idle_color = gui.idle_small_color
+define gui.slot_button_text_selected_idle_color = gui.selected_color
+define gui.slot_button_text_selected_hover_color = gui.hover_color
+
+## The width and height of thumbnails used by the save slots.
+define config.thumbnail_width = 256
+define config.thumbnail_height = 144
+
+## The number of columns and rows in the grid of save slots.
+define gui.file_slot_cols = 3
+define gui.file_slot_rows = 2
+
+
+## Positioning and Spacing #####################################################
+##
+## These variables control the positioning and spacing of various user interface
+## elements.
+
+## The position of the left side of the navigation buttons, relative to the left
+## side of the screen.
+define gui.navigation_xpos = 40
+
+## The vertical position of the skip indicator.
+define gui.skip_ypos = 10
+
+## The vertical position of the notify screen.
+define gui.notify_ypos = 45
+
+## The spacing between menu choices.
+define gui.choice_spacing = 22
+
+## Buttons in the navigation section of the main and game menus.
+define gui.navigation_spacing = 4
+
+## Controls the amount of spacing between preferences.
+define gui.pref_spacing = 10
+
+## Controls the amount of spacing between preference buttons.
+define gui.pref_button_spacing = 0
+
+## The spacing between file page buttons.
+define gui.page_spacing = 0
+
+## The spacing between file slots.
+define gui.slot_spacing = 10
+
+## The position of the main menu text.
+define gui.main_menu_text_xalign = 1.0
+
+
+## Frames ######################################################################
+##
+## These variables control the look of frames that can contain user interface
+## components when an overlay or window is not present.
+
+## Generic frames.
+define gui.frame_borders = Borders(4, 4, 4, 4)
+
+## The frame that is used as part of the confirm screen.
+define gui.confirm_frame_borders = Borders(40, 40, 40, 40)
+
+## The frame that is used as part of the skip screen.
+define gui.skip_frame_borders = Borders(16, 5, 50, 5)
+
+## The frame that is used as part of the notify screen.
+define gui.notify_frame_borders = Borders(16, 5, 40, 5)
+
+## Should frame backgrounds be tiled?
+define gui.frame_tile = False
+
+
+## Bars, Scrollbars, and Sliders ###############################################
+##
+## These control the look and size of bars, scrollbars, and sliders.
+##
+## The default GUI only uses sliders and vertical scrollbars. All of the other
+## bars are only used in creator-written screens.
+
+## The height of horizontal bars, scrollbars, and sliders. The width of vertical
+## bars, scrollbars, and sliders.
+define gui.bar_size = 25
+define gui.scrollbar_size = 12
+define gui.slider_size = 25
+
+## True if bar images should be tiled. False if they should be linearly scaled.
+define gui.bar_tile = False
+define gui.scrollbar_tile = False
+define gui.slider_tile = False
+
+## Horizontal borders.
+define gui.bar_borders = Borders(4, 4, 4, 4)
+define gui.scrollbar_borders = Borders(4, 4, 4, 4)
+define gui.slider_borders = Borders(4, 4, 4, 4)
+
+## Vertical borders.
+define gui.vbar_borders = Borders(4, 4, 4, 4)
+define gui.vscrollbar_borders = Borders(4, 4, 4, 4)
+define gui.vslider_borders = Borders(4, 4, 4, 4)
+
+## What to do with unscrollable scrollbars in the gui. "hide" hides them, while
+## None shows them.
+define gui.unscrollable = "hide"
+
+
+## History #####################################################################
+##
+## The history screen displays dialogue that the player has already dismissed.
+
+## The number of blocks of dialogue history Ren'Py will keep.
+define config.history_length = 250
+
+## The height of a history screen entry, or None to make the height variable at
+## the cost of performance.
+define gui.history_height = 140
+
+## The position, width, and alignment of the label giving the name of the
+## speaking character.
+define gui.history_name_xpos = 155
+define gui.history_name_ypos = 0
+define gui.history_name_width = 155
+define gui.history_name_xalign = 1.0
+
+## The position, width, and alignment of the dialogue text.
+define gui.history_text_xpos = 170
+define gui.history_text_ypos = 2
+define gui.history_text_width = 740
+define gui.history_text_xalign = 0.0
+
+
+## NVL-Mode ####################################################################
+##
+## The NVL-mode screen displays the dialogue spoken by NVL-mode characters.
+
+## The borders of the background of the NVL-mode background window.
+define gui.nvl_borders = Borders(0, 10, 0, 20)
+
+## The maximum number of NVL-mode entries Ren'Py will display. When more entries
+## than this are to be show, the oldest entry will be removed.
+define gui.nvl_list_length = 6
+
+## The height of an NVL-mode entry. Set this to None to have the entries
+## dynamically adjust height.
+define gui.nvl_height = 115
+
+## The spacing between NVL-mode entries when gui.nvl_height is None, and between
+## NVL-mode entries and an NVL-mode menu.
+define gui.nvl_spacing = 10
+
+## The position, width, and alignment of the label giving the name of the
+## speaking character.
+define gui.nvl_name_xpos = 430
+define gui.nvl_name_ypos = 0
+define gui.nvl_name_width = 150
+define gui.nvl_name_xalign = 1.0
+
+## The position, width, and alignment of the dialogue text.
+define gui.nvl_text_xpos = 450
+define gui.nvl_text_ypos = 8
+define gui.nvl_text_width = 590
+define gui.nvl_text_xalign = 0.0
+
+## The position, width, and alignment of nvl_thought text (the text said by the
+## nvl_narrator character.)
+define gui.nvl_thought_xpos = 240
+define gui.nvl_thought_ypos = 0
+define gui.nvl_thought_width = 780
+define gui.nvl_thought_xalign = 0.0
+
+## The position of nvl menu_buttons.
+define gui.nvl_button_xpos = 450
+define gui.nvl_button_xalign = 0.0
+
+## Localization ################################################################
+
+## This controls where a line break is permitted. The default is suitable
+## for most languages. A list of available values can be found at https://
+## www.renpy.org/doc/html/style_properties.html#style-property-language
+
+define gui.language = "unicode"
+
+
+################################################################################
+## Mobile devices
+################################################################################
+
+init python:
+
+ ## This increases the size of the quick buttons to make them easier to touch
+ ## on tablets and phones.
+ if renpy.variant("touch"):
+
+ gui.quick_button_borders = Borders(40, 14, 40, 0)
+
+ ## This changes the size and spacing of various GUI elements to ensure they
+ ## are easily visible on phones.
+ if renpy.variant("small"):
+
+ ## Font sizes.
+ gui.text_size = 30
+ gui.name_text_size = 36
+ gui.notify_text_size = 25
+ gui.interface_text_size = 30
+ gui.button_text_size = 30
+ gui.label_text_size = 34
+
+ ## Adjust the location of the textbox.
+ gui.textbox_height = 240
+ gui.name_xpos = 80
+ gui.text_xpos = 90
+ gui.text_width = 1100
+
+ ## Change the size and spacing of various things.
+ gui.slider_size = 36
+
+ gui.choice_button_width = 1240
+
+ gui.navigation_spacing = 20
+ gui.pref_button_spacing = 10
+
+ gui.history_height = 190
+ gui.history_text_width = 690
+
+ gui.quick_button_text_size = 20
+
+ ## File button layout.
+ gui.file_slot_cols = 2
+ gui.file_slot_rows = 2
+
+ ## NVL-mode.
+ gui.nvl_height = 170
+
+ gui.nvl_name_width = 305
+ gui.nvl_name_xpos = 325
+
+ gui.nvl_text_width = 915
+ gui.nvl_text_xpos = 345
+ gui.nvl_text_ypos = 5
+
+ gui.nvl_thought_width = 1240
+ gui.nvl_thought_xpos = 20
+
+ gui.nvl_button_width = 1240
+ gui.nvl_button_xpos = 20
+
+
+
diff --git a/gui/bar/bottom.png b/gui/bar/bottom.png Binary files differnew file mode 100644 index 0000000..3398dd5 --- /dev/null +++ b/gui/bar/bottom.png diff --git a/gui/bar/left.png b/gui/bar/left.png Binary files differnew file mode 100644 index 0000000..af91a99 --- /dev/null +++ b/gui/bar/left.png diff --git a/gui/bar/right.png b/gui/bar/right.png Binary files differnew file mode 100644 index 0000000..8d0de62 --- /dev/null +++ b/gui/bar/right.png diff --git a/gui/bar/top.png b/gui/bar/top.png Binary files differnew file mode 100644 index 0000000..fea53c6 --- /dev/null +++ b/gui/bar/top.png diff --git a/gui/button/check_foreground.png b/gui/button/check_foreground.png Binary files differnew file mode 100644 index 0000000..9ba7a3b --- /dev/null +++ b/gui/button/check_foreground.png diff --git a/gui/button/check_selected_foreground.png b/gui/button/check_selected_foreground.png Binary files differnew file mode 100644 index 0000000..acb5805 --- /dev/null +++ b/gui/button/check_selected_foreground.png diff --git a/gui/button/choice_hover_background.png b/gui/button/choice_hover_background.png Binary files differnew file mode 100644 index 0000000..583985d --- /dev/null +++ b/gui/button/choice_hover_background.png diff --git a/gui/button/choice_idle_background.png b/gui/button/choice_idle_background.png Binary files differnew file mode 100644 index 0000000..632758a --- /dev/null +++ b/gui/button/choice_idle_background.png diff --git a/gui/button/hover_background.png b/gui/button/hover_background.png Binary files differnew file mode 100644 index 0000000..390198c --- /dev/null +++ b/gui/button/hover_background.png diff --git a/gui/button/idle_background.png b/gui/button/idle_background.png Binary files differnew file mode 100644 index 0000000..390198c --- /dev/null +++ b/gui/button/idle_background.png diff --git a/gui/button/quick_hover_background.png b/gui/button/quick_hover_background.png Binary files differnew file mode 100644 index 0000000..e98b76b --- /dev/null +++ b/gui/button/quick_hover_background.png diff --git a/gui/button/quick_idle_background.png b/gui/button/quick_idle_background.png Binary files differnew file mode 100644 index 0000000..e98b76b --- /dev/null +++ b/gui/button/quick_idle_background.png diff --git a/gui/button/radio_foreground.png b/gui/button/radio_foreground.png Binary files differnew file mode 100644 index 0000000..9ba7a3b --- /dev/null +++ b/gui/button/radio_foreground.png diff --git a/gui/button/radio_selected_foreground.png b/gui/button/radio_selected_foreground.png Binary files differnew file mode 100644 index 0000000..acb5805 --- /dev/null +++ b/gui/button/radio_selected_foreground.png diff --git a/gui/button/slot_hover_background.png b/gui/button/slot_hover_background.png Binary files differnew file mode 100644 index 0000000..f337d98 --- /dev/null +++ b/gui/button/slot_hover_background.png diff --git a/gui/button/slot_idle_background.png b/gui/button/slot_idle_background.png Binary files differnew file mode 100644 index 0000000..61557df --- /dev/null +++ b/gui/button/slot_idle_background.png diff --git a/gui/frame.png b/gui/frame.png Binary files differnew file mode 100644 index 0000000..966d1e3 --- /dev/null +++ b/gui/frame.png diff --git a/gui/game_menu.png b/gui/game_menu.png Binary files differnew file mode 100644 index 0000000..e832491 --- /dev/null +++ b/gui/game_menu.png diff --git a/gui/main_menu.png b/gui/main_menu.png Binary files differnew file mode 100644 index 0000000..e832491 --- /dev/null +++ b/gui/main_menu.png diff --git a/gui/namebox.png b/gui/namebox.png Binary files differnew file mode 100644 index 0000000..98a69ec --- /dev/null +++ b/gui/namebox.png diff --git a/gui/notify.png b/gui/notify.png Binary files differnew file mode 100644 index 0000000..afdd0e3 --- /dev/null +++ b/gui/notify.png diff --git a/gui/nvl.png b/gui/nvl.png Binary files differnew file mode 100644 index 0000000..9bbe5d4 --- /dev/null +++ b/gui/nvl.png diff --git a/gui/overlay/confirm.png b/gui/overlay/confirm.png Binary files differnew file mode 100644 index 0000000..5ab43e8 --- /dev/null +++ b/gui/overlay/confirm.png diff --git a/gui/overlay/game_menu.png b/gui/overlay/game_menu.png Binary files differnew file mode 100644 index 0000000..86a972c --- /dev/null +++ b/gui/overlay/game_menu.png diff --git a/gui/overlay/main_menu.png b/gui/overlay/main_menu.png Binary files differnew file mode 100644 index 0000000..2a52321 --- /dev/null +++ b/gui/overlay/main_menu.png diff --git a/gui/phone/bar/bottom.png b/gui/phone/bar/bottom.png Binary files differnew file mode 100644 index 0000000..3398dd5 --- /dev/null +++ b/gui/phone/bar/bottom.png diff --git a/gui/phone/bar/left.png b/gui/phone/bar/left.png Binary files differnew file mode 100644 index 0000000..af91a99 --- /dev/null +++ b/gui/phone/bar/left.png diff --git a/gui/phone/bar/right.png b/gui/phone/bar/right.png Binary files differnew file mode 100644 index 0000000..8d0de62 --- /dev/null +++ b/gui/phone/bar/right.png diff --git a/gui/phone/bar/top.png b/gui/phone/bar/top.png Binary files differnew file mode 100644 index 0000000..fea53c6 --- /dev/null +++ b/gui/phone/bar/top.png diff --git a/gui/phone/button/check_foreground.png b/gui/phone/button/check_foreground.png Binary files differnew file mode 100644 index 0000000..6ae65b6 --- /dev/null +++ b/gui/phone/button/check_foreground.png diff --git a/gui/phone/button/check_selected_foreground.png b/gui/phone/button/check_selected_foreground.png Binary files differnew file mode 100644 index 0000000..e31a712 --- /dev/null +++ b/gui/phone/button/check_selected_foreground.png diff --git a/gui/phone/button/choice_hover_background.png b/gui/phone/button/choice_hover_background.png Binary files differnew file mode 100644 index 0000000..583985d --- /dev/null +++ b/gui/phone/button/choice_hover_background.png diff --git a/gui/phone/button/choice_idle_background.png b/gui/phone/button/choice_idle_background.png Binary files differnew file mode 100644 index 0000000..632758a --- /dev/null +++ b/gui/phone/button/choice_idle_background.png diff --git a/gui/phone/button/hover_background.png b/gui/phone/button/hover_background.png Binary files differnew file mode 100644 index 0000000..900c145 --- /dev/null +++ b/gui/phone/button/hover_background.png diff --git a/gui/phone/button/idle_background.png b/gui/phone/button/idle_background.png Binary files differnew file mode 100644 index 0000000..900c145 --- /dev/null +++ b/gui/phone/button/idle_background.png diff --git a/gui/phone/button/radio_foreground.png b/gui/phone/button/radio_foreground.png Binary files differnew file mode 100644 index 0000000..6ae65b6 --- /dev/null +++ b/gui/phone/button/radio_foreground.png diff --git a/gui/phone/button/radio_selected_foreground.png b/gui/phone/button/radio_selected_foreground.png Binary files differnew file mode 100644 index 0000000..e31a712 --- /dev/null +++ b/gui/phone/button/radio_selected_foreground.png diff --git a/gui/phone/button/slot_hover_background.png b/gui/phone/button/slot_hover_background.png Binary files differnew file mode 100644 index 0000000..f337d98 --- /dev/null +++ b/gui/phone/button/slot_hover_background.png diff --git a/gui/phone/button/slot_idle_background.png b/gui/phone/button/slot_idle_background.png Binary files differnew file mode 100644 index 0000000..61557df --- /dev/null +++ b/gui/phone/button/slot_idle_background.png diff --git a/gui/phone/nvl.png b/gui/phone/nvl.png Binary files differnew file mode 100644 index 0000000..f6d4289 --- /dev/null +++ b/gui/phone/nvl.png diff --git a/gui/phone/overlay/game_menu.png b/gui/phone/overlay/game_menu.png Binary files differnew file mode 100644 index 0000000..8a57016 --- /dev/null +++ b/gui/phone/overlay/game_menu.png diff --git a/gui/phone/overlay/main_menu.png b/gui/phone/overlay/main_menu.png Binary files differnew file mode 100644 index 0000000..b36d987 --- /dev/null +++ b/gui/phone/overlay/main_menu.png diff --git a/gui/phone/scrollbar/horizontal_hover_bar.png b/gui/phone/scrollbar/horizontal_hover_bar.png Binary files differnew file mode 100644 index 0000000..b7f0aeb --- /dev/null +++ b/gui/phone/scrollbar/horizontal_hover_bar.png diff --git a/gui/phone/scrollbar/horizontal_hover_thumb.png b/gui/phone/scrollbar/horizontal_hover_thumb.png Binary files differnew file mode 100644 index 0000000..0d5b932 --- /dev/null +++ b/gui/phone/scrollbar/horizontal_hover_thumb.png diff --git a/gui/phone/scrollbar/horizontal_idle_bar.png b/gui/phone/scrollbar/horizontal_idle_bar.png Binary files differnew file mode 100644 index 0000000..9bf07b6 --- /dev/null +++ b/gui/phone/scrollbar/horizontal_idle_bar.png diff --git a/gui/phone/scrollbar/horizontal_idle_thumb.png b/gui/phone/scrollbar/horizontal_idle_thumb.png Binary files differnew file mode 100644 index 0000000..cc59261 --- /dev/null +++ b/gui/phone/scrollbar/horizontal_idle_thumb.png diff --git a/gui/phone/scrollbar/vertical_hover_bar.png b/gui/phone/scrollbar/vertical_hover_bar.png Binary files differnew file mode 100644 index 0000000..07c701a --- /dev/null +++ b/gui/phone/scrollbar/vertical_hover_bar.png diff --git a/gui/phone/scrollbar/vertical_hover_thumb.png b/gui/phone/scrollbar/vertical_hover_thumb.png Binary files differnew file mode 100644 index 0000000..9ea8113 --- /dev/null +++ b/gui/phone/scrollbar/vertical_hover_thumb.png diff --git a/gui/phone/scrollbar/vertical_idle_bar.png b/gui/phone/scrollbar/vertical_idle_bar.png Binary files differnew file mode 100644 index 0000000..1f1cb2c --- /dev/null +++ b/gui/phone/scrollbar/vertical_idle_bar.png diff --git a/gui/phone/scrollbar/vertical_idle_thumb.png b/gui/phone/scrollbar/vertical_idle_thumb.png Binary files differnew file mode 100644 index 0000000..9714eb2 --- /dev/null +++ b/gui/phone/scrollbar/vertical_idle_thumb.png diff --git a/gui/phone/slider/horizontal_hover_bar.png b/gui/phone/slider/horizontal_hover_bar.png Binary files differnew file mode 100644 index 0000000..b782a0b --- /dev/null +++ b/gui/phone/slider/horizontal_hover_bar.png diff --git a/gui/phone/slider/horizontal_hover_thumb.png b/gui/phone/slider/horizontal_hover_thumb.png Binary files differnew file mode 100644 index 0000000..0c9734f --- /dev/null +++ b/gui/phone/slider/horizontal_hover_thumb.png diff --git a/gui/phone/slider/horizontal_idle_bar.png b/gui/phone/slider/horizontal_idle_bar.png Binary files differnew file mode 100644 index 0000000..52d5e7b --- /dev/null +++ b/gui/phone/slider/horizontal_idle_bar.png diff --git a/gui/phone/slider/horizontal_idle_thumb.png b/gui/phone/slider/horizontal_idle_thumb.png Binary files differnew file mode 100644 index 0000000..1f2ca5d --- /dev/null +++ b/gui/phone/slider/horizontal_idle_thumb.png diff --git a/gui/phone/slider/vertical_hover_bar.png b/gui/phone/slider/vertical_hover_bar.png Binary files differnew file mode 100644 index 0000000..daf4a91 --- /dev/null +++ b/gui/phone/slider/vertical_hover_bar.png diff --git a/gui/phone/slider/vertical_hover_thumb.png b/gui/phone/slider/vertical_hover_thumb.png Binary files differnew file mode 100644 index 0000000..a51a60c --- /dev/null +++ b/gui/phone/slider/vertical_hover_thumb.png diff --git a/gui/phone/slider/vertical_idle_bar.png b/gui/phone/slider/vertical_idle_bar.png Binary files differnew file mode 100644 index 0000000..9e0f890 --- /dev/null +++ b/gui/phone/slider/vertical_idle_bar.png diff --git a/gui/phone/slider/vertical_idle_thumb.png b/gui/phone/slider/vertical_idle_thumb.png Binary files differnew file mode 100644 index 0000000..a49b5d0 --- /dev/null +++ b/gui/phone/slider/vertical_idle_thumb.png diff --git a/gui/phone/textbox.png b/gui/phone/textbox.png Binary files differnew file mode 100644 index 0000000..ed7b0a6 --- /dev/null +++ b/gui/phone/textbox.png diff --git a/gui/scrollbar/horizontal_hover_bar.png b/gui/scrollbar/horizontal_hover_bar.png Binary files differnew file mode 100644 index 0000000..b7f0aeb --- /dev/null +++ b/gui/scrollbar/horizontal_hover_bar.png diff --git a/gui/scrollbar/horizontal_hover_thumb.png b/gui/scrollbar/horizontal_hover_thumb.png Binary files differnew file mode 100644 index 0000000..0d5b932 --- /dev/null +++ b/gui/scrollbar/horizontal_hover_thumb.png diff --git a/gui/scrollbar/horizontal_idle_bar.png b/gui/scrollbar/horizontal_idle_bar.png Binary files differnew file mode 100644 index 0000000..9bf07b6 --- /dev/null +++ b/gui/scrollbar/horizontal_idle_bar.png diff --git a/gui/scrollbar/horizontal_idle_thumb.png b/gui/scrollbar/horizontal_idle_thumb.png Binary files differnew file mode 100644 index 0000000..cc59261 --- /dev/null +++ b/gui/scrollbar/horizontal_idle_thumb.png diff --git a/gui/scrollbar/vertical_hover_bar.png b/gui/scrollbar/vertical_hover_bar.png Binary files differnew file mode 100644 index 0000000..07c701a --- /dev/null +++ b/gui/scrollbar/vertical_hover_bar.png diff --git a/gui/scrollbar/vertical_hover_thumb.png b/gui/scrollbar/vertical_hover_thumb.png Binary files differnew file mode 100644 index 0000000..9ea8113 --- /dev/null +++ b/gui/scrollbar/vertical_hover_thumb.png diff --git a/gui/scrollbar/vertical_idle_bar.png b/gui/scrollbar/vertical_idle_bar.png Binary files differnew file mode 100644 index 0000000..1f1cb2c --- /dev/null +++ b/gui/scrollbar/vertical_idle_bar.png diff --git a/gui/scrollbar/vertical_idle_thumb.png b/gui/scrollbar/vertical_idle_thumb.png Binary files differnew file mode 100644 index 0000000..9714eb2 --- /dev/null +++ b/gui/scrollbar/vertical_idle_thumb.png diff --git a/gui/skip.png b/gui/skip.png Binary files differnew file mode 100644 index 0000000..734b21e --- /dev/null +++ b/gui/skip.png diff --git a/gui/slider/horizontal_hover_bar.png b/gui/slider/horizontal_hover_bar.png Binary files differnew file mode 100644 index 0000000..b6d9c4f --- /dev/null +++ b/gui/slider/horizontal_hover_bar.png diff --git a/gui/slider/horizontal_hover_thumb.png b/gui/slider/horizontal_hover_thumb.png Binary files differnew file mode 100644 index 0000000..515667a --- /dev/null +++ b/gui/slider/horizontal_hover_thumb.png diff --git a/gui/slider/horizontal_idle_bar.png b/gui/slider/horizontal_idle_bar.png Binary files differnew file mode 100644 index 0000000..8d0de62 --- /dev/null +++ b/gui/slider/horizontal_idle_bar.png diff --git a/gui/slider/horizontal_idle_thumb.png b/gui/slider/horizontal_idle_thumb.png Binary files differnew file mode 100644 index 0000000..06dc563 --- /dev/null +++ b/gui/slider/horizontal_idle_thumb.png diff --git a/gui/slider/vertical_hover_bar.png b/gui/slider/vertical_hover_bar.png Binary files differnew file mode 100644 index 0000000..8d0c007 --- /dev/null +++ b/gui/slider/vertical_hover_bar.png diff --git a/gui/slider/vertical_hover_thumb.png b/gui/slider/vertical_hover_thumb.png Binary files differnew file mode 100644 index 0000000..4cea34b --- /dev/null +++ b/gui/slider/vertical_hover_thumb.png diff --git a/gui/slider/vertical_idle_bar.png b/gui/slider/vertical_idle_bar.png Binary files differnew file mode 100644 index 0000000..fea53c6 --- /dev/null +++ b/gui/slider/vertical_idle_bar.png diff --git a/gui/slider/vertical_idle_thumb.png b/gui/slider/vertical_idle_thumb.png Binary files differnew file mode 100644 index 0000000..1046998 --- /dev/null +++ b/gui/slider/vertical_idle_thumb.png diff --git a/gui/textbox.png b/gui/textbox.png Binary files differnew file mode 100644 index 0000000..618bcb8 --- /dev/null +++ b/gui/textbox.png diff --git a/gui/window_icon.png b/gui/window_icon.png Binary files differnew file mode 100644 index 0000000..62c79cb --- /dev/null +++ b/gui/window_icon.png diff --git a/options.rpy b/options.rpy new file mode 100644 index 0000000..2a2c9aa --- /dev/null +++ b/options.rpy @@ -0,0 +1,214 @@ +## This file contains options that can be changed to customize your game.
+##
+## Lines beginning with two '#' marks are comments, and you shouldn't uncomment
+## them. Lines beginning with a single '#' mark are commented-out code, and you
+## may want to uncomment them when appropriate.
+
+
+## Basics ######################################################################
+
+## A human-readable name of the game. This is used to set the default window
+## title, and shows up in the interface and error reports.
+##
+## The _() surrounding the string marks it as eligible for translation.
+
+define config.name = _("Mana Spheres SDK")
+
+
+## Determines if the title given above is shown on the main menu screen. Set
+## this to False to hide the title.
+
+define gui.show_name = True
+
+
+## The version of the game.
+
+define config.version = "2.0.12.24"
+
+
+## Text that is placed on the game's about screen. Place the text between the
+## triple-quotes, and leave a blank line between paragraphs.
+
+define gui.about = _p("""
+""")
+
+
+## A short name for the game used for executables and directories in the built
+## distribution. This must be ASCII-only, and must not contain spaces, colons,
+## or semicolons.
+
+define build.name = "ManaSpheresSDK"
+
+
+## Sounds and music ############################################################
+
+## These three variables control which mixers are shown to the player by
+## default. Setting one of these to False will hide the appropriate mixer.
+
+define config.has_sound = True
+define config.has_music = True
+define config.has_voice = True
+
+
+## To allow the user to play a test sound on the sound or voice channel,
+## uncomment a line below and use it to set a sample sound to play.
+
+# define config.sample_sound = "sample-sound.ogg"
+# define config.sample_voice = "sample-voice.ogg"
+
+
+## Uncomment the following line to set an audio file that will be played while
+## the player is at the main menu. This file will continue playing into the
+## game, until it is stopped or another file is played.
+
+# define config.main_menu_music = "main-menu-theme.ogg"
+
+
+## Transitions #################################################################
+##
+## These variables set transitions that are used when certain events occur.
+## Each variable should be set to a transition, or None to indicate that no
+## transition should be used.
+
+## Entering or exiting the game menu.
+
+define config.enter_transition = dissolve
+define config.exit_transition = dissolve
+
+
+## Between screens of the game menu.
+
+define config.intra_transition = dissolve
+
+
+## A transition that is used after a game has been loaded.
+
+define config.after_load_transition = None
+
+
+## Used when entering the main menu after the game has ended.
+
+define config.end_game_transition = None
+
+
+## A variable to set the transition used when the game starts does not exist.
+## Instead, use a with statement after showing the initial scene.
+
+
+## Window management ###########################################################
+##
+## This controls when the dialogue window is displayed. If "show", it is always
+## displayed. If "hide", it is only displayed when dialogue is present. If
+## "auto", the window is hidden before scene statements and shown again once
+## dialogue is displayed.
+##
+## After the game has started, this can be changed with the "window show",
+## "window hide", and "window auto" statements.
+
+define config.window = "auto"
+
+
+## Transitions used to show and hide the dialogue window
+
+define config.window_show_transition = Dissolve(.2)
+define config.window_hide_transition = Dissolve(.2)
+
+
+## Preference defaults #########################################################
+
+## Controls the default text speed. The default, 0, is infinite, while any other
+## number is the number of characters per second to type out.
+
+default preferences.text_cps = 0
+
+
+## The default auto-forward delay. Larger numbers lead to longer waits, with 0
+## to 30 being the valid range.
+
+default preferences.afm_time = 15
+
+
+## Save directory ##############################################################
+##
+## Controls the platform-specific place Ren'Py will place the save files for
+## this game. The save files will be placed in:
+##
+## Windows: %APPDATA\RenPy\<config.save_directory>
+##
+## Macintosh: $HOME/Library/RenPy/<config.save_directory>
+##
+## Linux: $HOME/.renpy/<config.save_directory>
+##
+## This generally should not be changed, and if it is, should always be a
+## literal string, not an expression.
+
+define config.save_directory = "SDK-Mana-Spheres"
+
+
+## Icon ########################################################################
+##
+## The icon displayed on the taskbar or dock.
+
+define config.window_icon = "gui/window_icon.png"
+
+
+## Build configuration #########################################################
+##
+## This section controls how Ren'Py turns your project into distribution files.
+
+init python:
+
+ ## The following functions take file patterns. File patterns are case-
+ ## insensitive, and matched against the path relative to the base directory,
+ ## with and without a leading /. If multiple patterns match, the first is
+ ## used.
+ ##
+ ## In a pattern:
+ ##
+ ## / is the directory separator.
+ ##
+ ## * matches all characters, except the directory separator.
+ ##
+ ## ** matches all characters, including the directory separator.
+ ##
+ ## For example, "*.txt" matches txt files in the base directory, "game/
+ ## **.ogg" matches ogg files in the game directory or any of its
+ ## subdirectories, and "**.psd" matches psd files anywhere in the project.
+
+ ## Classify files as None to exclude them from the built distributions.
+
+ build.classify('**~', None)
+ build.classify('**.bak', None)
+ build.classify('**/.**', None)
+ build.classify('**/#**', None)
+ build.classify('**/thumbs.db', None)
+
+ ## To archive files, classify them as 'archive'.
+
+ # build.classify('game/**.png', 'archive')
+ # build.classify('game/**.jpg', 'archive')
+
+ ## Files matching documentation patterns are duplicated in a mac app build,
+ ## so they appear in both the app and the zip file.
+
+ build.documentation('*.html')
+ build.documentation('*.txt')
+ renpy.license = _("{a=https://www.renpy.org/l/license}About Ren'Py{/a}")
+
+
+## A Google Play license key is required to download expansion files and perform
+## in-app purchases. It can be found on the "Services & APIs" page of the Google
+## Play developer console.
+
+# define build.google_play_key = "..."
+
+
+## The username and project name associated with an itch.io project, separated
+## by a slash.
+
+# define build.itch_project = "renpytom/test-project"
+
+define config.rollback_enabled = False
+define config.automatic_images = False
+
+
diff --git a/screens.rpy b/screens.rpy new file mode 100644 index 0000000..f86f32e --- /dev/null +++ b/screens.rpy @@ -0,0 +1,1518 @@ +################################################################################
+## Initialization
+################################################################################
+
+init offset = -1
+
+
+################################################################################
+## Styles
+################################################################################
+
+style default:
+ properties gui.text_properties()
+ language gui.language
+
+style input:
+ properties gui.text_properties("input", accent=True)
+ adjust_spacing False
+
+style hyperlink_text:
+ properties gui.text_properties("hyperlink", accent=True)
+ hover_underline True
+
+style gui_text:
+ properties gui.text_properties("interface")
+
+
+style button:
+ properties gui.button_properties("button")
+
+style button_text is gui_text:
+ properties gui.text_properties("button")
+ yalign 0.5
+
+
+style label_text is gui_text:
+ properties gui.text_properties("label", accent=True)
+
+style prompt_text is gui_text:
+ properties gui.text_properties("prompt")
+
+
+style bar:
+ ysize gui.bar_size
+ left_bar Frame("gui/bar/left.png", gui.bar_borders, tile=gui.bar_tile)
+ right_bar Frame("gui/bar/right.png", gui.bar_borders, tile=gui.bar_tile)
+
+style vbar:
+ xsize gui.bar_size
+ top_bar Frame("gui/bar/top.png", gui.vbar_borders, tile=gui.bar_tile)
+ bottom_bar Frame("gui/bar/bottom.png", gui.vbar_borders, tile=gui.bar_tile)
+
+style scrollbar:
+ ysize gui.scrollbar_size
+ base_bar Frame("gui/scrollbar/horizontal_[prefix_]bar.png", gui.scrollbar_borders, tile=gui.scrollbar_tile)
+ thumb Frame("gui/scrollbar/horizontal_[prefix_]thumb.png", gui.scrollbar_borders, tile=gui.scrollbar_tile)
+
+style vscrollbar:
+ xsize gui.scrollbar_size
+ base_bar Frame("gui/scrollbar/vertical_[prefix_]bar.png", gui.vscrollbar_borders, tile=gui.scrollbar_tile)
+ thumb Frame("gui/scrollbar/vertical_[prefix_]thumb.png", gui.vscrollbar_borders, tile=gui.scrollbar_tile)
+
+style slider:
+ ysize gui.slider_size
+ base_bar Frame("gui/slider/horizontal_[prefix_]bar.png", gui.slider_borders, tile=gui.slider_tile)
+ thumb "gui/slider/horizontal_[prefix_]thumb.png"
+
+style vslider:
+ xsize gui.slider_size
+ base_bar Frame("gui/slider/vertical_[prefix_]bar.png", gui.vslider_borders, tile=gui.slider_tile)
+ thumb "gui/slider/vertical_[prefix_]thumb.png"
+
+
+style frame:
+ padding gui.frame_borders.padding
+ background Frame("gui/frame.png", gui.frame_borders, tile=gui.frame_tile)
+
+
+
+################################################################################
+## In-game screens
+################################################################################
+
+
+## Say screen ##################################################################
+##
+## The say screen is used to display dialogue to the player. It takes two
+## parameters, who and what, which are the name of the speaking character and
+## the text to be displayed, respectively. (The who parameter can be None if no
+## name is given.)
+##
+## This screen must create a text displayable with id "what", as Ren'Py uses
+## this to manage text display. It can also create displayables with id "who"
+## and id "window" to apply style properties.
+##
+## https://www.renpy.org/doc/html/screen_special.html#say
+
+screen say(who, what):
+ style_prefix "say"
+
+ window:
+ id "window"
+
+ if who is not None:
+
+ window:
+ id "namebox"
+ style "namebox"
+ text who id "who"
+
+ text what id "what"
+
+
+ ## If there's a side image, display it above the text. Do not display on the
+ ## phone variant - there's no room.
+ if not renpy.variant("small"):
+ add SideImage() xalign 0.0 yalign 1.0
+
+
+## Make the namebox available for styling through the Character object.
+init python:
+ config.character_id_prefixes.append('namebox')
+
+style window is default
+style say_label is default
+style say_dialogue is default
+style say_thought is say_dialogue
+
+style namebox is default
+style namebox_label is say_label
+
+
+style window:
+ xalign 0.5
+ xfill True
+ yalign gui.textbox_yalign
+ ysize gui.textbox_height
+
+ background Image("gui/textbox.png", xalign=0.5, yalign=1.0)
+
+style namebox:
+ xpos gui.name_xpos
+ xanchor gui.name_xalign
+ xsize gui.namebox_width
+ ypos gui.name_ypos
+ ysize gui.namebox_height
+
+ background Frame("gui/namebox.png", gui.namebox_borders, tile=gui.namebox_tile, xalign=gui.name_xalign)
+ padding gui.namebox_borders.padding
+
+style say_label:
+ properties gui.text_properties("name", accent=True)
+ xalign gui.name_xalign
+ yalign 0.5
+
+style say_dialogue:
+ properties gui.text_properties("dialogue")
+
+ xpos gui.dialogue_xpos
+ xsize gui.dialogue_width
+ ypos gui.dialogue_ypos
+
+
+## Input screen ################################################################
+##
+## This screen is used to display renpy.input. The prompt parameter is used to
+## pass a text prompt in.
+##
+## This screen must create an input displayable with id "input" to accept the
+## various input parameters.
+##
+## https://www.renpy.org/doc/html/screen_special.html#input
+
+screen input(prompt):
+ style_prefix "input"
+
+ window:
+
+ vbox:
+ xalign gui.dialogue_text_xalign
+ xpos gui.dialogue_xpos
+ xsize gui.dialogue_width
+ ypos gui.dialogue_ypos
+
+ text prompt style "input_prompt"
+ input id "input"
+
+style input_prompt is default
+
+style input_prompt:
+ xalign gui.dialogue_text_xalign
+ properties gui.text_properties("input_prompt")
+
+style input:
+ xalign gui.dialogue_text_xalign
+ xmaximum gui.dialogue_width
+
+
+## Choice screen ###############################################################
+##
+## This screen is used to display the in-game choices presented by the menu
+## statement. The one parameter, items, is a list of objects, each with caption
+## and action fields.
+##
+## https://www.renpy.org/doc/html/screen_special.html#choice
+
+screen choice(items):
+ style_prefix "choice"
+
+ vbox:
+ for i in items:
+ textbutton i.caption action i.action
+
+
+## When this is true, menu captions will be spoken by the narrator. When false,
+## menu captions will be displayed as empty buttons.
+define config.narrator_menu = True
+
+
+style choice_vbox is vbox
+style choice_button is button
+style choice_button_text is button_text
+
+style choice_vbox:
+ xalign 0.5
+ ypos 270
+ yanchor 0.5
+
+ spacing gui.choice_spacing
+
+style choice_button is default:
+ properties gui.button_properties("choice_button")
+
+style choice_button_text is default:
+ properties gui.button_text_properties("choice_button")
+
+
+## Quick Menu screen ###########################################################
+##
+## The quick menu is displayed in-game to provide easy access to the out-of-game
+## menus.
+
+screen quick_menu():
+
+ ## Ensure this appears on top of other screens.
+ zorder 100
+
+ if quick_menu:
+
+ hbox:
+ style_prefix "quick"
+
+ xalign 0.5
+ yalign 1.0
+
+ textbutton _("Back") action Rollback()
+ textbutton _("History") action ShowMenu('history')
+ textbutton _("Skip") action Skip() alternate Skip(fast=True, confirm=True)
+ textbutton _("Auto") action Preference("auto-forward", "toggle")
+ textbutton _("Save") action ShowMenu('save')
+ textbutton _("Q.Save") action QuickSave()
+ textbutton _("Q.Load") action QuickLoad()
+ textbutton _("Prefs") action ShowMenu('preferences')
+
+
+## This code ensures that the quick_menu screen is displayed in-game, whenever
+## the player has not explicitly hidden the interface.
+init python:
+ config.overlay_screens.append("quick_menu")
+
+default quick_menu = True
+
+style quick_button is default
+style quick_button_text is button_text
+
+style quick_button:
+ properties gui.button_properties("quick_button")
+
+style quick_button_text:
+ properties gui.button_text_properties("quick_button")
+
+
+################################################################################
+## Main and Game Menu Screens
+################################################################################
+
+## Navigation screen ###########################################################
+##
+## This screen is included in the main and game menus, and provides navigation
+## to other menus, and to start the game.
+
+screen navigation():
+
+ vbox:
+ style_prefix "navigation"
+
+ xpos gui.navigation_xpos
+ yalign 0.5
+
+ spacing gui.navigation_spacing
+
+ if main_menu:
+
+ textbutton _("Start") action Start()
+
+ else:
+
+ textbutton _("History") action ShowMenu("history")
+
+ textbutton _("Save") action ShowMenu("save")
+
+ textbutton _("Load") action ShowMenu("load")
+
+ textbutton _("Preferences") action ShowMenu("preferences")
+
+ if _in_replay:
+
+ textbutton _("End Replay") action EndReplay(confirm=True)
+
+ elif not main_menu:
+
+ textbutton _("Main Menu") action MainMenu()
+
+ textbutton _("About") action ShowMenu("about")
+
+ if renpy.variant("pc") or (renpy.variant("web") and not renpy.variant("mobile")):
+
+ ## Help isn't necessary or relevant to mobile devices.
+ textbutton _("Help") action ShowMenu("help")
+
+ if renpy.variant("pc"):
+
+ ## The quit button is banned on iOS and unnecessary on Android and
+ ## Web.
+ textbutton _("Quit") action Quit(confirm=not main_menu)
+
+
+style navigation_button is gui_button
+style navigation_button_text is gui_button_text
+
+style navigation_button:
+ size_group "navigation"
+ properties gui.button_properties("navigation_button")
+
+style navigation_button_text:
+ properties gui.button_text_properties("navigation_button")
+
+
+## Main Menu screen ############################################################
+##
+## Used to display the main menu when Ren'Py starts.
+##
+## https://www.renpy.org/doc/html/screen_special.html#main-menu
+
+screen main_menu():
+
+ ## This ensures that any other menu screen is replaced.
+ tag menu
+
+ style_prefix "main_menu"
+
+ add gui.main_menu_background
+
+ ## This empty frame darkens the main menu.
+ frame:
+ pass
+
+ ## The use statement includes another screen inside this one. The actual
+ ## contents of the main menu are in the navigation screen.
+ use navigation
+
+ if gui.show_name:
+
+ vbox:
+ text "[config.name!t]":
+ style "main_menu_title"
+
+ text "[config.version]":
+ style "main_menu_version"
+
+
+style main_menu_frame is empty
+style main_menu_vbox is vbox
+style main_menu_text is gui_text
+style main_menu_title is main_menu_text
+style main_menu_version is main_menu_text
+
+style main_menu_frame:
+ xsize 280
+ yfill True
+
+ background "gui/overlay/main_menu.png"
+
+style main_menu_vbox:
+ xalign 1.0
+ xoffset -20
+ xmaximum 800
+ yalign 1.0
+ yoffset -20
+
+style main_menu_text:
+ properties gui.text_properties("main_menu", accent=True)
+
+style main_menu_title:
+ properties gui.text_properties("title")
+
+style main_menu_version:
+ properties gui.text_properties("version")
+
+
+## Game Menu screen ############################################################
+##
+## This lays out the basic common structure of a game menu screen. It's called
+## with the screen title, and displays the background, title, and navigation.
+##
+## The scroll parameter can be None, or one of "viewport" or "vpgrid". When
+## this screen is intended to be used with one or more children, which are
+## transcluded (placed) inside it.
+
+screen game_menu(title, scroll=None, yinitial=0.0):
+
+ style_prefix "game_menu"
+
+ if main_menu:
+ add gui.main_menu_background
+ else:
+ add gui.game_menu_background
+
+ frame:
+ style "game_menu_outer_frame"
+
+ hbox:
+
+ ## Reserve space for the navigation section.
+ frame:
+ style "game_menu_navigation_frame"
+
+ frame:
+ style "game_menu_content_frame"
+
+ if scroll == "viewport":
+
+ viewport:
+ yinitial yinitial
+ scrollbars "vertical"
+ mousewheel True
+ draggable True
+ pagekeys True
+
+ side_yfill True
+
+ vbox:
+ transclude
+
+ elif scroll == "vpgrid":
+
+ vpgrid:
+ cols 1
+ yinitial yinitial
+
+ scrollbars "vertical"
+ mousewheel True
+ draggable True
+ pagekeys True
+
+ side_yfill True
+
+ transclude
+
+ else:
+
+ transclude
+
+ use navigation
+
+ textbutton _("Return"):
+ style "return_button"
+
+ action Return()
+
+ label title
+
+ if main_menu:
+ key "game_menu" action ShowMenu("main_menu")
+
+
+style game_menu_outer_frame is empty
+style game_menu_navigation_frame is empty
+style game_menu_content_frame is empty
+style game_menu_viewport is gui_viewport
+style game_menu_side is gui_side
+style game_menu_scrollbar is gui_vscrollbar
+
+style game_menu_label is gui_label
+style game_menu_label_text is gui_label_text
+
+style return_button is navigation_button
+style return_button_text is navigation_button_text
+
+style game_menu_outer_frame:
+ bottom_padding 30
+ top_padding 120
+
+ background "gui/overlay/game_menu.png"
+
+style game_menu_navigation_frame:
+ xsize 280
+ yfill True
+
+style game_menu_content_frame:
+ left_margin 40
+ right_margin 20
+ top_margin 10
+
+style game_menu_viewport:
+ xsize 920
+
+style game_menu_vscrollbar:
+ unscrollable gui.unscrollable
+
+style game_menu_side:
+ spacing 10
+
+style game_menu_label:
+ xpos 50
+ ysize 120
+
+style game_menu_label_text:
+ size gui.title_text_size
+ color gui.accent_color
+ yalign 0.5
+
+style return_button:
+ xpos gui.navigation_xpos
+ yalign 1.0
+ yoffset -30
+
+
+## About screen ################################################################
+##
+## This screen gives credit and copyright information about the game and Ren'Py.
+##
+## There's nothing special about this screen, and hence it also serves as an
+## example of how to make a custom screen.
+
+screen about():
+
+ tag menu
+
+ ## This use statement includes the game_menu screen inside this one. The
+ ## vbox child is then included inside the viewport inside the game_menu
+ ## screen.
+ use game_menu(_("About"), scroll="viewport"):
+
+ style_prefix "about"
+
+ vbox:
+
+ label "[config.name!t]"
+ text _("Version [config.version!t]\n")
+
+ ## gui.about is usually set in options.rpy.
+ if gui.about:
+ text "[gui.about!t]\n"
+
+ text _("Made with {a=https://www.renpy.org/}Ren'Py{/a} [renpy.version_only].\n\n[renpy.license!t]")
+
+
+## This is redefined in options.rpy to add text to the about screen.
+define gui.about = ""
+
+
+style about_label is gui_label
+style about_label_text is gui_label_text
+style about_text is gui_text
+
+style about_label_text:
+ size gui.label_text_size
+
+
+## Load and Save screens #######################################################
+##
+## These screens are responsible for letting the player save the game and load
+## it again. Since they share nearly everything in common, both are implemented
+## in terms of a third screen, file_slots.
+##
+## https://www.renpy.org/doc/html/screen_special.html#save https://
+## www.renpy.org/doc/html/screen_special.html#load
+
+screen save():
+
+ tag menu
+
+ use file_slots(_("Save"))
+
+
+screen load():
+
+ tag menu
+
+ use file_slots(_("Load"))
+
+
+screen file_slots(title):
+
+ default page_name_value = FilePageNameInputValue(pattern=_("Page {}"), auto=_("Automatic saves"), quick=_("Quick saves"))
+
+ use game_menu(title):
+
+ fixed:
+
+ ## This ensures the input will get the enter event before any of the
+ ## buttons do.
+ order_reverse True
+
+ ## The page name, which can be edited by clicking on a button.
+ button:
+ style "page_label"
+
+ key_events True
+ xalign 0.5
+ action page_name_value.Toggle()
+
+ input:
+ style "page_label_text"
+ value page_name_value
+
+ ## The grid of file slots.
+ grid gui.file_slot_cols gui.file_slot_rows:
+ style_prefix "slot"
+
+ xalign 0.5
+ yalign 0.5
+
+ spacing gui.slot_spacing
+
+ for i in range(gui.file_slot_cols * gui.file_slot_rows):
+
+ $ slot = i + 1
+
+ button:
+ action FileAction(slot)
+
+ has vbox
+
+ add FileScreenshot(slot) xalign 0.5
+
+ 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)
+
+ ## Buttons to access other pages.
+ hbox:
+ style_prefix "page"
+
+ xalign 0.5
+ yalign 1.0
+
+ spacing gui.page_spacing
+
+ textbutton _("<") action FilePagePrevious()
+
+ if config.has_autosave:
+ textbutton _("{#auto_page}A") action FilePage("auto")
+
+ if config.has_quicksave:
+ textbutton _("{#quick_page}Q") action FilePage("quick")
+
+ ## range(1, 10) gives the numbers from 1 to 9.
+ for page in range(1, 10):
+ textbutton "[page]" action FilePage(page)
+
+ textbutton _(">") action FilePageNext()
+
+
+style page_label is gui_label
+style page_label_text is gui_label_text
+style page_button is gui_button
+style page_button_text is gui_button_text
+
+style slot_button is gui_button
+style slot_button_text is gui_button_text
+style slot_time_text is slot_button_text
+style slot_name_text is slot_button_text
+
+style page_label:
+ xpadding 50
+ ypadding 3
+
+style page_label_text:
+ text_align 0.5
+ layout "subtitle"
+ hover_color gui.hover_color
+
+style page_button:
+ properties gui.button_properties("page_button")
+
+style page_button_text:
+ properties gui.button_text_properties("page_button")
+
+style slot_button:
+ properties gui.button_properties("slot_button")
+
+style slot_button_text:
+ properties gui.button_text_properties("slot_button")
+
+
+## Preferences screen ##########################################################
+##
+## The preferences screen allows the player to configure the game to better suit
+## themselves.
+##
+## https://www.renpy.org/doc/html/screen_special.html#preferences
+
+screen preferences():
+
+ tag menu
+
+ use game_menu(_("Preferences"), scroll="viewport"):
+
+ vbox:
+
+ hbox:
+ box_wrap True
+
+ if renpy.variant("pc") or renpy.variant("web"):
+
+ vbox:
+ style_prefix "radio"
+ label _("Display")
+ textbutton _("Window") action Preference("display", "window")
+ textbutton _("Fullscreen") action Preference("display", "fullscreen")
+
+ vbox:
+ style_prefix "radio"
+ label _("Rollback Side")
+ textbutton _("Disable") action Preference("rollback side", "disable")
+ textbutton _("Left") action Preference("rollback side", "left")
+ textbutton _("Right") action Preference("rollback side", "right")
+
+ vbox:
+ style_prefix "check"
+ label _("Skip")
+ textbutton _("Unseen Text") action Preference("skip", "toggle")
+ textbutton _("After Choices") action Preference("after choices", "toggle")
+ textbutton _("Transitions") action InvertSelected(Preference("transitions", "toggle"))
+
+ ## Additional vboxes of type "radio_pref" or "check_pref" can be
+ ## added here, to add additional creator-defined preferences.
+
+ null height (4 * gui.pref_spacing)
+
+ hbox:
+ style_prefix "slider"
+ box_wrap True
+
+ vbox:
+
+ label _("Text Speed")
+
+ bar value Preference("text speed")
+
+ label _("Auto-Forward Time")
+
+ bar value Preference("auto-forward time")
+
+ vbox:
+
+ if config.has_music:
+ label _("Music Volume")
+
+ hbox:
+ bar value Preference("music volume")
+
+ if config.has_sound:
+
+ label _("Sound Volume")
+
+ hbox:
+ bar value Preference("sound volume")
+
+ if config.sample_sound:
+ textbutton _("Test") action Play("sound", config.sample_sound)
+
+
+ if config.has_voice:
+ label _("Voice Volume")
+
+ hbox:
+ bar value Preference("voice volume")
+
+ if config.sample_voice:
+ textbutton _("Test") action Play("voice", config.sample_voice)
+
+ if config.has_music or config.has_sound or config.has_voice:
+ null height gui.pref_spacing
+
+ textbutton _("Mute All"):
+ action Preference("all mute", "toggle")
+ style "mute_all_button"
+
+
+style pref_label is gui_label
+style pref_label_text is gui_label_text
+style pref_vbox is vbox
+
+style radio_label is pref_label
+style radio_label_text is pref_label_text
+style radio_button is gui_button
+style radio_button_text is gui_button_text
+style radio_vbox is pref_vbox
+
+style check_label is pref_label
+style check_label_text is pref_label_text
+style check_button is gui_button
+style check_button_text is gui_button_text
+style check_vbox is pref_vbox
+
+style slider_label is pref_label
+style slider_label_text is pref_label_text
+style slider_slider is gui_slider
+style slider_button is gui_button
+style slider_button_text is gui_button_text
+style slider_pref_vbox is pref_vbox
+
+style mute_all_button is check_button
+style mute_all_button_text is check_button_text
+
+style pref_label:
+ top_margin gui.pref_spacing
+ bottom_margin 2
+
+style pref_label_text:
+ yalign 1.0
+
+style pref_vbox:
+ xsize 225
+
+style radio_vbox:
+ spacing gui.pref_button_spacing
+
+style radio_button:
+ properties gui.button_properties("radio_button")
+ foreground "gui/button/radio_[prefix_]foreground.png"
+
+style radio_button_text:
+ properties gui.button_text_properties("radio_button")
+
+style check_vbox:
+ spacing gui.pref_button_spacing
+
+style check_button:
+ properties gui.button_properties("check_button")
+ foreground "gui/button/check_[prefix_]foreground.png"
+
+style check_button_text:
+ properties gui.button_text_properties("check_button")
+
+style slider_slider:
+ xsize 350
+
+style slider_button:
+ properties gui.button_properties("slider_button")
+ yalign 0.5
+ left_margin 10
+
+style slider_button_text:
+ properties gui.button_text_properties("slider_button")
+
+style slider_vbox:
+ xsize 450
+
+
+## History screen ##############################################################
+##
+## This is a screen that displays the dialogue history to the player. While
+## there isn't anything special about this screen, it does have to access the
+## dialogue history stored in _history_list.
+##
+## https://www.renpy.org/doc/html/history.html
+
+screen history():
+
+ tag menu
+
+ ## Avoid predicting this screen, as it can be very large.
+ predict False
+
+ use game_menu(_("History"), scroll=("vpgrid" if gui.history_height else "viewport"), yinitial=1.0):
+
+ style_prefix "history"
+
+ for h in _history_list:
+
+ window:
+
+ ## This lays things out properly if history_height is None.
+ has fixed:
+ yfit True
+
+ if h.who:
+
+ label h.who:
+ style "history_name"
+ substitute False
+
+ ## Take the color of the who text from the Character, if
+ ## set.
+ if "color" in h.who_args:
+ text_color h.who_args["color"]
+
+ $ what = renpy.filter_text_tags(h.what, allow=gui.history_allow_tags)
+ text what:
+ substitute False
+
+ if not _history_list:
+ label _("The dialogue history is empty.")
+
+
+## This determines what tags are allowed to be displayed on the history screen.
+
+define gui.history_allow_tags = set()
+
+
+style history_window is empty
+
+style history_name is gui_label
+style history_name_text is gui_label_text
+style history_text is gui_text
+
+style history_text is gui_text
+
+style history_label is gui_label
+style history_label_text is gui_label_text
+
+style history_window:
+ xfill True
+ ysize gui.history_height
+
+style history_name:
+ xpos gui.history_name_xpos
+ xanchor gui.history_name_xalign
+ ypos gui.history_name_ypos
+ xsize gui.history_name_width
+
+style history_name_text:
+ min_width gui.history_name_width
+ text_align gui.history_name_xalign
+
+style history_text:
+ xpos gui.history_text_xpos
+ ypos gui.history_text_ypos
+ xanchor gui.history_text_xalign
+ xsize gui.history_text_width
+ min_width gui.history_text_width
+ text_align gui.history_text_xalign
+ layout ("subtitle" if gui.history_text_xalign else "tex")
+
+style history_label:
+ xfill True
+
+style history_label_text:
+ xalign 0.5
+
+
+## Help screen #################################################################
+##
+## A screen that gives information about key and mouse bindings. It uses other
+## screens (keyboard_help, mouse_help, and gamepad_help) to display the actual
+## help.
+
+screen help():
+
+ tag menu
+
+ default device = "keyboard"
+
+ use game_menu(_("Help"), scroll="viewport"):
+
+ style_prefix "help"
+
+ vbox:
+ spacing 15
+
+ hbox:
+
+ textbutton _("Keyboard") action SetScreenVariable("device", "keyboard")
+ textbutton _("Mouse") action SetScreenVariable("device", "mouse")
+
+ if GamepadExists():
+ textbutton _("Gamepad") action SetScreenVariable("device", "gamepad")
+
+ if device == "keyboard":
+ use keyboard_help
+ elif device == "mouse":
+ use mouse_help
+ elif device == "gamepad":
+ use gamepad_help
+
+
+screen keyboard_help():
+
+ hbox:
+ label _("Enter")
+ text _("Advances dialogue and activates the interface.")
+
+ hbox:
+ label _("Space")
+ text _("Advances dialogue without selecting choices.")
+
+ hbox:
+ label _("Arrow Keys")
+ text _("Navigate the interface.")
+
+ hbox:
+ label _("Escape")
+ text _("Accesses the game menu.")
+
+ hbox:
+ label _("Ctrl")
+ text _("Skips dialogue while held down.")
+
+ hbox:
+ label _("Tab")
+ text _("Toggles dialogue skipping.")
+
+ hbox:
+ label _("Page Up")
+ text _("Rolls back to earlier dialogue.")
+
+ hbox:
+ label _("Page Down")
+ text _("Rolls forward to later dialogue.")
+
+ hbox:
+ label "H"
+ text _("Hides the user interface.")
+
+ hbox:
+ label "S"
+ text _("Takes a screenshot.")
+
+ hbox:
+ label "V"
+ text _("Toggles assistive {a=https://www.renpy.org/l/voicing}self-voicing{/a}.")
+
+
+screen mouse_help():
+
+ hbox:
+ label _("Left Click")
+ text _("Advances dialogue and activates the interface.")
+
+ hbox:
+ label _("Middle Click")
+ text _("Hides the user interface.")
+
+ hbox:
+ label _("Right Click")
+ text _("Accesses the game menu.")
+
+ hbox:
+ label _("Mouse Wheel Up\nClick Rollback Side")
+ text _("Rolls back to earlier dialogue.")
+
+ hbox:
+ label _("Mouse Wheel Down")
+ text _("Rolls forward to later dialogue.")
+
+
+screen gamepad_help():
+
+ hbox:
+ label _("Right Trigger\nA/Bottom Button")
+ text _("Advances dialogue and activates the interface.")
+
+ hbox:
+ label _("Left Trigger\nLeft Shoulder")
+ text _("Rolls back to earlier dialogue.")
+
+ hbox:
+ label _("Right Shoulder")
+ text _("Rolls forward to later dialogue.")
+
+
+ hbox:
+ label _("D-Pad, Sticks")
+ text _("Navigate the interface.")
+
+ hbox:
+ label _("Start, Guide")
+ text _("Accesses the game menu.")
+
+ hbox:
+ label _("Y/Top Button")
+ text _("Hides the user interface.")
+
+ textbutton _("Calibrate") action GamepadCalibrate()
+
+
+style help_button is gui_button
+style help_button_text is gui_button_text
+style help_label is gui_label
+style help_label_text is gui_label_text
+style help_text is gui_text
+
+style help_button:
+ properties gui.button_properties("help_button")
+ xmargin 8
+
+style help_button_text:
+ properties gui.button_text_properties("help_button")
+
+style help_label:
+ xsize 250
+ right_padding 20
+
+style help_label_text:
+ size gui.text_size
+ xalign 1.0
+ text_align 1.0
+
+
+
+################################################################################
+## Additional screens
+################################################################################
+
+
+## Confirm screen ##############################################################
+##
+## The confirm screen is called when Ren'Py wants to ask the player a yes or no
+## question.
+##
+## https://www.renpy.org/doc/html/screen_special.html#confirm
+
+screen confirm(message, yes_action, no_action):
+
+ ## Ensure other screens do not get input while this screen is displayed.
+ modal True
+
+ zorder 200
+
+ style_prefix "confirm"
+
+ add "gui/overlay/confirm.png"
+
+ frame:
+
+ vbox:
+ xalign .5
+ yalign .5
+ spacing 30
+
+ label _(message):
+ style "confirm_prompt"
+ xalign 0.5
+
+ hbox:
+ xalign 0.5
+ spacing 100
+
+ textbutton _("Yes") action yes_action
+ textbutton _("No") action no_action
+
+ ## Right-click and escape answer "no".
+ key "game_menu" action no_action
+
+
+style confirm_frame is gui_frame
+style confirm_prompt is gui_prompt
+style confirm_prompt_text is gui_prompt_text
+style confirm_button is gui_medium_button
+style confirm_button_text is gui_medium_button_text
+
+style confirm_frame:
+ background Frame([ "gui/confirm_frame.png", "gui/frame.png"], gui.confirm_frame_borders, tile=gui.frame_tile)
+ padding gui.confirm_frame_borders.padding
+ xalign .5
+ yalign .5
+
+style confirm_prompt_text:
+ text_align 0.5
+ layout "subtitle"
+
+style confirm_button:
+ properties gui.button_properties("confirm_button")
+
+style confirm_button_text:
+ properties gui.button_text_properties("confirm_button")
+
+
+## Skip indicator screen #######################################################
+##
+## The skip_indicator screen is displayed to indicate that skipping is in
+## progress.
+##
+## https://www.renpy.org/doc/html/screen_special.html#skip-indicator
+
+screen skip_indicator():
+
+ zorder 100
+ style_prefix "skip"
+
+ frame:
+
+ hbox:
+ spacing 6
+
+ text _("Skipping")
+
+ text "▸" at delayed_blink(0.0, 1.0) style "skip_triangle"
+ text "▸" at delayed_blink(0.2, 1.0) style "skip_triangle"
+ text "▸" at delayed_blink(0.4, 1.0) style "skip_triangle"
+
+
+## This transform is used to blink the arrows one after another.
+transform delayed_blink(delay, cycle):
+ alpha .5
+
+ pause delay
+
+ block:
+ linear .2 alpha 1.0
+ pause .2
+ linear .2 alpha 0.5
+ pause (cycle - .4)
+ repeat
+
+
+style skip_frame is empty
+style skip_text is gui_text
+style skip_triangle is skip_text
+
+style skip_frame:
+ ypos gui.skip_ypos
+ background Frame("gui/skip.png", gui.skip_frame_borders, tile=gui.frame_tile)
+ padding gui.skip_frame_borders.padding
+
+style skip_text:
+ size gui.notify_text_size
+
+style skip_triangle:
+ ## We have to use a font that has the BLACK RIGHT-POINTING SMALL TRIANGLE
+ ## glyph in it.
+ font "DejaVuSans.ttf"
+
+
+## Notify screen ###############################################################
+##
+## The notify screen is used to show the player a message. (For example, when
+## the game is quicksaved or a screenshot has been taken.)
+##
+## https://www.renpy.org/doc/html/screen_special.html#notify-screen
+
+screen notify(message):
+
+ zorder 100
+ style_prefix "notify"
+
+ frame at notify_appear:
+ text "[message!tq]"
+
+ timer 3.25 action Hide('notify')
+
+
+transform notify_appear:
+ on show:
+ alpha 0
+ linear .25 alpha 1.0
+ on hide:
+ linear .5 alpha 0.0
+
+
+style notify_frame is empty
+style notify_text is gui_text
+
+style notify_frame:
+ ypos gui.notify_ypos
+
+ background Frame("gui/notify.png", gui.notify_frame_borders, tile=gui.frame_tile)
+ padding gui.notify_frame_borders.padding
+
+style notify_text:
+ properties gui.text_properties("notify")
+
+
+## NVL screen ##################################################################
+##
+## This screen is used for NVL-mode dialogue and menus.
+##
+## https://www.renpy.org/doc/html/screen_special.html#nvl
+
+
+screen nvl(dialogue, items=None):
+
+ window:
+ style "nvl_window"
+
+ has vbox:
+ spacing gui.nvl_spacing
+
+ ## Displays dialogue in either a vpgrid or the vbox.
+ if gui.nvl_height:
+
+ vpgrid:
+ cols 1
+ yinitial 1.0
+
+ use nvl_dialogue(dialogue)
+
+ else:
+
+ use nvl_dialogue(dialogue)
+
+ ## Displays the menu, if given. The menu may be displayed incorrectly if
+ ## config.narrator_menu is set to True, as it is above.
+ for i in items:
+
+ textbutton i.caption:
+ action i.action
+ style "nvl_button"
+
+ add SideImage() xalign 0.0 yalign 1.0
+
+
+screen nvl_dialogue(dialogue):
+
+ for d in dialogue:
+
+ window:
+ id d.window_id
+
+ fixed:
+ yfit gui.nvl_height is None
+
+ if d.who is not None:
+
+ text d.who:
+ id d.who_id
+
+ text d.what:
+ id d.what_id
+
+
+## This controls the maximum number of NVL-mode entries that can be displayed at
+## once.
+define config.nvl_list_length = gui.nvl_list_length
+
+style nvl_window is default
+style nvl_entry is default
+
+style nvl_label is say_label
+style nvl_dialogue is say_dialogue
+
+style nvl_button is button
+style nvl_button_text is button_text
+
+style nvl_window:
+ xfill True
+ yfill True
+
+ background "gui/nvl.png"
+ padding gui.nvl_borders.padding
+
+style nvl_entry:
+ xfill True
+ ysize gui.nvl_height
+
+style nvl_label:
+ xpos gui.nvl_name_xpos
+ xanchor gui.nvl_name_xalign
+ ypos gui.nvl_name_ypos
+ yanchor 0.0
+ xsize gui.nvl_name_width
+ min_width gui.nvl_name_width
+ text_align gui.nvl_name_xalign
+
+style nvl_dialogue:
+ xpos gui.nvl_text_xpos
+ xanchor gui.nvl_text_xalign
+ ypos gui.nvl_text_ypos
+ xsize gui.nvl_text_width
+ min_width gui.nvl_text_width
+ text_align gui.nvl_text_xalign
+ layout ("subtitle" if gui.nvl_text_xalign else "tex")
+
+style nvl_thought:
+ xpos gui.nvl_thought_xpos
+ xanchor gui.nvl_thought_xalign
+ ypos gui.nvl_thought_ypos
+ xsize gui.nvl_thought_width
+ min_width gui.nvl_thought_width
+ text_align gui.nvl_thought_xalign
+ layout ("subtitle" if gui.nvl_text_xalign else "tex")
+
+style nvl_button:
+ properties gui.button_properties("nvl_button")
+ xpos gui.nvl_button_xpos
+ xanchor gui.nvl_button_xalign
+
+style nvl_button_text:
+ properties gui.button_text_properties("nvl_button")
+
+
+
+################################################################################
+## Mobile Variants
+################################################################################
+
+style pref_vbox:
+ variant "medium"
+ xsize 450
+
+## Since a mouse may not be present, we replace the quick menu with a version
+## that uses fewer and bigger buttons that are easier to touch.
+screen quick_menu():
+ variant "touch"
+
+ zorder 100
+
+ if quick_menu:
+
+ hbox:
+ style_prefix "quick"
+
+ xalign 0.5
+ yalign 1.0
+
+ textbutton _("Back") action Rollback()
+ textbutton _("Skip") action Skip() alternate Skip(fast=True, confirm=True)
+ textbutton _("Auto") action Preference("auto-forward", "toggle")
+ textbutton _("Menu") action ShowMenu()
+
+
+style window:
+ variant "small"
+ background "gui/phone/textbox.png"
+
+style radio_button:
+ variant "small"
+ foreground "gui/phone/button/radio_[prefix_]foreground.png"
+
+style check_button:
+ variant "small"
+ foreground "gui/phone/button/check_[prefix_]foreground.png"
+
+style nvl_window:
+ variant "small"
+ background "gui/phone/nvl.png"
+
+style main_menu_frame:
+ variant "small"
+ background "gui/phone/overlay/main_menu.png"
+
+style game_menu_outer_frame:
+ variant "small"
+ background "gui/phone/overlay/game_menu.png"
+
+style game_menu_navigation_frame:
+ variant "small"
+ xsize 340
+
+style game_menu_content_frame:
+ variant "small"
+ top_margin 0
+
+style pref_vbox:
+ variant "small"
+ xsize 400
+
+style bar:
+ variant "small"
+ ysize gui.bar_size
+ left_bar Frame("gui/phone/bar/left.png", gui.bar_borders, tile=gui.bar_tile)
+ right_bar Frame("gui/phone/bar/right.png", gui.bar_borders, tile=gui.bar_tile)
+
+style vbar:
+ variant "small"
+ xsize gui.bar_size
+ top_bar Frame("gui/phone/bar/top.png", gui.vbar_borders, tile=gui.bar_tile)
+ bottom_bar Frame("gui/phone/bar/bottom.png", gui.vbar_borders, tile=gui.bar_tile)
+
+style scrollbar:
+ variant "small"
+ ysize gui.scrollbar_size
+ base_bar Frame("gui/phone/scrollbar/horizontal_[prefix_]bar.png", gui.scrollbar_borders, tile=gui.scrollbar_tile)
+ thumb Frame("gui/phone/scrollbar/horizontal_[prefix_]thumb.png", gui.scrollbar_borders, tile=gui.scrollbar_tile)
+
+style vscrollbar:
+ variant "small"
+ xsize gui.scrollbar_size
+ base_bar Frame("gui/phone/scrollbar/vertical_[prefix_]bar.png", gui.vscrollbar_borders, tile=gui.scrollbar_tile)
+ thumb Frame("gui/phone/scrollbar/vertical_[prefix_]thumb.png", gui.vscrollbar_borders, tile=gui.scrollbar_tile)
+
+style slider:
+ variant "small"
+ ysize gui.slider_size
+ base_bar Frame("gui/phone/slider/horizontal_[prefix_]bar.png", gui.slider_borders, tile=gui.slider_tile)
+ thumb "gui/phone/slider/horizontal_[prefix_]thumb.png"
+
+style vslider:
+ variant "small"
+ xsize gui.slider_size
+ base_bar Frame("gui/phone/slider/vertical_[prefix_]bar.png", gui.vslider_borders, tile=gui.slider_tile)
+ thumb "gui/phone/slider/vertical_[prefix_]thumb.png"
+
+style slider_pref_vbox:
+ variant "small"
+ xsize None
+
+style slider_pref_slider:
+ variant "small"
+ xsize 600
diff --git a/script.rpy b/script.rpy new file mode 100644 index 0000000..95339b4 --- /dev/null +++ b/script.rpy @@ -0,0 +1,13 @@ +# The script of the game goes in this file.
+define e = Character("SDK")
+
+label start:
+ scene black
+ centered "Click to load game data"
+ $ GAME_LOADER()
+ menu:
+ "Quest editor":
+ call quest_editors
+ "Quit":
+ return
+ return
diff --git a/tl/None/common.rpym b/tl/None/common.rpym new file mode 100644 index 0000000..3444d75 --- /dev/null +++ b/tl/None/common.rpym @@ -0,0 +1,1211 @@ + +translate None strings: + + # renpy/common/00accessibility.rpy:28 + old "Self-voicing disabled." + new "Self-voicing disabled." + + # renpy/common/00accessibility.rpy:29 + old "Clipboard voicing enabled. " + new "Clipboard voicing enabled. " + + # renpy/common/00accessibility.rpy:30 + old "Self-voicing enabled. " + new "Self-voicing enabled. " + + # renpy/common/00accessibility.rpy:32 + old "bar" + new "bar" + + # renpy/common/00accessibility.rpy:33 + old "selected" + new "selected" + + # renpy/common/00accessibility.rpy:34 + old "viewport" + new "viewport" + + # renpy/common/00accessibility.rpy:35 + old "horizontal scroll" + new "horizontal scroll" + + # renpy/common/00accessibility.rpy:36 + old "vertical scroll" + new "vertical scroll" + + # renpy/common/00accessibility.rpy:37 + old "activate" + new "activate" + + # renpy/common/00accessibility.rpy:38 + old "deactivate" + new "deactivate" + + # renpy/common/00accessibility.rpy:39 + old "increase" + new "increase" + + # renpy/common/00accessibility.rpy:40 + old "decrease" + new "decrease" + + # renpy/common/00accessibility.rpy:128 + old "Font Override" + new "Font Override" + + # renpy/common/00accessibility.rpy:132 + old "Default" + new "Default" + + # renpy/common/00accessibility.rpy:136 + old "DejaVu Sans" + new "DejaVu Sans" + + # renpy/common/00accessibility.rpy:140 + old "Opendyslexic" + new "Opendyslexic" + + # renpy/common/00accessibility.rpy:146 + old "Text Size Scaling" + new "Text Size Scaling" + + # renpy/common/00accessibility.rpy:152 + old "Reset" + new "Reset" + + # renpy/common/00accessibility.rpy:157 + old "Line Spacing Scaling" + new "Line Spacing Scaling" + + # renpy/common/00accessibility.rpy:169 + old "Self-Voicing" + new "Self-Voicing" + + # renpy/common/00accessibility.rpy:173 + old "Off" + new "Off" + + # renpy/common/00accessibility.rpy:177 + old "Text-to-speech" + new "Text-to-speech" + + # renpy/common/00accessibility.rpy:181 + old "Clipboard" + new "Clipboard" + + # renpy/common/00accessibility.rpy:185 + old "Debug" + new "Debug" + + # renpy/common/00accessibility.rpy:191 + old "The options on this menu are intended to improve accessibility. They may not work with all games, and some combinations of options may render the game unplayable. This is not an issue with the game or engine. For the best results when changing fonts, try to keep the text size the same as it originally was." + new "The options on this menu are intended to improve accessibility. They may not work with all games, and some combinations of options may render the game unplayable. This is not an issue with the game or engine. For the best results when changing fonts, try to keep the text size the same as it originally was." + + # renpy/common/00accessibility.rpy:196 + old "Return" + new "Return" + + # renpy/common/00action_file.rpy:26 + old "{#weekday}Monday" + new "{#weekday}Monday" + + # renpy/common/00action_file.rpy:26 + old "{#weekday}Tuesday" + new "{#weekday}Tuesday" + + # renpy/common/00action_file.rpy:26 + old "{#weekday}Wednesday" + new "{#weekday}Wednesday" + + # renpy/common/00action_file.rpy:26 + old "{#weekday}Thursday" + new "{#weekday}Thursday" + + # renpy/common/00action_file.rpy:26 + old "{#weekday}Friday" + new "{#weekday}Friday" + + # renpy/common/00action_file.rpy:26 + old "{#weekday}Saturday" + new "{#weekday}Saturday" + + # renpy/common/00action_file.rpy:26 + old "{#weekday}Sunday" + new "{#weekday}Sunday" + + # renpy/common/00action_file.rpy:37 + old "{#weekday_short}Mon" + new "{#weekday_short}Mon" + + # renpy/common/00action_file.rpy:37 + old "{#weekday_short}Tue" + new "{#weekday_short}Tue" + + # renpy/common/00action_file.rpy:37 + old "{#weekday_short}Wed" + new "{#weekday_short}Wed" + + # renpy/common/00action_file.rpy:37 + old "{#weekday_short}Thu" + new "{#weekday_short}Thu" + + # renpy/common/00action_file.rpy:37 + old "{#weekday_short}Fri" + new "{#weekday_short}Fri" + + # renpy/common/00action_file.rpy:37 + old "{#weekday_short}Sat" + new "{#weekday_short}Sat" + + # renpy/common/00action_file.rpy:37 + old "{#weekday_short}Sun" + new "{#weekday_short}Sun" + + # renpy/common/00action_file.rpy:47 + old "{#month}January" + new "{#month}January" + + # renpy/common/00action_file.rpy:47 + old "{#month}February" + new "{#month}February" + + # renpy/common/00action_file.rpy:47 + old "{#month}March" + new "{#month}March" + + # renpy/common/00action_file.rpy:47 + old "{#month}April" + new "{#month}April" + + # renpy/common/00action_file.rpy:47 + old "{#month}May" + new "{#month}May" + + # renpy/common/00action_file.rpy:47 + old "{#month}June" + new "{#month}June" + + # renpy/common/00action_file.rpy:47 + old "{#month}July" + new "{#month}July" + + # renpy/common/00action_file.rpy:47 + old "{#month}August" + new "{#month}August" + + # renpy/common/00action_file.rpy:47 + old "{#month}September" + new "{#month}September" + + # renpy/common/00action_file.rpy:47 + old "{#month}October" + new "{#month}October" + + # renpy/common/00action_file.rpy:47 + old "{#month}November" + new "{#month}November" + + # renpy/common/00action_file.rpy:47 + old "{#month}December" + new "{#month}December" + + # renpy/common/00action_file.rpy:63 + old "{#month_short}Jan" + new "{#month_short}Jan" + + # renpy/common/00action_file.rpy:63 + old "{#month_short}Feb" + new "{#month_short}Feb" + + # renpy/common/00action_file.rpy:63 + old "{#month_short}Mar" + new "{#month_short}Mar" + + # renpy/common/00action_file.rpy:63 + old "{#month_short}Apr" + new "{#month_short}Apr" + + # renpy/common/00action_file.rpy:63 + old "{#month_short}May" + new "{#month_short}May" + + # renpy/common/00action_file.rpy:63 + old "{#month_short}Jun" + new "{#month_short}Jun" + + # renpy/common/00action_file.rpy:63 + old "{#month_short}Jul" + new "{#month_short}Jul" + + # renpy/common/00action_file.rpy:63 + old "{#month_short}Aug" + new "{#month_short}Aug" + + # renpy/common/00action_file.rpy:63 + old "{#month_short}Sep" + new "{#month_short}Sep" + + # renpy/common/00action_file.rpy:63 + old "{#month_short}Oct" + new "{#month_short}Oct" + + # renpy/common/00action_file.rpy:63 + old "{#month_short}Nov" + new "{#month_short}Nov" + + # renpy/common/00action_file.rpy:63 + old "{#month_short}Dec" + new "{#month_short}Dec" + + # renpy/common/00action_file.rpy:240 + old "%b %d, %H:%M" + new "%b %d, %H:%M" + + # renpy/common/00action_file.rpy:353 + old "Save slot %s: [text]" + new "Save slot %s: [text]" + + # renpy/common/00action_file.rpy:434 + old "Load slot %s: [text]" + new "Load slot %s: [text]" + + # renpy/common/00action_file.rpy:487 + old "Delete slot [text]" + new "Delete slot [text]" + + # renpy/common/00action_file.rpy:569 + old "File page auto" + new "File page auto" + + # renpy/common/00action_file.rpy:571 + old "File page quick" + new "File page quick" + + # renpy/common/00action_file.rpy:573 + old "File page [text]" + new "File page [text]" + + # renpy/common/00action_file.rpy:631 + old "Page {}" + new "Page {}" + + # renpy/common/00action_file.rpy:631 + old "Automatic saves" + new "Automatic saves" + + # renpy/common/00action_file.rpy:631 + old "Quick saves" + new "Quick saves" + + # renpy/common/00action_file.rpy:772 + old "Next file page." + new "Next file page." + + # renpy/common/00action_file.rpy:845 + old "Previous file page." + new "Previous file page." + + # renpy/common/00action_file.rpy:906 + old "Quick save complete." + new "Quick save complete." + + # renpy/common/00action_file.rpy:924 + old "Quick save." + new "Quick save." + + # renpy/common/00action_file.rpy:943 + old "Quick load." + new "Quick load." + + # renpy/common/00action_other.rpy:375 + old "Language [text]" + new "Language [text]" + + # renpy/common/00director.rpy:708 + old "The interactive director is not enabled here." + new "The interactive director is not enabled here." + + # renpy/common/00director.rpy:1481 + old "⬆" + new "⬆" + + # renpy/common/00director.rpy:1487 + old "⬇" + new "⬇" + + # renpy/common/00director.rpy:1551 + old "Done" + new "Done" + + # renpy/common/00director.rpy:1561 + old "(statement)" + new "(statement)" + + # renpy/common/00director.rpy:1562 + old "(tag)" + new "(tag)" + + # renpy/common/00director.rpy:1563 + old "(attributes)" + new "(attributes)" + + # renpy/common/00director.rpy:1564 + old "(transform)" + new "(transform)" + + # renpy/common/00director.rpy:1589 + old "(transition)" + new "(transition)" + + # renpy/common/00director.rpy:1601 + old "(channel)" + new "(channel)" + + # renpy/common/00director.rpy:1602 + old "(filename)" + new "(filename)" + + # renpy/common/00director.rpy:1631 + old "Change" + new "Change" + + # renpy/common/00director.rpy:1633 + old "Add" + new "Add" + + # renpy/common/00director.rpy:1636 + old "Cancel" + new "Cancel" + + # renpy/common/00director.rpy:1639 + old "Remove" + new "Remove" + + # renpy/common/00director.rpy:1674 + old "Statement:" + new "Statement:" + + # renpy/common/00director.rpy:1695 + old "Tag:" + new "Tag:" + + # renpy/common/00director.rpy:1711 + old "Attributes:" + new "Attributes:" + + # renpy/common/00director.rpy:1729 + old "Transforms:" + new "Transforms:" + + # renpy/common/00director.rpy:1748 + old "Behind:" + new "Behind:" + + # renpy/common/00director.rpy:1767 + old "Transition:" + new "Transition:" + + # renpy/common/00director.rpy:1785 + old "Channel:" + new "Channel:" + + # renpy/common/00director.rpy:1803 + old "Audio Filename:" + new "Audio Filename:" + + # renpy/common/00gui.rpy:374 + old "Are you sure?" + new "Are you sure?" + + # renpy/common/00gui.rpy:375 + old "Are you sure you want to delete this save?" + new "Are you sure you want to delete this save?" + + # renpy/common/00gui.rpy:376 + old "Are you sure you want to overwrite your save?" + new "Are you sure you want to overwrite your save?" + + # renpy/common/00gui.rpy:377 + old "Loading will lose unsaved progress.\nAre you sure you want to do this?" + new "Loading will lose unsaved progress.\nAre you sure you want to do this?" + + # renpy/common/00gui.rpy:378 + old "Are you sure you want to quit?" + new "Are you sure you want to quit?" + + # renpy/common/00gui.rpy:379 + old "Are you sure you want to return to the main menu?\nThis will lose unsaved progress." + new "Are you sure you want to return to the main menu?\nThis will lose unsaved progress." + + # renpy/common/00gui.rpy:380 + old "Are you sure you want to end the replay?" + new "Are you sure you want to end the replay?" + + # renpy/common/00gui.rpy:381 + old "Are you sure you want to begin skipping?" + new "Are you sure you want to begin skipping?" + + # renpy/common/00gui.rpy:382 + old "Are you sure you want to skip to the next choice?" + new "Are you sure you want to skip to the next choice?" + + # renpy/common/00gui.rpy:383 + old "Are you sure you want to skip unseen dialogue to the next choice?" + new "Are you sure you want to skip unseen dialogue to the next choice?" + + # renpy/common/00keymap.rpy:267 + old "Failed to save screenshot as %s." + new "Failed to save screenshot as %s." + + # renpy/common/00keymap.rpy:279 + old "Saved screenshot as %s." + new "Saved screenshot as %s." + + # renpy/common/00library.rpy:195 + old "Skip Mode" + new "Skip Mode" + + # renpy/common/00library.rpy:281 + old "This program contains free software under a number of licenses, including the MIT License and GNU Lesser General Public License. A complete list of software, including links to full source code, can be found {a=https://www.renpy.org/l/license}here{/a}." + new "This program contains free software under a number of licenses, including the MIT License and GNU Lesser General Public License. A complete list of software, including links to full source code, can be found {a=https://www.renpy.org/l/license}here{/a}." + + # renpy/common/00preferences.rpy:233 + old "display" + new "display" + + # renpy/common/00preferences.rpy:245 + old "transitions" + new "transitions" + + # renpy/common/00preferences.rpy:254 + old "skip transitions" + new "skip transitions" + + # renpy/common/00preferences.rpy:256 + old "video sprites" + new "video sprites" + + # renpy/common/00preferences.rpy:265 + old "show empty window" + new "show empty window" + + # renpy/common/00preferences.rpy:274 + old "text speed" + new "text speed" + + # renpy/common/00preferences.rpy:282 + old "joystick" + new "joystick" + + # renpy/common/00preferences.rpy:282 + old "joystick..." + new "joystick..." + + # renpy/common/00preferences.rpy:289 + old "skip" + new "skip" + + # renpy/common/00preferences.rpy:292 + old "skip unseen [text]" + new "skip unseen [text]" + + # renpy/common/00preferences.rpy:297 + old "skip unseen text" + new "skip unseen text" + + # renpy/common/00preferences.rpy:299 + old "begin skipping" + new "begin skipping" + + # renpy/common/00preferences.rpy:303 + old "after choices" + new "after choices" + + # renpy/common/00preferences.rpy:310 + old "skip after choices" + new "skip after choices" + + # renpy/common/00preferences.rpy:312 + old "auto-forward time" + new "auto-forward time" + + # renpy/common/00preferences.rpy:326 + old "auto-forward" + new "auto-forward" + + # renpy/common/00preferences.rpy:333 + old "Auto forward" + new "Auto forward" + + # renpy/common/00preferences.rpy:336 + old "auto-forward after click" + new "auto-forward after click" + + # renpy/common/00preferences.rpy:345 + old "automatic move" + new "automatic move" + + # renpy/common/00preferences.rpy:354 + old "wait for voice" + new "wait for voice" + + # renpy/common/00preferences.rpy:363 + old "voice sustain" + new "voice sustain" + + # renpy/common/00preferences.rpy:372 + old "self voicing" + new "self voicing" + + # renpy/common/00preferences.rpy:381 + old "clipboard voicing" + new "clipboard voicing" + + # renpy/common/00preferences.rpy:390 + old "debug voicing" + new "debug voicing" + + # renpy/common/00preferences.rpy:399 + old "emphasize audio" + new "emphasize audio" + + # renpy/common/00preferences.rpy:408 + old "rollback side" + new "rollback side" + + # renpy/common/00preferences.rpy:418 + old "gl powersave" + new "gl powersave" + + # renpy/common/00preferences.rpy:424 + old "gl framerate" + new "gl framerate" + + # renpy/common/00preferences.rpy:427 + old "gl tearing" + new "gl tearing" + + # renpy/common/00preferences.rpy:430 + old "font transform" + new "font transform" + + # renpy/common/00preferences.rpy:433 + old "font size" + new "font size" + + # renpy/common/00preferences.rpy:441 + old "font line spacing" + new "font line spacing" + + # renpy/common/00preferences.rpy:460 + old "music volume" + new "music volume" + + # renpy/common/00preferences.rpy:461 + old "sound volume" + new "sound volume" + + # renpy/common/00preferences.rpy:462 + old "voice volume" + new "voice volume" + + # renpy/common/00preferences.rpy:463 + old "mute music" + new "mute music" + + # renpy/common/00preferences.rpy:464 + old "mute sound" + new "mute sound" + + # renpy/common/00preferences.rpy:465 + old "mute voice" + new "mute voice" + + # renpy/common/00preferences.rpy:466 + old "mute all" + new "mute all" + + # renpy/common/00preferences.rpy:547 + old "Clipboard voicing enabled. Press 'shift+C' to disable." + new "Clipboard voicing enabled. Press 'shift+C' to disable." + + # renpy/common/00preferences.rpy:549 + old "Self-voicing would say \"[renpy.display.tts.last]\". Press 'alt+shift+V' to disable." + new "Self-voicing would say \"[renpy.display.tts.last]\". Press 'alt+shift+V' to disable." + + # renpy/common/00preferences.rpy:551 + old "Self-voicing enabled. Press 'v' to disable." + new "Self-voicing enabled. Press 'v' to disable." + + # renpy/common/00iap.rpy:217 + old "Contacting App Store\nPlease Wait..." + new "Contacting App Store\nPlease Wait..." + + # renpy/common/00updater.rpy:375 + old "The Ren'Py Updater is not supported on mobile devices." + new "The Ren'Py Updater is not supported on mobile devices." + + # renpy/common/00updater.rpy:494 + old "An error is being simulated." + new "An error is being simulated." + + # renpy/common/00updater.rpy:678 + old "Either this project does not support updating, or the update status file was deleted." + new "Either this project does not support updating, or the update status file was deleted." + + # renpy/common/00updater.rpy:692 + old "This account does not have permission to perform an update." + new "This account does not have permission to perform an update." + + # renpy/common/00updater.rpy:695 + old "This account does not have permission to write the update log." + new "This account does not have permission to write the update log." + + # renpy/common/00updater.rpy:722 + old "Could not verify update signature." + new "Could not verify update signature." + + # renpy/common/00updater.rpy:997 + old "The update file was not downloaded." + new "The update file was not downloaded." + + # renpy/common/00updater.rpy:1015 + old "The update file does not have the correct digest - it may have been corrupted." + new "The update file does not have the correct digest - it may have been corrupted." + + # renpy/common/00updater.rpy:1071 + old "While unpacking {}, unknown type {}." + new "While unpacking {}, unknown type {}." + + # renpy/common/00updater.rpy:1439 + old "Updater" + new "Updater" + + # renpy/common/00updater.rpy:1446 + old "An error has occured:" + new "An error has occured:" + + # renpy/common/00updater.rpy:1448 + old "Checking for updates." + new "Checking for updates." + + # renpy/common/00updater.rpy:1450 + old "This program is up to date." + new "This program is up to date." + + # renpy/common/00updater.rpy:1452 + old "[u.version] is available. Do you want to install it?" + new "[u.version] is available. Do you want to install it?" + + # renpy/common/00updater.rpy:1454 + old "Preparing to download the updates." + new "Preparing to download the updates." + + # renpy/common/00updater.rpy:1456 + old "Downloading the updates." + new "Downloading the updates." + + # renpy/common/00updater.rpy:1458 + old "Unpacking the updates." + new "Unpacking the updates." + + # renpy/common/00updater.rpy:1460 + old "Finishing up." + new "Finishing up." + + # renpy/common/00updater.rpy:1462 + old "The updates have been installed. The program will restart." + new "The updates have been installed. The program will restart." + + # renpy/common/00updater.rpy:1464 + old "The updates have been installed." + new "The updates have been installed." + + # renpy/common/00updater.rpy:1466 + old "The updates were cancelled." + new "The updates were cancelled." + + # renpy/common/00updater.rpy:1481 + old "Proceed" + new "Proceed" + + # renpy/common/00compat.rpy:288 + old "Fullscreen" + new "Fullscreen" + + # renpy/common/00gallery.rpy:592 + old "Image [index] of [count] locked." + new "Image [index] of [count] locked." + + # renpy/common/00gallery.rpy:612 + old "prev" + new "prev" + + # renpy/common/00gallery.rpy:613 + old "next" + new "next" + + # renpy/common/00gallery.rpy:614 + old "slideshow" + new "slideshow" + + # renpy/common/00gallery.rpy:615 + old "return" + new "return" + + # renpy/common/00gltest.rpy:70 + old "Renderer" + new "Renderer" + + # renpy/common/00gltest.rpy:74 + old "Automatically Choose" + new "Automatically Choose" + + # renpy/common/00gltest.rpy:79 + old "Force Angle/DirectX Renderer" + new "Force Angle/DirectX Renderer" + + # renpy/common/00gltest.rpy:83 + old "Force OpenGL Renderer" + new "Force OpenGL Renderer" + + # renpy/common/00gltest.rpy:87 + old "Force Software Renderer" + new "Force Software Renderer" + + # renpy/common/00gltest.rpy:93 + old "NPOT" + new "NPOT" + + # renpy/common/00gltest.rpy:97 + old "Enable" + new "Enable" + + # renpy/common/00gltest.rpy:101 + old "Disable" + new "Disable" + + # renpy/common/00gltest.rpy:108 + old "Gamepad" + new "Gamepad" + + # renpy/common/00gltest.rpy:122 + old "Calibrate" + new "Calibrate" + + # renpy/common/00gltest.rpy:131 + old "Powersave" + new "Powersave" + + # renpy/common/00gltest.rpy:145 + old "Framerate" + new "Framerate" + + # renpy/common/00gltest.rpy:149 + old "Screen" + new "Screen" + + # renpy/common/00gltest.rpy:153 + old "60" + new "60" + + # renpy/common/00gltest.rpy:157 + old "30" + new "30" + + # renpy/common/00gltest.rpy:163 + old "Tearing" + new "Tearing" + + # renpy/common/00gltest.rpy:179 + old "Changes will take effect the next time this program is run." + new "Changes will take effect the next time this program is run." + + # renpy/common/00gltest.rpy:186 + old "Quit" + new "Quit" + + # renpy/common/00gltest.rpy:213 + old "Performance Warning" + new "Performance Warning" + + # renpy/common/00gltest.rpy:218 + old "This computer is using software rendering." + new "This computer is using software rendering." + + # renpy/common/00gltest.rpy:220 + old "This computer is not using shaders." + new "This computer is not using shaders." + + # renpy/common/00gltest.rpy:222 + old "This computer is displaying graphics slowly." + new "This computer is displaying graphics slowly." + + # renpy/common/00gltest.rpy:224 + old "This computer has a problem displaying graphics: [problem]." + new "This computer has a problem displaying graphics: [problem]." + + # renpy/common/00gltest.rpy:229 + old "Its graphics drivers may be out of date or not operating correctly. This can lead to slow or incorrect graphics display. Updating DirectX could fix this problem." + new "Its graphics drivers may be out of date or not operating correctly. This can lead to slow or incorrect graphics display. Updating DirectX could fix this problem." + + # renpy/common/00gltest.rpy:231 + old "Its graphics drivers may be out of date or not operating correctly. This can lead to slow or incorrect graphics display." + new "Its graphics drivers may be out of date or not operating correctly. This can lead to slow or incorrect graphics display." + + # renpy/common/00gltest.rpy:236 + old "Update DirectX" + new "Update DirectX" + + # renpy/common/00gltest.rpy:242 + old "Continue, Show this warning again" + new "Continue, Show this warning again" + + # renpy/common/00gltest.rpy:246 + old "Continue, Don't show warning again" + new "Continue, Don't show warning again" + + # renpy/common/00gltest.rpy:264 + old "Updating DirectX." + new "Updating DirectX." + + # renpy/common/00gltest.rpy:268 + old "DirectX web setup has been started. It may start minimized in the taskbar. Please follow the prompts to install DirectX." + new "DirectX web setup has been started. It may start minimized in the taskbar. Please follow the prompts to install DirectX." + + # renpy/common/00gltest.rpy:272 + old "{b}Note:{/b} Microsoft's DirectX web setup program will, by default, install the Bing toolbar. If you do not want this toolbar, uncheck the appropriate box." + new "{b}Note:{/b} Microsoft's DirectX web setup program will, by default, install the Bing toolbar. If you do not want this toolbar, uncheck the appropriate box." + + # renpy/common/00gltest.rpy:276 + old "When setup finishes, please click below to restart this program." + new "When setup finishes, please click below to restart this program." + + # renpy/common/00gltest.rpy:278 + old "Restart" + new "Restart" + + # renpy/common/00gamepad.rpy:32 + old "Select Gamepad to Calibrate" + new "Select Gamepad to Calibrate" + + # renpy/common/00gamepad.rpy:35 + old "No Gamepads Available" + new "No Gamepads Available" + + # renpy/common/00gamepad.rpy:54 + old "Calibrating [name] ([i]/[total])" + new "Calibrating [name] ([i]/[total])" + + # renpy/common/00gamepad.rpy:58 + old "Press or move the [control!r] [kind]." + new "Press or move the [control!r] [kind]." + + # renpy/common/00gamepad.rpy:66 + old "Skip (A)" + new "Skip (A)" + + # renpy/common/00gamepad.rpy:69 + old "Back (B)" + new "Back (B)" + + # renpy/common/_errorhandling.rpym:538 + old "Open" + new "Open" + + # renpy/common/_errorhandling.rpym:540 + old "Opens the traceback.txt file in a text editor." + new "Opens the traceback.txt file in a text editor." + + # renpy/common/_errorhandling.rpym:542 + old "Copy BBCode" + new "Copy BBCode" + + # renpy/common/_errorhandling.rpym:544 + old "Copies the traceback.txt file to the clipboard as BBcode for forums like https://lemmasoft.renai.us/." + new "Copies the traceback.txt file to the clipboard as BBcode for forums like https://lemmasoft.renai.us/." + + # renpy/common/_errorhandling.rpym:546 + old "Copy Markdown" + new "Copy Markdown" + + # renpy/common/_errorhandling.rpym:548 + old "Copies the traceback.txt file to the clipboard as Markdown for Discord." + new "Copies the traceback.txt file to the clipboard as Markdown for Discord." + + # renpy/common/_errorhandling.rpym:577 + old "An exception has occurred." + new "An exception has occurred." + + # renpy/common/_errorhandling.rpym:597 + old "Rollback" + new "Rollback" + + # renpy/common/_errorhandling.rpym:599 + old "Attempts a roll back to a prior time, allowing you to save or choose a different choice." + new "Attempts a roll back to a prior time, allowing you to save or choose a different choice." + + # renpy/common/_errorhandling.rpym:602 + old "Ignore" + new "Ignore" + + # renpy/common/_errorhandling.rpym:606 + old "Ignores the exception, allowing you to continue." + new "Ignores the exception, allowing you to continue." + + # renpy/common/_errorhandling.rpym:608 + old "Ignores the exception, allowing you to continue. This often leads to additional errors." + new "Ignores the exception, allowing you to continue. This often leads to additional errors." + + # renpy/common/_errorhandling.rpym:612 + old "Reload" + new "Reload" + + # renpy/common/_errorhandling.rpym:614 + old "Reloads the game from disk, saving and restoring game state if possible." + new "Reloads the game from disk, saving and restoring game state if possible." + + # renpy/common/_errorhandling.rpym:617 + old "Console" + new "Console" + + # renpy/common/_errorhandling.rpym:619 + old "Opens a console to allow debugging the problem." + new "Opens a console to allow debugging the problem." + + # renpy/common/_errorhandling.rpym:629 + old "Quits the game." + new "Quits the game." + + # renpy/common/_errorhandling.rpym:653 + old "Parsing the script failed." + new "Parsing the script failed." + + # renpy/common/_errorhandling.rpym:679 + old "Opens the errors.txt file in a text editor." + new "Opens the errors.txt file in a text editor." + + # renpy/common/_errorhandling.rpym:683 + old "Copies the errors.txt file to the clipboard as BBcode for forums like https://lemmasoft.renai.us/." + new "Copies the errors.txt file to the clipboard as BBcode for forums like https://lemmasoft.renai.us/." + + # renpy/common/_errorhandling.rpym:687 + old "Copies the errors.txt file to the clipboard as Markdown for Discord." + new "Copies the errors.txt file to the clipboard as Markdown for Discord." + + # renpy/common/_developer/developer.rpym:38 + old "Developer Menu" + new "Developer Menu" + + # renpy/common/_developer/developer.rpym:43 + old "Interactive Director (D)" + new "Interactive Director (D)" + + # renpy/common/_developer/developer.rpym:45 + old "Reload Game (Shift+R)" + new "Reload Game (Shift+R)" + + # renpy/common/_developer/developer.rpym:47 + old "Console (Shift+O)" + new "Console (Shift+O)" + + # renpy/common/_developer/developer.rpym:49 + old "Variable Viewer" + new "Variable Viewer" + + # renpy/common/_developer/developer.rpym:51 + old "Image Location Picker" + new "Image Location Picker" + + # renpy/common/_developer/developer.rpym:53 + old "Filename List" + new "Filename List" + + # renpy/common/_developer/developer.rpym:57 + old "Show Image Load Log (F4)" + new "Show Image Load Log (F4)" + + # renpy/common/_developer/developer.rpym:60 + old "Hide Image Load Log (F4)" + new "Hide Image Load Log (F4)" + + # renpy/common/_developer/developer.rpym:63 + old "Image Attributes" + new "Image Attributes" + + # renpy/common/_developer/developer.rpym:90 + old "[name] [attributes] (hidden)" + new "[name] [attributes] (hidden)" + + # renpy/common/_developer/developer.rpym:94 + old "[name] [attributes]" + new "[name] [attributes]" + + # renpy/common/_developer/developer.rpym:143 + old "Nothing to inspect." + new "Nothing to inspect." + + # renpy/common/_developer/developer.rpym:154 + old "Hide deleted" + new "Hide deleted" + + # renpy/common/_developer/developer.rpym:154 + old "Show deleted" + new "Show deleted" + + # renpy/common/_developer/developer.rpym:278 + old "Return to the developer menu" + new "Return to the developer menu" + + # renpy/common/_developer/developer.rpym:443 + old "Rectangle: %r" + new "Rectangle: %r" + + # renpy/common/_developer/developer.rpym:448 + old "Mouse position: %r" + new "Mouse position: %r" + + # renpy/common/_developer/developer.rpym:453 + old "Right-click or escape to quit." + new "Right-click or escape to quit." + + # renpy/common/_developer/developer.rpym:485 + old "Rectangle copied to clipboard." + new "Rectangle copied to clipboard." + + # renpy/common/_developer/developer.rpym:488 + old "Position copied to clipboard." + new "Position copied to clipboard." + + # renpy/common/_developer/developer.rpym:507 + old "Type to filter: " + new "Type to filter: " + + # renpy/common/_developer/developer.rpym:635 + old "Textures: [tex_count] ([tex_size_mb:.1f] MB)" + new "Textures: [tex_count] ([tex_size_mb:.1f] MB)" + + # renpy/common/_developer/developer.rpym:639 + old "Image cache: [cache_pct:.1f]% ([cache_size_mb:.1f] MB)" + new "Image cache: [cache_pct:.1f]% ([cache_size_mb:.1f] MB)" + + # renpy/common/_developer/developer.rpym:649 + old "✔ " + new "✔ " + + # renpy/common/_developer/developer.rpym:652 + old "✘ " + new "✘ " + + # renpy/common/_developer/developer.rpym:657 + old "\n{color=#cfc}✔ predicted image (good){/color}\n{color=#fcc}✘ unpredicted image (bad){/color}\n{color=#fff}Drag to move.{/color}" + new "\n{color=#cfc}✔ predicted image (good){/color}\n{color=#fcc}✘ unpredicted image (bad){/color}\n{color=#fff}Drag to move.{/color}" + + # renpy/common/_developer/inspector.rpym:38 + old "Displayable Inspector" + new "Displayable Inspector" + + # renpy/common/_developer/inspector.rpym:61 + old "Size" + new "Size" + + # renpy/common/_developer/inspector.rpym:65 + old "Style" + new "Style" + + # renpy/common/_developer/inspector.rpym:71 + old "Location" + new "Location" + + # renpy/common/_developer/inspector.rpym:122 + old "Inspecting Styles of [displayable_name!q]" + new "Inspecting Styles of [displayable_name!q]" + + # renpy/common/_developer/inspector.rpym:139 + old "displayable:" + new "displayable:" + + # renpy/common/_developer/inspector.rpym:145 + old " (no properties affect the displayable)" + new " (no properties affect the displayable)" + + # renpy/common/_developer/inspector.rpym:147 + old " (default properties omitted)" + new " (default properties omitted)" + + # renpy/common/_developer/inspector.rpym:185 + old "<repr() failed>" + new "<repr() failed>" + + # renpy/common/00console.rpy:273 + old "Press <esc> to exit console. Type help for help.\n" + new "Press <esc> to exit console. Type help for help.\n" + + # renpy/common/00console.rpy:277 + old "Ren'Py script enabled." + new "Ren'Py script enabled." + + # renpy/common/00console.rpy:279 + old "Ren'Py script disabled." + new "Ren'Py script disabled." + + # renpy/common/00console.rpy:526 + old "help: show this help" + new "help: show this help" + + # renpy/common/00console.rpy:531 + old "commands:\n" + new "commands:\n" + + # renpy/common/00console.rpy:541 + old " <renpy script statement>: run the statement\n" + new " <renpy script statement>: run the statement\n" + + # renpy/common/00console.rpy:543 + old " <python expression or statement>: run the expression or statement" + new " <python expression or statement>: run the expression or statement" + + # renpy/common/00console.rpy:551 + old "clear: clear the console history" + new "clear: clear the console history" + + # renpy/common/00console.rpy:555 + old "exit: exit the console" + new "exit: exit the console" + + # renpy/common/00console.rpy:563 + old "load <slot>: loads the game from slot" + new "load <slot>: loads the game from slot" + + # renpy/common/00console.rpy:576 + old "save <slot>: saves the game in slot" + new "save <slot>: saves the game in slot" + + # renpy/common/00console.rpy:587 + old "reload: reloads the game, refreshing the scripts" + new "reload: reloads the game, refreshing the scripts" + + # renpy/common/00console.rpy:595 + old "watch <expression>: watch a python expression" + new "watch <expression>: watch a python expression" + + # renpy/common/00console.rpy:621 + old "unwatch <expression>: stop watching an expression" + new "unwatch <expression>: stop watching an expression" + + # renpy/common/00console.rpy:652 + old "unwatchall: stop watching all expressions" + new "unwatchall: stop watching all expressions" + + # renpy/common/00console.rpy:669 + old "jump <label>: jumps to label" + new "jump <label>: jumps to label" + + # renpy/common/00console.rpy:685 + old "short: Shorten the representation of objects on the console (default)." + new "short: Shorten the representation of objects on the console (default)." + + # renpy/common/00console.rpy:690 + old "long: Print the full representation of objects on the console." + new "long: Print the full representation of objects on the console." + |