Fixes #181 | Makes fang tail playable #198

Merged
MapAnon merged 1 commits from Legalo/SnootGame:Gal-video-fix into Patch8 2022-11-16 21:02:18 +00:00
1 changed files with 7 additions and 9 deletions

View File

@ -103,11 +103,12 @@ init 2 python:
renpy.seen_label('fang_movie') renpy.seen_label('fang_movie')
gallery_dic['Animations'] = [{ gallery_dic['Animations'] = [{
"item": 'fang tail', "item": 'fang tail',
"fn": 'fang tail', "fn": 'images/animations/fang tail.webm',
"cg": cg_('images/backgrounds/garden.jpg', None, 1920), "cg": cg_('images/backgrounds/garden.jpg', None, 1920),
"ext": 'webm', "ext": 'webm',
"wh": [1920, 1080] "wh": [1920, 1080]
}] }]
renpy.image("fang tail", Movie(loop=True,play='images/animations/fang tail.webm')) # Since we are hard-coding might as well.
#for zooming in and out #for zooming in and out
zoom_arr = [0.25, 0.375, 0.5, 0.625, 0.75, 0.875, 1.0, 1.125, 1.25, 1.5, 1.75, 2.0] zoom_arr = [0.25, 0.375, 0.5, 0.625, 0.75, 0.875, 1.0, 1.125, 1.25, 1.5, 1.75, 2.0]
@ -304,7 +305,8 @@ screen flag_button(item, yoffset, origin):
if flag: if flag:
button: button:
if item['ext'] == "webm": if item['ext'] == "webm":
action Replay('fang_movie')#ShowMenu('view_movie', item, ShowMenu('cg_gallery_0', yoffset, origin)) #action Replay('fang_movie')
action ShowMenu('view_movie', item, ShowMenu('cg_gallery_0', yoffset, origin))
else: else:
action ShowMenu('view_image_a', item, ShowMenu('cg_gallery_0', yoffset, origin)) action ShowMenu('view_image_a', item, ShowMenu('cg_gallery_0', yoffset, origin))
#action Show('view_image', None, item, ShowMenu('cg_gallery_0', yoffset, origin), _zorder=1) #action Show('view_image', None, item, ShowMenu('cg_gallery_0', yoffset, origin), _zorder=1)
@ -324,13 +326,9 @@ screen flag_button(item, yoffset, origin):
screen view_movie(item, _origin): screen view_movie(item, _origin):
tag menu tag menu
key "game_menu" action _origin key "game_menu" action [Hide('view_movie'), _origin ]
python: key "button_alternate" action [Hide('view_movie'), _origin ]
renpy.movie_cutscene(item['item'], None, -1) add item['item']
frame:
pass
#scene fang tail with fade
""" """
view_image, Loads the image in fullscreen with viewport control. view_image, Loads the image in fullscreen with viewport control.