change comments in cg_gallery to a proper comment

This commit is contained in:
Map 2024-10-05 08:54:14 -05:00
parent ffccaff704
commit fa2bf7e4a9

View file

@ -13,12 +13,10 @@ init 2 python:
CG_PATHS = [] CG_PATHS = []
#path: folder, name: shows up in gallery, eval: runs eval() on string #path: folder, name: shows up in gallery, eval: runs eval() on string
""" # Data structure that holds the data for each cg and button
Data structure that holds the data for each cg and button # item is name, cg is the image definition
item is name, cg is the image definition # { item: str; cg: Displayable; }
{ item: str; cg: Displayable; } # (reference in this init python, actually used in screens)
(reference in this init python, actually used in screens)
"""
gallery_dic = {} gallery_dic = {}
@ -89,10 +87,10 @@ init 2 python:
# Bullshit for the scrollbar to reset back to the beggining. Bless the renpy Discord :pray: # Bullshit for the scrollbar to reset back to the beggining. Bless the renpy Discord :pray:
default adjust = ui.adjustment() default adjust = ui.adjustment()
"""
CG Gallery screen - A screen that shows the image gallery # CG Gallery screen - A screen that shows the image gallery
Built-in Gallery Object has terrible defaults, so I just wrote my own stuff # Built-in Gallery Object has terrible defaults, so I just wrote my own stuff
"""
screen cg_gallery(origin = 'CG'): screen cg_gallery(origin = 'CG'):
if main_menu: if main_menu:
@ -162,9 +160,8 @@ screen cg_gallery(origin = 'CG'):
for i in range(0, empty_spaces): for i in range(0, empty_spaces):
null height 20 null height 20
"""
if/else flow control & extra parameters for Buttons # if/else flow control & extra parameters for Buttons
"""
screen flag_button(item, origin): screen flag_button(item, origin):
$ flag = renpy.seen_image(item['item']) $ flag = renpy.seen_image(item['item'])
@ -200,9 +197,8 @@ screen view_movie(item, _origin):
[ "Return", _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): screen view_image(item, _origin):
tag menu tag menu
key "game_menu" action (Hide('view_image'), _origin) key "game_menu" action (Hide('view_image'), _origin)