Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- init -3 python hide:
- renpy.demo_mode = True
- init -1 python hide:
- config.developer = True
- config.screen_width = 1024
- if persistent.resolution == None:
- persistent.resolution = 2
- if persistent.old_resolution == None:
- persistent.old_resolution = persistent.resolution
- if not persistent.resolution:
- config.screen_height = 600
- else:
- config.screen_height = 640
- if renpy.demo_mode:
- config.window_title = u"Analogue trial"
- else:
- config.window_title = u"Analogue: A Hate Story"
- config.name = "Analogue"
- config.version = "0.0"
- # config.mouse = { "default":[ ("arrow32.png",4,0) ] }
- config.autosave_frequency = 20
- config.image_cache_size *= 3
- def auto_save_extra_info():
- return save_name
- config.auto_save_extra_info = auto_save_extra_info
- config.keymap["game_menu"] = [ ]
- config.keymap["hide_windows"] = [ ]
- config.keymap["quit"].append('K_ESCAPE')
- config.keymap["toggle_fullscreen"] = [ ]
- config.keymap["screenshot"] = [ "alt_s", "meta_s" ]
- config.keymap["rollback"] = [ ]
- config.keymap["rollforward"] = [ ]
- theme.bordered(
- widget = "#D9D9D9",
- widget_hover = "#F0F2F2",
- widget_text = "#ffffff",
- widget_selected = "#737373",
- disabled = "#F0F2F2",
- disabled_text = "#FBFBFB",
- label = "#D9D9D9",
- frame = "#ffffff",
- mm_root = "#E6E6E6",
- gm_root = "#E6E6E6",
- rounded_window = False,
- )
- style.window.background = Frame("window.png", 20, 20)
- style.window.left_padding = 50
- style.window.right_padding = 50
- style.window.top_padding = 50
- style.window.bottom_padding = 50
- style.window.yminimum = 0
- style.window.xfill = False
- style.window.xmaximum = 550
- style.window.xalign = 0.8
- style.window.yalign = 0.2
- style.button["load"].background = style.button["load"].selected_background = style.button["normal-noselected"].background = style.button["normal-noselected"].selected_background = style.button["normal"].background = Frame("mainmenubutton.png", 30, 30)
- style.button["load"].hover_background = style.button["normal-noselected"].hover_background = style.button["normal"].hover_background = Frame("mainmenubutton-hover.png", 30, 30)
- style.button["load"].xpadding = style.button["normal-noselected"].xpadding = style.button["normal"].xpadding = 40
- style.button["load"].bottom_padding = style.button["normal-noselected"].bottom_padding = style.button["normal"].bottom_padding = 30
- style.button["load"].top_padding = style.button["normal-noselected"].top_padding = style.button["normal"].top_padding = 20
- style.button["load"].insensitive_background = style.button["normal-noselected"].insensitive_background = style.button["normal"].insensitive_background = style.button["normal"].selected_background = Frame("mainmenubutton-idle.png", 30, 30)
- style.default.size = 24
- style.default.color = (61, 61, 61, 196)
- style.default.bold = True
- style.default.font = "fonts/Delicious-Roman.otf"
- style.default.language = "korean-with-spaces"
- config.font_replacement_map["fonts/Delicious-Roman.otf", True, False] = ("fonts/Delicious-Bold.otf", False, False)
- config.font_replacement_map["fonts/Delicious-Roman.otf", False, True] = ("fonts/Delicious-Italic.otf", False, False)
- config.font_replacement_map["fonts/Delicious-Roman.otf", True, True] = ("fonts/Delicious-BoldItalic.otf", False, False)
- style.center = Style(style.default)
- style.center.text_align = 0.5
- style.nvl_window.background = None
- style.nvl_window.yoffset = (640-config.screen_height)/-2
- style.title = Style(style.text)
- style.title.font = "fonts/Delicious-Heavy.otf"
- style.title.bold = False
- style.title.color = (255,255,255,220)
- style.title.size = 28
- style.choice = Style(style.text)
- style.choice.minwidth = 150
- style.choice.yalign = 1.0
- style.choice.outlines = [ (2, (255, 255, 255, 255), 0, 0) ]
- style.choice.size = 20
- style.message_button = Style(style.text)
- style.message_button.size = 24
- style.message_button_small = Style(style.message_button)
- style.message_button_small.bold = False
- style.message_button_small.size = 20
- style.menu_button = Style(style.text)
- style.menu_button.size = 46
- style.terminal = Style(style.text)
- style.terminal.font = "fonts/WHITRABT.TTF"
- style.terminal.size = 16
- style.terminal.bold = False
- style.preferences = Style(style.text)
- style.preferences.size = 28
- style.preferences_button = Style(style.text)
- style.preferences_button.size = 20
- style.objective = Style(style.text)
- style.objective.font = "fonts/Planer-Regular.otf"
- style.objective.bold = False
- style.objective.line_spacing = -4
- style.objective.size = 19
- style.pages = Style(style.text)
- style.pages.bold = False
- style.pages.selected_bold = True
- style.load = Style(style.text)
- style.say_label.font = "fonts/Delicious-Heavy.otf"
- style.skip = Style(style.text)
- style.skip.size = 22
- style.main_screen = Style(style.text)
- style.plain = Style(style.text)
- style.block = Style(style.text)
- style.block.size = 24
- style.log_pages = Style(style.text)
- style.log_pages.size = 18
- config.has_sound = True
- config.has_music = True
- config.has_voice = False
- config.sample_sound = "sfx/fxbeep5.mp3"
- config.help = None
- init 1 python hide:
- config.main_menu_music = PROLOGUE
- config.enter_transition = None
- config.exit_transition = None
- config.intra_transition = None
- config.main_game_transition = None
- config.game_main_transition = None
- config.end_splash_transition = Dissolve(1.0)
- config.end_game_transition = None
- config.after_load_transition = None
- config.window_show_transition = None
- config.window_hide_transition = None
- config.nvl_adv_transition = Dissolve(0.5)
- config.window_icon = "icon256x256.png"
- config.windows_icon = "icon32x32.png"
- python early:
- config.save_directory = "Analogue"
- def new_lookup(self, label):
- """
- Looks up the given label in the game. If the label is not found,
- raises a ScriptError.
- Or rather, that's what the old one does. This just dumps you to
- the restart label rather than raising an exception.
- """
- label = renpy.config.label_overrides.get(label, label)
- if label not in self.namemap:
- return self.namemap["restart"]
- return self.namemap[label]
- renpy.script.Script.lookup = new_lookup
- init -1 python hide:
- import os
- os.environ["SDL_VIDEO_CENTERED"] = "1"
- config.default_fullscreen = True
- config.default_text_cps = 40
- config.quit_action = Show("quit")
- store.radiation = 0
- store.reactor_enabled = True
- def interact_cb():
- if store.radiation and store.reactor_enabled:
- store.radiation_levels += 0.01
- if (any_read("7-*") or (store.current_character == "mute" and get_m("6-9").enabled)) and store.radiation_levels < 0.65:
- store.radiation_levels = 0.65
- store.radiation_levels = min (store.radiation_levels, 0.8)
- config.interact_callbacks.append(interact_cb)
- def set_resolution(new_resolution):
- if new_resolution == 1:
- if persistent.resolution != new_resolution:
- config.screen_width = 1024
- config.screen_height = 640
- Preference("display", "window")()
- else:
- if config.screen_height != 600 + new_resolution*20:
- Preference("display", "window")()
- config.screen_height = 600 + new_resolution*20
- if persistent.resolution != new_resolution:
- Preference("display", "fullscreen")()
- persistent.old_resolution = new_resolution
- persistent.resolution = new_resolution
- renpy.set_resolution = set_resolution
- def nop(*args, **kwargs):
- pass
- init -1 python:
- class NewLanguage(Language):
- pass
- # Decompiled by unrpyc: https://github.com/CensoredUsername/unrpyc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement