Implement kinetic text option toggle
This commit is contained in:
parent
1d3a12f0f6
commit
d6cc3265ec
@ -47,6 +47,8 @@ init python:
|
||||
@renpy.pure
|
||||
def text_tag_hearts(tag, argument):
|
||||
"""Insert multiple unicode heart symbols. Usage {hearts}"""
|
||||
if not settings.get("kinetictext"):
|
||||
return [(renpy.TEXT_DISPLAYABLE, At(Text("{unicode}❤{/unicode}", style="what", xsize=24, ysize=24), heart_text))]
|
||||
return [(renpy.TEXT_DISPLAYABLE, Transform("text_tag_hearts_image"))]
|
||||
|
||||
@renpy.pure
|
||||
@ -58,6 +60,9 @@ init python:
|
||||
|
||||
@renpy.pure
|
||||
def text_tag_wave(tag, argument, contents):
|
||||
if not settings.get("kinetictext"):
|
||||
return contents
|
||||
|
||||
rv = []
|
||||
kwargs = convert_tags_to_kwargs(contents)
|
||||
for kind, text in contents:
|
||||
@ -73,6 +78,9 @@ init python:
|
||||
|
||||
@renpy.pure
|
||||
def text_tag_bounce(tag, argument, contents):
|
||||
if not settings.get("kinetictext"):
|
||||
return contents
|
||||
|
||||
rv = []
|
||||
kwargs = convert_tags_to_kwargs(contents)
|
||||
for kind, text in contents:
|
||||
@ -88,6 +96,9 @@ init python:
|
||||
|
||||
@renpy.pure
|
||||
def text_tag_shake(tag, argument, contents):
|
||||
if not settings.get("kinetictext"):
|
||||
return contents
|
||||
|
||||
rv = []
|
||||
kwargs = convert_tags_to_kwargs(contents)
|
||||
for kind, text in contents:
|
||||
@ -101,6 +112,9 @@ init python:
|
||||
|
||||
@renpy.pure
|
||||
def text_tag_pulse(tag, argument, contents):
|
||||
if not settings.get("kinetictext"):
|
||||
return contents
|
||||
|
||||
rv = []
|
||||
kwargs = convert_tags_to_kwargs(contents)
|
||||
for kind, text in contents:
|
||||
@ -113,6 +127,9 @@ init python:
|
||||
|
||||
@renpy.pure
|
||||
def text_tag_shudder(tag, argument, contents):
|
||||
if not settings.get("kinetictext"):
|
||||
return contents
|
||||
|
||||
rv = []
|
||||
kwargs = convert_tags_to_kwargs(contents)
|
||||
for kind, text in contents:
|
||||
@ -125,6 +142,9 @@ init python:
|
||||
|
||||
@renpy.pure
|
||||
def text_tag_flip(tag, argument, contents):
|
||||
if not settings.get("kinetictext"):
|
||||
return contents
|
||||
|
||||
rv = []
|
||||
kwargs = convert_tags_to_kwargs(contents)
|
||||
for kind, text in contents:
|
||||
@ -137,6 +157,9 @@ init python:
|
||||
|
||||
@renpy.pure
|
||||
def text_tag_rotate(tag, argument, contents):
|
||||
if not settings.get("kinetictext"):
|
||||
return contents
|
||||
|
||||
rv = []
|
||||
kwargs = convert_tags_to_kwargs(contents)
|
||||
for kind, text in contents:
|
||||
@ -161,6 +184,9 @@ init python:
|
||||
return 0.01
|
||||
|
||||
def text_shake_func(trans, st, at):
|
||||
if not settings.get("kinetictext"):
|
||||
return contents
|
||||
|
||||
trans.xoffset = absolute(renpy.random.randint(-1, 1))
|
||||
trans.yoffset = absolute(renpy.random.randint(-1, 1))
|
||||
return 0.02
|
||||
|
Loading…
Reference in New Issue
Block a user