Code: Select all
python early:
show_text_during_trans=True
Code: Select all
python early:
show_text_during_trans=True
Code: Select all
def show_window(self):
if not renpy.store._window:
return
if not renpy.game.preferences.show_empty_window:
return
############Edit
if getattr(renpy.store, "show_text_during_trans", False):
return
############Edit
if renpy.game.context().scene_lists.shown_window:
return
if renpy.config.empty_window:
renpy.config.empty_window()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
while repeat:
repeat, rv = self.interact_core(preloads=preloads, **kwargs)
return rv
finally:
context.interacting = False
# Clean out transient stuff at the end of an interaction.
if clear:
scene_lists = renpy.game.context().scene_lists
####################Edit
if getattr(renpy.store, "show_text_during_trans", False):
if (("screens", "say") in scene_lists.additional_transient:
scene_lists.additional_transient.remove(("screens", "say"))
if (("screens", "nvl") in scene_lists.additional_transient:
scene_lists.additional_transient.remove(("screens", "nvl"))
####################Edit
scene_lists.replace_transient()
self.ongoing_transition = { }
self.transition_time = { }
self.transition_from = { }
Code: Select all
screen say:
# Defaults for side_image and two_window
default side_image = None
default two_window = False
textbutton "test button":
action SetField(persistent,"testvariable", False)
# regular say screen stuff below
Code: Select all
label start:
$ persistent.testvariable = True
e "You've created a new Ren'Py game."
e "Once you add a story, pictures, and music, you can release it to the world!"
return
Somehow removing these two lines in the core.py code:An exception has occurred:
While running game code:
File "renpy//common/00action_file.rpy", Line 259, in __call_
renpy.save(fn, extra_info=save_name)
TypeError: 'NoneType' object is not callable
Code: Select all
if ("screens", "say") in scene_lists.additional_transient:
scene_lists.additional_transient.remove(("screens", "say"))
Code: Select all
init python:
tra = dissolve
def auto_transition(statements):
if statements in ["say", "extend"]:
renpy.transition(tra, layer="master")
config.statement_callbacks.append(auto_transition)
Code: Select all
init python:
show_text_during_trans=True
def _default_empty_window2():
try:
who = _last_say_who
who = renpy.eval_who(who)
except:
who = None
what = _last_say_what
if who is None:
who = narrator
if what is None:
what = ""
if show_text_during_trans:
who(what+"{fast}", interact=False, _call_done=False)
else:
if isinstance(who, NVLCharacter):
nvl_show_core()
elif isinstance(store.narrator, ADVCharacter):
store.narrator.empty_window()
elif isinstance(store._narrator, ADVCharacter):
store._narrator.empty_window()
config.empty_window = _default_empty_window2
Users browsing this forum: barsunduk, Bing [Bot]