diff --git a/game/script/5.fang-and-anon-cut-class-to-talk-on-the-roof.rpy b/game/script/5.fang-and-anon-cut-class-to-talk-on-the-roof.rpy index 549f7b0..4245468 100644 --- a/game/script/5.fang-and-anon-cut-class-to-talk-on-the-roof.rpy +++ b/game/script/5.fang-and-anon-cut-class-to-talk-on-the-roof.rpy @@ -2547,3 +2547,7 @@ label chapter_5: "..." return + +label fang_movie: + scene fang tail with fade + "" diff --git a/game/src/cg_gallery.rpy b/game/src/cg_gallery.rpy index cbbf960..6608fc5 100644 --- a/game/src/cg_gallery.rpy +++ b/game/src/cg_gallery.rpy @@ -1,4 +1,5 @@ init python: + # CONST PARAMS GALLERY_COLS = 3 PREFERRED_WIDTH = 432 #px (1920 * 0.225) @@ -46,12 +47,14 @@ init python: list_img = renpy.list_images() +#if ext is "webm": # Add each image to the gallery for str in list_img: for cp in CG_PATHS: for ext in ACCEPTED_EXTENSIONS: path = cp['path'] _str = path+str+"."+ext + if renpy.loadable(_str): #brute force image = renpy.image_size(Image(_str)) @@ -67,6 +70,16 @@ init python: # Call to loading the gallery loadGallery() + # hard code the webm because renpy is really dumb and doesn't add Movies properly until much later + fang_webm = 'images/animations/fang tail.webm' + gallery_dic['Animations'] = [{ + "item": 'fang tail', + "fn": fang_webm, + "cg": Movie(fang_webm),#cg(_str, 'webm', 1920), + "ext": 'webm', + "wh": [1920, 1080] + }] + #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] @@ -195,7 +208,10 @@ screen flag_button(item, yoffset, origin): if flag: button: - action ShowMenu('view_image_a', item, ShowMenu('cg_gallery_0', yoffset, origin)) + if item['ext'] == "webm": + action Replay('fang_movie')#ShowMenu('view_movie', item, ShowMenu('cg_gallery_0', yoffset, origin)) + else: + action ShowMenu('view_image_a', item, ShowMenu('cg_gallery_0', yoffset, origin)) xcenter 0.5 ycenter 0.5 padding (1,0,1,2) vbox: @@ -209,6 +225,16 @@ screen flag_button(item, yoffset, origin): add NOT_UNLOCKED_COVER +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 + + """ view_image, Loads the image in fullscreen with viewport control. """