home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My Emulators
(Old) My Emulators
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ajp8164" data-source="post: 340936" data-attributes="member: 64375"><p><strong>Game images decorated with favourite icon!</strong></p><p></p><p>Hi Chreekar (and all),</p><p></p><p>In my last post (<a href="https://forum.team-mediaportal.com/my-emulators-247/my-emulators-12771/index57.html#post339823" target="_blank">https://forum.team-mediaportal.com/my-emulators-247/my-emulators-12771/index57.html#post339823</a>) I added a few features to the presentation capabilities of MyEmulators and noted that I would like to have the game images decorated to indicate whether they were favourite or not. I decided to tackle this challenge and have created a first version for this capability. See the attached screenshots for an example using the StreamedMP skin.</p><p></p><p>To enable this feature you will need to:</p><p></p><p>1.) Visit the MyEmulators configuration panel and check a new checkbox labeled "Decorate"...</p><p>2.) Create or designate an existing image to use as your "favourite decoration". Name the image "favourite.png" and place it in the skins Media directory. I just reused an existing star image.</p><p></p><p>That's it! You do not need to make any changes to your skin xml file.</p><p></p><p>I also updated this source code drop to fix the games images location; <strong>you must place your game images under a sub-directory of the games directory named for your emulator, for example thumbs/MyEmulators/games/MAME)</strong>.</p><p></p><p>The plugin does all the hard work <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /> It creates two new directories in the directory where the game images are stored: /favourites and /insets. These directories are really just a cache used to hold decorated (in /favourites) and undecorated (in /insets) images. Having both directories allows for uniform sizing of the game images when the decoration feature is enabled.</p><p></p><p>The first time you navigate from the emulators page to a games page after enabling the decoration feature MP may look like it has stalled - the gui will be frozen while the plugin creates images and stores them in the /favourites and /insets directory. If you hundreds or thousands of games you will have to be patient and wait for it to complete. It would be nice to pre-cache these images or even have a progress bar but I have not addressed doing either :sorry: This is a one time, first time operation so you should be able to live through it <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>Chreekar - Unless you have made significant code changes you may want to consider replacing your source base with this copy (if you like the changes etc...) I made numerous edits to multiple classes and added a new class (ImageUtils). I did move forward your correction to fix the game image path as noted above.</p><p></p><p>I have attached the source code and the StreamedMP xml file (unchanged from last post).</p><p></p><p>Hope you guys like this! I had fun working on it!</p><p></p><p>-Andy</p></blockquote><p></p>
[QUOTE="ajp8164, post: 340936, member: 64375"] [b]Game images decorated with favourite icon![/b] Hi Chreekar (and all), In my last post ([url]https://forum.team-mediaportal.com/my-emulators-247/my-emulators-12771/index57.html#post339823[/url]) I added a few features to the presentation capabilities of MyEmulators and noted that I would like to have the game images decorated to indicate whether they were favourite or not. I decided to tackle this challenge and have created a first version for this capability. See the attached screenshots for an example using the StreamedMP skin. To enable this feature you will need to: 1.) Visit the MyEmulators configuration panel and check a new checkbox labeled "Decorate"... 2.) Create or designate an existing image to use as your "favourite decoration". Name the image "favourite.png" and place it in the skins Media directory. I just reused an existing star image. That's it! You do not need to make any changes to your skin xml file. I also updated this source code drop to fix the games images location; [B]you must place your game images under a sub-directory of the games directory named for your emulator, for example thumbs/MyEmulators/games/MAME)[/B]. The plugin does all the hard work :D It creates two new directories in the directory where the game images are stored: /favourites and /insets. These directories are really just a cache used to hold decorated (in /favourites) and undecorated (in /insets) images. Having both directories allows for uniform sizing of the game images when the decoration feature is enabled. The first time you navigate from the emulators page to a games page after enabling the decoration feature MP may look like it has stalled - the gui will be frozen while the plugin creates images and stores them in the /favourites and /insets directory. If you hundreds or thousands of games you will have to be patient and wait for it to complete. It would be nice to pre-cache these images or even have a progress bar but I have not addressed doing either :sorry: This is a one time, first time operation so you should be able to live through it :) Chreekar - Unless you have made significant code changes you may want to consider replacing your source base with this copy (if you like the changes etc...) I made numerous edits to multiple classes and added a new class (ImageUtils). I did move forward your correction to fix the game image path as noted above. I have attached the source code and the StreamedMP xml file (unchanged from last post). Hope you guys like this! I had fun working on it! -Andy [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My Emulators
(Old) My Emulators
Contact us
RSS
Top
Bottom