Compare commits
28 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d337e47e1f | |||
| d10d81647b | |||
| e7708c23fb | |||
| cc45453f4a | |||
| 4dba39c57a | |||
| c570d96458 | |||
| 0888c1ae1c | |||
| 9222ca20c6 | |||
| 4ad03d0f98 | |||
| de33e805d4 | |||
| dab57aeec3 | |||
| 82caa0a66a | |||
| fe3c6908ea | |||
| 0c39b34c79 | |||
| 05b35745a1 | |||
| 77c04ac67d | |||
| bb4154c25f | |||
| d8ad65e912 | |||
| be678bd4ba | |||
| e12c00ee6d | |||
| b22c4c1379 | |||
| 3a58834de0 | |||
| d2b96c0eab | |||
| b3b4036955 | |||
| 544dde6d5c | |||
| 3002a1b019 | |||
| 08a621fdcf | |||
| 836238de5c |
@@ -158,8 +158,8 @@ translate russian strings:
|
||||
new "Помощь"
|
||||
|
||||
# screens.rpy:331
|
||||
old "## The quit button is banned on iOS and unnecessary on Android."
|
||||
new "## Кнопка выхода блокирована в iOS и не нужна на Android."
|
||||
old "## The quit button is banned on iOS and unnecessary on Android and Web."
|
||||
new "## Кнопка выхода блокирована в iOS и не нужна на Android и в веб-версии."
|
||||
|
||||
# screens.rpy:332
|
||||
old "Quit"
|
||||
@@ -672,4 +672,3 @@ translate russian strings:
|
||||
# screens.rpy:1431
|
||||
old "Menu"
|
||||
new "Меню"
|
||||
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ except ImportError:
|
||||
vc_version = 0
|
||||
|
||||
# The tuple giving the version number.
|
||||
version_tuple = (7, 3, 3, vc_version)
|
||||
version_tuple = (7, 3, 4, vc_version)
|
||||
|
||||
# The name of this version.
|
||||
version_name = "The world (wide web) is not enough."
|
||||
|
||||
+29
-12
@@ -409,12 +409,31 @@ class Drag(renpy.display.core.Displayable, renpy.python.RevertableObject):
|
||||
if self.drag_group is not None:
|
||||
self.drag_group.lower_children([ self ])
|
||||
|
||||
def update_style_prefix(self):
|
||||
"""
|
||||
This updates the style prefix for all Drag's associated
|
||||
with this drag movement.
|
||||
"""
|
||||
# We may not be in the drag_joined group.
|
||||
self.set_style_prefix("idle_", True)
|
||||
|
||||
# Set the style for joined_set
|
||||
for i in [i[0] for i in self.drag_joined(self)]:
|
||||
i.set_style_prefix("selected_hover_", True)
|
||||
|
||||
if self.last_drop is not None:
|
||||
self.last_drop.set_style_prefix("selected_idle_", True)
|
||||
|
||||
def visit(self):
|
||||
return [ self.child ]
|
||||
|
||||
def focus(self, default=False):
|
||||
super(Drag, self).focus(default)
|
||||
|
||||
# Update state back after restart_interaction
|
||||
if default and self.drag_moved:
|
||||
self.update_style_prefix()
|
||||
|
||||
rv = None
|
||||
|
||||
if not default:
|
||||
@@ -636,17 +655,10 @@ class Drag(renpy.display.core.Displayable, renpy.python.RevertableObject):
|
||||
|
||||
handled = True
|
||||
|
||||
if not self.drag_moved and (self.start_x != par_x or self.start_y != par_y):
|
||||
if (not self.drag_moved) and (self.start_x != par_x or self.start_y != par_y):
|
||||
self.drag_moved = True
|
||||
self.click_time = None
|
||||
|
||||
# We may not be in the drag_joined group.
|
||||
self.set_style_prefix("idle_", True)
|
||||
|
||||
# Set the style.
|
||||
for i in joined:
|
||||
i.set_style_prefix("selected_hover_", True)
|
||||
|
||||
# Raise the joined items.
|
||||
if self.drag_raise and self.drag_group is not None:
|
||||
self.drag_group.raise_children(joined)
|
||||
@@ -691,8 +703,8 @@ class Drag(renpy.display.core.Displayable, renpy.python.RevertableObject):
|
||||
|
||||
self.last_drop = drop
|
||||
|
||||
if drop is not None:
|
||||
drop.set_style_prefix("selected_idle_", True)
|
||||
if self.drag_moved:
|
||||
self.update_style_prefix()
|
||||
|
||||
if map_event(ev, 'drag_deactivate'):
|
||||
|
||||
@@ -848,8 +860,9 @@ class DragGroup(renpy.display.layout.MultiBox):
|
||||
|
||||
def raise_children(self, l):
|
||||
"""
|
||||
Raises the children in `l` to the top of this drag_group, using the
|
||||
order given in l for those children.
|
||||
Raises the children in the list `l` to the top of this drag group.
|
||||
Each is raised in the order that it appears in `l`, which means that
|
||||
the last element of `l` will be raised closest to the player.
|
||||
"""
|
||||
|
||||
self.sorted = False
|
||||
@@ -862,6 +875,10 @@ class DragGroup(renpy.display.layout.MultiBox):
|
||||
|
||||
def lower_children(self, l):
|
||||
"""
|
||||
Lowers the children in the list `l` to the bottom of this drag group.
|
||||
Each is lowered in the order that it appears in `l`, which means that
|
||||
the last element of `l` will be the lowest of the children.
|
||||
|
||||
Lowers the children in `l` to the bottom of this drag group, with
|
||||
the one at the bottom being the lowest.
|
||||
"""
|
||||
|
||||
+19
-7
@@ -558,12 +558,6 @@ class DynamicImage(renpy.display.core.Displayable):
|
||||
|
||||
self.name = name
|
||||
|
||||
if scope is not None:
|
||||
self.find_target(scope)
|
||||
self._uses_scope = True
|
||||
else:
|
||||
self._uses_scope = False
|
||||
|
||||
if isinstance(name, basestring) and ("[prefix_" in name):
|
||||
self._duplicatable = True
|
||||
|
||||
@@ -572,6 +566,12 @@ class DynamicImage(renpy.display.core.Displayable):
|
||||
if ("[prefix_" in i):
|
||||
self._duplicatable = True
|
||||
|
||||
if scope is not None:
|
||||
self.find_target(scope)
|
||||
self._uses_scope = True
|
||||
else:
|
||||
self._uses_scope = False
|
||||
|
||||
def _scope(self, scope, update):
|
||||
return self.find_target(scope, update)
|
||||
|
||||
@@ -609,13 +609,24 @@ class DynamicImage(renpy.display.core.Displayable):
|
||||
else:
|
||||
return self
|
||||
|
||||
def set_style_prefix(self, prefix, root):
|
||||
|
||||
if (prefix != self.style.prefix) and self._duplicatable:
|
||||
self.target = None
|
||||
self.raw_target = None
|
||||
|
||||
super(DynamicImage, self).set_style_prefix(prefix, root)
|
||||
|
||||
def find_target(self, scope=None, update=True):
|
||||
|
||||
if self.locked and (self.target is not None):
|
||||
return
|
||||
|
||||
if self._args.prefix is None:
|
||||
prefix = ""
|
||||
if self._duplicatable:
|
||||
prefix = self.style.prefix
|
||||
else:
|
||||
prefix = ""
|
||||
else:
|
||||
prefix = self._args.prefix
|
||||
|
||||
@@ -675,6 +686,7 @@ class DynamicImage(renpy.display.core.Displayable):
|
||||
|
||||
rv = self._copy(args)
|
||||
rv.target = None
|
||||
rv.raw_target = None
|
||||
# This does not set _duplicatable, since it should always remain the
|
||||
# same.
|
||||
return rv
|
||||
|
||||
@@ -196,6 +196,7 @@ cdef class GLDraw:
|
||||
self.did_init = False
|
||||
|
||||
if renpy.windows and (self.old_fullscreen is not None):
|
||||
renpy.display.interface.kill_textures_and_surfaces()
|
||||
pygame.display.quit()
|
||||
|
||||
pygame.display.init()
|
||||
@@ -930,6 +931,9 @@ cdef class GLDraw:
|
||||
p /= 2
|
||||
pc = self.get_half(pc)
|
||||
|
||||
elif rend.operation == FLATTEN:
|
||||
child.render_to_texture(True)
|
||||
|
||||
if render_what:
|
||||
what.render_to_texture(True)
|
||||
|
||||
|
||||
@@ -95,17 +95,19 @@ class FboRtt(Rtt):
|
||||
to render the texture.
|
||||
"""
|
||||
|
||||
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fbo)
|
||||
try:
|
||||
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fbo)
|
||||
|
||||
environ.viewport(0, 0, w, h)
|
||||
environ.ortho(x, x + w, y, y + h, -1, 1)
|
||||
environ.viewport(0, 0, w, h)
|
||||
environ.ortho(x, x + w, y, y + h, -1, 1)
|
||||
|
||||
draw_func(x, y, w, h)
|
||||
draw_func(x, y, w, h)
|
||||
|
||||
glBindTexture(GL_TEXTURE_2D, texture)
|
||||
glCopyTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 0, 0, w, h, 0)
|
||||
glBindTexture(GL_TEXTURE_2D, texture)
|
||||
glCopyTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 0, 0, w, h, 0)
|
||||
|
||||
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, root_fbo)
|
||||
finally:
|
||||
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, root_fbo)
|
||||
|
||||
|
||||
def get_size_limit(self, dimension):
|
||||
|
||||
+3
-3
@@ -275,7 +275,7 @@ def image_exists(name, expression, tag, precise=True):
|
||||
if image_exists_precise(name):
|
||||
return
|
||||
|
||||
report("'{}' is not an image.".format(" ".join(name)) )
|
||||
report("'%s' is not an image.", " ".join(name))
|
||||
|
||||
|
||||
# Only check each file once.
|
||||
@@ -617,8 +617,8 @@ def check_label(node):
|
||||
def check_screen(node):
|
||||
|
||||
if (node.screen.parameters is None) and renpy.config.lint_screens_without_parameters:
|
||||
report("The screen {} has not been given a parameter list.".format(node.screen.name))
|
||||
add("This can be fixed by writing 'screen {}():' instead.".format(node.screen.name))
|
||||
report("The screen %s has not been given a parameter list.", node.screen.name)
|
||||
add("This can be fixed by writing 'screen %s():' instead.", node.screen.name)
|
||||
|
||||
|
||||
def check_styles():
|
||||
|
||||
@@ -523,6 +523,8 @@ def register_sl_displayable(*args, **kwargs):
|
||||
for i in all_statements:
|
||||
rv.add(i)
|
||||
|
||||
rv.add(if_statement)
|
||||
|
||||
return rv
|
||||
|
||||
|
||||
@@ -945,6 +947,8 @@ class CustomParser(Parser):
|
||||
for i in all_statements:
|
||||
self.add(i)
|
||||
|
||||
self.add(if_statement)
|
||||
|
||||
global parser
|
||||
parser = None
|
||||
|
||||
|
||||
@@ -2,6 +2,36 @@
|
||||
Full Changelog
|
||||
==============
|
||||
|
||||
.. _renpy-7.3.4:
|
||||
|
||||
7.3.4
|
||||
=====
|
||||
|
||||
Fixes
|
||||
-----
|
||||
|
||||
This release fixes major graphics glitches that were introduced in 7.3.3.
|
||||
|
||||
* On Windows, textures would fail to be reloaded when switching from fullscreen
|
||||
to windowed mode or vice-versa. This would cause the wrong texture to be
|
||||
displayed.
|
||||
* On all platforms, graphical glitches could occur when :func:`Flatten`
|
||||
was used.
|
||||
|
||||
Other Changes
|
||||
-------------
|
||||
|
||||
Dynamic images can now include "[prefix_]" everywhere, and especially when
|
||||
``add`` has been used to add a dynamic image to buttons, drags, and similar
|
||||
focusable objects.
|
||||
|
||||
Creator-defined screen language statements may now take ``if``
|
||||
statements as children.
|
||||
|
||||
The drag and drop system has been improved to better interact with updated
|
||||
screens.
|
||||
|
||||
|
||||
.. _renpy-7.3.3:
|
||||
|
||||
7.3.3
|
||||
@@ -315,7 +345,7 @@ take a zorder argument.
|
||||
Ren'Py will now play a mono sound file with the same volume as a stereo
|
||||
sound file, rather than sending half the energy to each ear.
|
||||
|
||||
The new :func:`config.load_failed_label` specifies a label that is jumped
|
||||
The new :var:`config.load_failed_label` specifies a label that is jumped
|
||||
to when a load fails because Ren'Py can no longer find the current statement.
|
||||
This makes it possible to a game to implement its own recovery mechanism.
|
||||
|
||||
|
||||
+10
-10
@@ -168,7 +168,7 @@ These control transitions between various screens.
|
||||
This should be a function that takes four arguments, the image tag
|
||||
being shown, a `mode` parameter, a `set` containing pre-transition tags
|
||||
and a `set` containing post-transition tags. Where the value of the
|
||||
`mode` paramater is one of:
|
||||
`mode` parameter is one of:
|
||||
|
||||
* "permanent", for permanent attribute change (one that lasts longer
|
||||
than the current say statement).
|
||||
@@ -179,7 +179,7 @@ These control transitions between various screens.
|
||||
part is restored at the end of the current say statement).
|
||||
* "restore", for when a temporary (or both) change is being restored.
|
||||
|
||||
This should return a 2-component tuple, consiting of:
|
||||
This should return a 2-component tuple, consisting of:
|
||||
|
||||
* The transition to use, or None if no transition should occur.
|
||||
* The layer the transition should be on, either a string or None. This is
|
||||
@@ -316,7 +316,7 @@ Occasionally Used
|
||||
|
||||
.. var:: config.context_callback = None
|
||||
|
||||
This is a callback that is called when Ren'Py enteres a new context,
|
||||
This is a callback that is called when Ren'Py enters a new context,
|
||||
such as a menu context.
|
||||
|
||||
.. var:: config.context_copy_remove_screens = [ 'notify' ]
|
||||
@@ -353,7 +353,7 @@ Occasionally Used
|
||||
|
||||
.. var:: config.default_tag_layer = "master"
|
||||
|
||||
The layer an image is show on if its tag is not found in config.tag_layer.
|
||||
The layer an image is shown on if its tag is not found in config.tag_layer.
|
||||
|
||||
.. var:: config.default_transform = ...
|
||||
|
||||
@@ -361,7 +361,7 @@ Occasionally Used
|
||||
the transform properties are taken from this transform and used to
|
||||
initialize the values of the displayable's transform.
|
||||
|
||||
The default default transform is :var:`center`.
|
||||
The default transform is :var:`center`.
|
||||
|
||||
.. var:: config.defer_styles = False
|
||||
|
||||
@@ -578,7 +578,7 @@ Occasionally Used
|
||||
|
||||
A function that determines the language the game should use,
|
||||
based on the the user's locale.
|
||||
It takes 2 arguments strings that give the the ISO code of the locale
|
||||
It takes 2 string arguments that give the ISO code of the locale
|
||||
and the ISO code of the region.
|
||||
|
||||
It should return a string giving the name of a translation to use, or
|
||||
@@ -786,7 +786,7 @@ Occasionally Used
|
||||
|
||||
If not None, this should be a function that takes the speaking character,
|
||||
followed by positional and keyword arguments. It's called whenever a
|
||||
say statement occurs with the arguments to that say statment. This
|
||||
say statement occurs with the arguments to that say statement. This
|
||||
always includes an interact argument, and can include others provided
|
||||
in the say statement.
|
||||
|
||||
@@ -1195,7 +1195,7 @@ Rarely or Internally Used
|
||||
|
||||
.. var:: config.longpress_duration = 0.5
|
||||
|
||||
The amount of time the player must press the screen for for a longpress
|
||||
The amount of time the player must press the screen for a longpress
|
||||
to be recognized on a touch device.
|
||||
|
||||
.. var:: config.longpress_radius = 15
|
||||
@@ -1325,7 +1325,7 @@ Rarely or Internally Used
|
||||
|
||||
.. var:: config.rollback_side_size = .2
|
||||
|
||||
If the rollback side is enabled, the fraction of of the screen on the
|
||||
If the rollback side is enabled, the fraction of the screen on the
|
||||
rollback side that, when clicked or touched, causes a rollback to
|
||||
occur.
|
||||
|
||||
@@ -1557,5 +1557,5 @@ Ren'Py management of the Python garbage collector.
|
||||
|
||||
.. var:: config.gc_print_unreachable = False
|
||||
|
||||
If True, Ren'Py will print to its console and logs informaton about the
|
||||
If True, Ren'Py will print to its console and logs information about the
|
||||
objects that are triggering collections.
|
||||
|
||||
@@ -38,6 +38,9 @@ string is given, a dynamic image is created. A dynamic image has
|
||||
of each interaction (such as say statements and menus). The resulting
|
||||
string is processed according to the rules above.
|
||||
|
||||
When a string has "[prefix_"] in it, that iso replaced with each of the
|
||||
style prefixes associated with the current displayable.
|
||||
|
||||
.. _images:
|
||||
|
||||
Images
|
||||
@@ -241,7 +244,7 @@ images as appropriate. Placeholders are used automatically when an undefined
|
||||
image is used in developer mode. Placeholder displayables can also be used
|
||||
manually when the defaults are inappropriate. ::
|
||||
|
||||
# By default, the girl placeholer will be used.
|
||||
# By default, the girl placeholder will be used.
|
||||
image sue = Placeholder("boy")
|
||||
|
||||
label start:
|
||||
|
||||
Reference in New Issue
Block a user