Oops... sorry I missed this!
You can do this without separately defining the buttons, but the easiest way to do it would be to add a description to each item in the list of gallery images, and not use auto import.
So you'd want something like:
("eileen asleep", "images/cg/eileen_asleep.png", _("Eileen falls asleep after a nice date")),
And then update the processing on line 255:
allimgs.append((itm[0], bobcgallery_get_thumb(itm[1]), itm[1], itm[-1]))
if len(itm) > 3:
variantmap[itm[0]] = itm[1:-1]
And then add the tooltip to the screen buttons (line 104):
for name, thm, img, desc in BOBCGALLERY_IMAGE_SETS[pagenum]:
if name in persistent.bobcgallery_unlocked:
if name in BOBCGALLERY_VARIANT_MAP:
fixed:
xysize (BOBCGALLERY_THUMB_XMAXIMUM, BOBCGALLERY_THUMB_YMAXIMUM)
imagebutton idle thm at bobcgallery_thumb action Show("bobcgallery_showcg", imgname=name, idx=0, transition=BOBCGALLERY_TRANSITION) tooltip desc
if BOBCGALLERY_VARIANT_ICON:
add "bobcgallery_variant_icon" xalign 0.95 yalign 0.95
else:
imagebutton idle thm at bobcgallery_thumb action Show("bobcgallery_showcg", imgname=name, transition=BOBCGALLERY_TRANSITION)
You'd also need to actually show the tooltip text with something like a NearRect and GetTooltip(), since adding the tooltip just makes the text available to GetTooltip().
(You may need to make further changes to the auto-import functionality, or remove that portion of the code.)
If you're having trouble with this, I can take a stab at it.