Hello everyone,
I'm a beginner programmer who is working on a small plugin for MediaPortal. The plugin allows you to play the game 'memory'. ( find a pair of matching cards.) I have worked through 'tutorial 1' and implemented the game logic. The list of cards are implemented with a thumbnailpanel. I have a small question concerning this plugin.
When a user selects his second card I want the image to be shown for a few seconds. Afterwards the cardimage should go back to a questionmark (when the user selected two different images) or disappear ( when the user selects two times the same image)
How can I implement this pause? At the moment I do the following:
I set the IconImageBig of the card to the correct image(image A), I let the thread sleep and then set the IconImageBig of the card back to the questionmark or to a blank image. This does not seem to work. The first
image A is never shown. Can I force the thumbnailpanel to update? (there is a DoUpdate()-procedure but that does not seem to do work).
Thanks in advance for any help
I'm a beginner programmer who is working on a small plugin for MediaPortal. The plugin allows you to play the game 'memory'. ( find a pair of matching cards.) I have worked through 'tutorial 1' and implemented the game logic. The list of cards are implemented with a thumbnailpanel. I have a small question concerning this plugin.
When a user selects his second card I want the image to be shown for a few seconds. Afterwards the cardimage should go back to a questionmark (when the user selected two different images) or disappear ( when the user selects two times the same image)
How can I implement this pause? At the moment I do the following:
I set the IconImageBig of the card to the correct image(image A), I let the thread sleep and then set the IconImageBig of the card back to the questionmark or to a blank image. This does not seem to work. The first
image A is never shown. Can I force the thumbnailpanel to update? (there is a DoUpdate()-procedure but that does not seem to do work).
Thanks in advance for any help