what im trying to emulate is something like the whatsapp homepage just to give you an idea
each contact, will have an image a name and an action , the action is obviously what it does when you click it, and wont be shown.
all these 3 must be linked to a element in a list, so everytime i append a new element to a list it duplicates it but with different image name and action
let me try to do an example
Code: Select all
$ contacts_unlocked = ["Joel",]
Code: Select all
screen contacts():
imagebutton:
idle "/images/Screen resources/Navigation/contact_layout.png"
action Jump("conversation with" ----------------Joel---------------) focus_mask True
add "/images/Screen resource/Profile pictures/-----------Joel-------------.png"
Code: Select all
contacts_unlocked.append("Michael")
Code: Select all
imagebutton:
idle "/images/Screen resources/Navigation/contact_layout.png"
action Jump("conversation with" -------------Michael-------------) focus_mask True
add "/images/Screen resource/Profile pictures/-----------Michael----------[/color].png"
if you have no idea what im talking about, knowing how to plug the string element from a list in the image path and in the imagebutton action is equally helpful.
once im done with the whole cellphone i will try to share it for the whole community, not only this part but the whole thing!!