From fa2bf7e4a9a9f0ded2f556a16eae9a5ad7786a79 Mon Sep 17 00:00:00 2001 From: Map Date: Sat, 5 Oct 2024 08:54:14 -0500 Subject: [PATCH] change comments in cg_gallery to a proper comment --- game/src/cg_gallery.rpy | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/game/src/cg_gallery.rpy b/game/src/cg_gallery.rpy index b649ada..2b3003e 100644 --- a/game/src/cg_gallery.rpy +++ b/game/src/cg_gallery.rpy @@ -13,12 +13,10 @@ init 2 python: CG_PATHS = [] #path: folder, name: shows up in gallery, eval: runs eval() on string - """ - Data structure that holds the data for each cg and button - item is name, cg is the image definition - { item: str; cg: Displayable; } - (reference in this init python, actually used in screens) - """ + # Data structure that holds the data for each cg and button + # item is name, cg is the image definition + # { item: str; cg: Displayable; } + # (reference in this init python, actually used in screens) gallery_dic = {} @@ -89,10 +87,10 @@ init 2 python: # Bullshit for the scrollbar to reset back to the beggining. Bless the renpy Discord :pray: default adjust = ui.adjustment() -""" -CG Gallery screen - A screen that shows the image gallery -Built-in Gallery Object has terrible defaults, so I just wrote my own stuff -""" + +# CG Gallery screen - A screen that shows the image gallery +# Built-in Gallery Object has terrible defaults, so I just wrote my own stuff + screen cg_gallery(origin = 'CG'): if main_menu: @@ -162,9 +160,8 @@ screen cg_gallery(origin = 'CG'): for i in range(0, empty_spaces): null height 20 -""" -if/else flow control & extra parameters for Buttons -""" + +# if/else flow control & extra parameters for Buttons screen flag_button(item, origin): $ flag = renpy.seen_image(item['item']) @@ -200,9 +197,8 @@ screen view_movie(item, _origin): [ "Return", _origin ] ] ) -""" -view_image, Loads the image in fullscreen with viewport control. -""" + +# view_image, Loads the image in fullscreen with viewport control. screen view_image(item, _origin): tag menu key "game_menu" action (Hide('view_image'), _origin)