Hallo zusammen,
bin relativ neu in der Coding-Welt und habe wie im Titel bereits gesagt, Probleme dabei einen Text zu meinem Bild hinzuzufügen.
Der Text sollte auftauchen, wenn ich auf das Bild klicke.
Das ist mein gallery_setup Code:
init python:
class GalleryItem:
def __init__(self, name, images, locked="locked"):
self.name = name
self.images = images
self.locked = locked
self.refresh_lock()
def refresh_lock(self):
self.num_unlocked = 0
lockme = False
for img in self.images:
if not renpy.seen_image(img):
lockme = True
else:
self.num_unlocked += 1
self.is_locked = lockme
gallery_items = []
gallery_items.append(GalleryItem("Stacy - What if", ["img1"] ))
#gallery background
image gray = "#777"
#gallery images
image img1 = ("images/karten/tanz.png")
_____________________________________________________________________
Da ich wie gesagt, noch kaum Erfahrung beim Coding habe, hoffe ich, dass dies das richtige Script ist. Ich habe noch ein "Gallery" Script, dass ich nicht verstehe, und bei dem ich aber auch nicht glaube, dass ich dort was im Code ändern muss. Vielleicht im "Screen"Script dachte ich mir noch, wenn ja betroffene Stelle wäre das:
textbutton _("Load") action ShowMenu("load")
textbutton _("Gallery") action ShowMenu("gallery_B")
textbutton _("Preferences") action ShowMenu("preferences")
_________________________________________________________
tut mir leid, falls das Mau ist, aber ich weiß nicht, was sonst noch nützlich sein könnte, abgesehen von den angehängten Bildern noch.
vielen dank im voraus