Merge pull request 'Fixes #181 | Makes fang tail playable' (#198) from Gmanon/SnootGame:Gal-video-fix into Patch8

Reviewed-on: https://git.snootgame.xyz/Cavemanon/SnootGame/pulls/198
This commit is contained in:
Mappening 2022-11-16 21:02:15 +00:00
commit a0acc625bf
1 changed files with 7 additions and 9 deletions

View File

@ -103,11 +103,12 @@ init 2 python:
renpy.seen_label('fang_movie')
gallery_dic['Animations'] = [{
"item": 'fang tail',
"fn": 'fang tail',
"fn": 'images/animations/fang tail.webm',
"cg": cg_('images/backgrounds/garden.jpg', None, 1920),
"ext": 'webm',
"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
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:
button:
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:
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)
@ -324,13 +326,9 @@ screen flag_button(item, yoffset, origin):
screen view_movie(item, _origin):
tag menu
key "game_menu" action _origin
python:
renpy.movie_cutscene(item['item'], None, -1)
frame:
pass
#scene fang tail with fade
key "game_menu" action [Hide('view_movie'), _origin ]
key "button_alternate" action [Hide('view_movie'), _origin ]
add item['item']
"""
view_image, Loads the image in fullscreen with viewport control.