Build Your Own Arcade Controls Forum
Front End Support => MaLa Frontend => Topic started by: tapule on January 28, 2011, 06:46:35 am
-
How can I use images in a tree menu instead of text?
I have my mala tree working and I can show the Snaps images for the menu items but I can't use this images for the menu items.
What I need is a first menu where I can choose the system before my lists. My tree is like this:
Main
-- Mame
------ All
------ Classics
-- Nes
------ All
------ Favorites
Etc.
And I wish that every entry in the main menu was a image.
Is this possible?
-
Answers:
1)
http://forum.arcadecontrols.com/index.php?topic=108512.msg1156411#msg1156411 (http://forum.arcadecontrols.com/index.php?topic=108512.msg1156411#msg1156411)
2)
http://wiki.arcadecontrols.com/wiki/Mala_Tree (http://wiki.arcadecontrols.com/wiki/Mala_Tree)
-
Hi Loadman,
Thank you for you answer but this doesn't work.
As I said, I can see the image for the selected item in the menu, in the Snap object from the layout. But in the menu, the selected item show me the "Default image" as do all other items.
I will try to do a snapshot to show you this.
-
right
So using the screen shot below as an example you don't want the text 'Arcade' you want some Image to represent Arcade but no actually text saying the MaLa Tree Items?
(http://wiki.arcadecontrols.com/w/images/8/8f/Mala_Tree1.JPG)
When you actual get to a game list mala can substitute the text for a screen shot pic or marqee pic or something like that
See below
http://img207.imageshack.us/i/genreselect.png/ (http://img207.imageshack.us/i/genreselect.png/)
-
So using the screen shot below as an example you don't want the text 'Mame' you want some Image to represent Arcade but no actually text saying the MaLa Tree Items?
When you actuall get to a game list mala can subsitute the text for a screenshot pic or marqee pic or something like that
Exactly, but in the menu from a Mala Tree.
Two screenshots:
(http://img526.imageshack.us/img526/7004/item1s.jpg) (http://img526.imageshack.us/i/item1s.jpg/) (http://img641.imageshack.us/img641/7498/item0.jpg) (http://img641.imageshack.us/i/item0.jpg/)
The layout editor
(http://img517.imageshack.us/img517/5573/layoutg.jpg) (http://img517.imageshack.us/i/layoutg.jpg/)
-
OK Well I just tested it and that works. ;D
If you have an image with the same name as the menu item located in the path specified in options-gui-layout-tree menu snaps
Ie. 'All Games.jpg' , Arcade.jpg, Atari 2600.jpg.
-
In what version?
I'm using beta 1.7.9, and with a Tree for tests with a menu like this
menu
-- arcade
-- atari
it doesn't work.
The tree:
(http://img253.imageshack.us/img253/6682/treeh.png) (http://img253.imageshack.us/i/treeh.png/)
My configuration:
(http://img830.imageshack.us/img830/1792/setings.png) (http://img830.imageshack.us/i/setings.png/)
Tests:
** arcade.jpg **
(http://img262.imageshack.us/img262/2733/nosnap.png) (http://img262.imageshack.us/i/nosnap.png/)
** arcade.png **
(http://img262.imageshack.us/img262/2733/nosnap.png) (http://img262.imageshack.us/i/nosnap.png/)
** menu_arcade.jpg **
(http://img256.imageshack.us/img256/1830/snapw.png) (http://img256.imageshack.us/i/snapw.png/)
** menu_arcade.png **
(http://img256.imageshack.us/img256/1830/snapw.png) (http://img256.imageshack.us/i/snapw.png/)
Adicional test:
** Arcade.jpg **
(http://img262.imageshack.us/img262/2733/nosnap.png) (http://img262.imageshack.us/i/nosnap.png/)
** Arcade.png **
(http://img262.imageshack.us/img262/2733/nosnap.png) (http://img262.imageshack.us/i/nosnap.png/)
I don't know what I'm doing wrong
Greetings
-
Edit the layout so it uses test rather than images.
Then make not of these menu names and make sure there is a file name that matches each menu item in the Tree snaps directory.
Probably best to also uncheck the 'Layiout files are located in a folder with the same name as the layout'
(http://img830.imageshack.us/img830/1792/setings.png)
If that does not work let me know and I will make a special MaLa version with extra logging that will show you exactly where mala is looking for files
-
Test 1:
(http://img248.imageshack.us/img248/3775/pantallazoeo.png) (http://img248.imageshack.us/i/pantallazoeo.png/)
(http://img689.imageshack.us/img689/8201/pantallazo1nl.png) (http://img689.imageshack.us/i/pantallazo1nl.png/)
Test 2:
(http://img696.imageshack.us/img696/581/pantallazo3sb.png) (http://img696.imageshack.us/i/pantallazo3sb.png/)
(http://img718.imageshack.us/img718/4949/pantallazo2o.png) (http://img718.imageshack.us/i/pantallazo2o.png/)
Same results with .png files.
-
If that does not work let me know and I will make a special MaLa version with extra logging that will show you exactly where mala is looking for files
Loadman, please, tell me something about this special MaLa
Thanks for your help with my problem.
-
If that does not work let me know and I will make a special MaLa version with extra logging that will show you exactly where mala is looking for files
Loadman, please, tell me something about this special MaLa
Thanks for your help with my problem.
Yup, Will let you know when you can get it ;D
-
Loadman, has any news on this?
Thank you.
-
Loadman, has any news on this?
Thank you.
The latest Mala beta logs (in debug level) will show you where it is looking for files
-
Ok, finally I have it working.
(http://img94.imageshack.us/img94/7526/pantallazovj.png) (http://img94.imageshack.us/i/pantallazovj.png/)
If you have an image with the same name as the menu item located in the path specified in options-gui-layout-tree menu snaps
Ie. 'All Games.jpg' , Arcade.jpg, Atari 2600.jpg.
This doesn't work. Probably this is a bug.
After lots of tests, I found that the images must be placed in the root folder of MaLa with the same name as the menu item. If you place the images in other folder, MaLa doesn't find it, although set it in the path you mention above.
Thank you very much for your help and your work Loadman.