nvm, just remove captions gallery

This commit is contained in:
2022-12-29 14:17:44 -06:00
parent 57ee492319
commit d291020ca6
10 changed files with 253 additions and 496 deletions

View File

@@ -109,9 +109,7 @@ init 2 python:
#CACHE_PATH = config.basedir.replace("\\","/") + "/game/cache/"
FILENAME = os.path.join(config.basedir, 'game/src/gallery_dataset.json')
#CACHE_PATH = config.basedir.replace("\\","/") + "/game/cache/"
fp = renpy.open_file('src/gallery_dataset_en.json')
if _preferences.language == 'es':
fp = renpy.open_file('src/gallery_dataset_es.json')
fp = renpy.open_file('src/gallery_dataset.json')
data = json.load(fp)
list_img = renpy.list_images()
@@ -129,12 +127,8 @@ init 2 python:
if 'items' in x.keys():
for y in x['items']:
#'name' is the renpy image that is detected as marked-as-seen
#'image' is the displayable to be displayed in the gallery
#'image_name' is the caption string to be displayed.
name = y["name"]
cg = y["image"]
img_name = y["image_name"]
rcg = renpy.get_registered_image(cg)
@@ -143,7 +137,6 @@ init 2 python:
item = {
"item": name,
"image_name": img_name,
"fn": rcg,
"cg": cg_(rcg, None, image_dimensions[0]),
"ext": None,
@@ -161,31 +154,27 @@ init 2 python:
if renpy.loadable(_str): #brute force
add_(str, _str, ext, tab_name) #cp['name'])
webm_rcg = Fixed(Color("#000"), Text("Fang", size=280, xalign=0.5, yalign=0.5), xsize=1920)
renpy.seen_label('fang_movie')
gallery_dic['Animations'] = [{
"item": 'fang tail',
"image_name": _("Fang's Tail"),
"fn": 'images/animations/fang tail.webm',
"cg": cg_('images/backgrounds/garden.png', 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.
#print(data)
pass
jsonloadandpop()
last_lang = _preferences.language
# hard code the webm because renpy is really dumb and doesn't add Movies properly until much later
fang_webm = 'fang thumb'
webm_rcg = Fixed(Color("#000"), Text("Fang", size=280, xalign=0.5, yalign=0.5), xsize=1920)
renpy.seen_label('fang_movie')
gallery_dic['Animations'] = [{
"item": 'fang tail',
"fn": 'images/animations/fang tail.webm',
"cg": 'images/animations/fang tail thumbnail.png',
"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.
pass
python:
current_lang = _preferences.language
if current_lang != last_lang:
jsonloadandpop()
last_lang = _preferences.language
"""
'Recursive' / Loopable / Roundtrip Screens
@@ -312,15 +301,13 @@ screen flag_button(item, 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)
xcenter 0.5 ycenter 0.5
padding (1,0,1,2)
vbox:
text item["image_name"] xalign 0.5
yminimum PREFERRED_HEIGHT xminimum PREFERRED_WIDTH
add item["cg"] fit 'contain' xcenter 0.5 ycenter 0.5 size (PREFERRED_WIDTH, PREFERRED_HEIGHT)
else:
vbox:
ymaximum PREFERRED_HEIGHT
xcenter 0.5 ycenter 0.5
text "? ? ?" xalign 0.5
add NOT_UNLOCKED_COVER