Welcome! Log In Create A New Profile

Advanced

menu library

Posted by trottolo 
menu library
April 02, 2009 11:58AM
Hello,

I'd like to build a menu thath look like the home brew channel only to start to build an application! Could you give me some infos and/or links could suppot my request?

Thx
Re: menu library
April 02, 2009 01:28PM
There are two great libraries for this:

You can use mine: [www.wiibrew.org]

Or MetaFights: [www.wiibrew.org]

You'll find mine to be customizable (AKA skinnable) without looking at the source (See Wii Shooting Gallery) and MetaFights to look a little more professional (remember mine can be easily customized to look like MetaFights). I recommend you try out the demos of both before deciding which one to use.

Also, while MetaFight uses no external libraries for his library, mine requires the use of either libwiisprite or GRRLIB. Both Home Menu libraries are open source still under active development.



Edited 3 time(s). Last edit at 04/02/2009 01:31PM by Arikado.
Re: menu library
April 02, 2009 06:52PM
thx for your fast and complete reply....I'm starrting now to code using the wii, so I don't have so much experience in wii programming but I have a lot using c, java and so on!

Could you also guide me to start in the right way? What do I have to know (for example system call) before starting?

In this moment wiibrew is not working so I will see the link soon!

Thx again
Amedeo
Re: menu library
April 02, 2009 09:47PM
These got me started. They're easy to follow.

http://www.codemii.com/category/wii-programming-tutorials/
Re: menu library
April 03, 2009 01:18PM
ok thx this are very usefull tutorial for the starting poin.....I did read all this morning.....do you have some more advanced? I need also to develop an application similar to the homebrew channel....the source code is available?is it modular? I am asking this because I want copy the part related to the menu!
Re: menu library
April 03, 2009 01:45PM
There really aren't any advanced tutorials out there...not that I could find. I just started looking at other code and figuring out stuff on my own. Still looking for a good tutorial on using gl2gx that's actually in english.
Re: menu library
April 03, 2009 06:02PM
ok....but it is possible to have the homebrew channel source?(or the homebrew browser?)

they are free to download?
Re: menu library
April 03, 2009 07:32PM
Quote
trottolo
ok....but it is possible to have the homebrew channel source?(or the homebrew browser?)

they are free to download?
Source code for those programs are not available. But a lot of other apps are open source: [wiibrew.org]
Re: menu library
April 04, 2009 12:55AM
You can take a look at the just-released libwiigui, here: [www.wiibrew.org]
Re: menu library
April 04, 2009 09:45AM
seems what I was looking for.....but I downloaded the source code and in the manual you are talking about a template that there isn't included in the source.....could you send me?
Re: menu library
April 05, 2009 08:03AM
The template is integrated in the source (demo.cpp and menu.cpp). Just compile it, and you'll get a working demo.
Re: menu library
April 05, 2009 10:03AM
I downloaded the required library also...but this is the error code that is coming out...


linking ... libwiigui-demo.elf
c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-gekko/4.2.4/../../../../powerpc-gekko/bin/ld.exe: cannot find -lpngu
collect2: ld returned 1 exit status
make[1]: *** [/c/projects/wii/wii_gui/libwiigui-demo.elf] Error 1
"make": *** [build] Error 2
Re: menu library
April 05, 2009 01:42PM
Quote
trottolo
I downloaded the required library also...but this is the error code that is coming out...


linking ... libwiigui-demo.elf
c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-gekko/4.2.4/../../../../powerpc-gekko/bin/ld.exe: cannot find -lpngu
collect2: ld returned 1 exit status
make[1]: *** [/c/projects/wii/wii_gui/libwiigui-demo.elf] Error 1
"make": *** [build] Error 2
You need to install the necessary libraries in the additional download Tantric provides.



Edited 1 time(s). Last edit at 04/05/2009 01:42PM by Arikado.
Re: menu library
April 05, 2009 07:13PM
could you give me the link for the download? where I have to put it?
Re: menu library
April 05, 2009 10:11PM
Solved....the problem was that i forgot to do a make install after copying!
Re: menu library
April 11, 2009 07:33AM
Quote
trottolo
Solved....the problem was that i forgot to do a make install after copying!

Ok....I'm using libwiigui that is very nice and complete....I have a big bug!!!

there are some png that I can display and some other that I can't...I don't understan what is the pèroblem!!!

the png fie should have some particular properties?

Thx
Amedeo

Ps this is the code

GuiImageData prv_l(prv_png);
GuiImage prvLeftBtnImg(&prv_l);
GuiButton prvLeftBtn( prvLeftBtnImg.GetWidth(), prvLeftBtnImg.GetHeight());
prvLeftBtn.SetPosition((screenwidth-prvLeftBtnImg.GetWidth())/2,(screenheight-80-prvLeftBtnImg.GetHeight())/2);
prvLeftBtn.SetImage(&prvLeftBtnImg);
prvLeftBtn.SetSoundOver(&btnSoundOver);
prvLeftBtn.SetTrigger(&trigA);
prvLeftBtn.SetEffectGrow();


changing only the name file (prv_png in another) it is working..... why?



Edited 1 time(s). Last edit at 04/11/2009 08:02AM by trottolo.
Re: menu library
April 11, 2009 09:28AM
Your image file width and height should be multiples of 4, that's the most important thing. Also save your files in 8 or 16 bit, non-interlaced format. Follow the specs for PNGU, since that's what libwiigui uses.
Re: menu library
April 11, 2009 11:13AM
ok!!!!!!!!!

this issue was making me crazy!

Is there a plan to include all the resolution format?
Is there a plan to include jpg?
Is there a plan to have the stretch functionality in the imageData class?

Thx
Amedeo
Re: menu library
April 11, 2009 03:55PM
Another stuff...

I did an application now I developped in another project the gui....so now I put in the source directory of my application(in a subdirectory called gui) the file and directory of develloped in parrallel.

when I include the gui/gui.h of my application I did this error when compiling

usb.c
In file included from c:/projects/wii/USB/USB_AME/source/gui/FreeTypeGX.h:158,
from c:/projects/wii/USB/USB_AME/source/gui/gui.h:11,
from c:/projects/wii/USB/USB_AME/source/usb.c:12:
c:/devkitPro/libogc/include/Metaphrasis.h:96: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Metaphrasis'
In file included from c:/projects/wii/USB/USB_AME/source/gui/gui.h:11,
from c:/projects/wii/USB/USB_AME/source/usb.c:12:
c:/projects/wii/USB/USB_AME/source/gui/FreeTypeGX.h:162:15: warning: map: No such file or directory
In file included from c:/projects/wii/USB/USB_AME/source/gui/gui.h:11,
from c:/projects/wii/USB/USB_AME/source/usb.c:12:
c:/projects/wii/USB/USB_AME/source/gui/FreeTypeGX.h:231: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'FreeTypeGX'
In file included from c:/projects/wii/USB/USB_AME/source/usb.c:12:
c:/projects/wii/USB/USB_AME/source/gui/gui.h:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
make[1]: *** [usb.o] Error 1
"make": *** [build] Error 2

why? is there a mistake in the makefile?
Re: menu library
April 11, 2009 06:35PM
Quote
trottolo
Another stuff...

I did an application now I developped in another project the gui....so now I put in the source directory of my application(in a subdirectory called gui) the file and directory of develloped in parrallel.

when I include the gui/gui.h of my application I did this error when compiling

usb.c
In file included from c:/projects/wii/USB/USB_AME/source/gui/FreeTypeGX.h:158,
from c:/projects/wii/USB/USB_AME/source/gui/gui.h:11,
from c:/projects/wii/USB/USB_AME/source/usb.c:12:
c:/devkitPro/libogc/include/Metaphrasis.h:96: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Metaphrasis'
In file included from c:/projects/wii/USB/USB_AME/source/gui/gui.h:11,
from c:/projects/wii/USB/USB_AME/source/usb.c:12:
c:/projects/wii/USB/USB_AME/source/gui/FreeTypeGX.h:162:15: warning: map: No such file or directory
In file included from c:/projects/wii/USB/USB_AME/source/gui/gui.h:11,
from c:/projects/wii/USB/USB_AME/source/usb.c:12:
c:/projects/wii/USB/USB_AME/source/gui/FreeTypeGX.h:231: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'FreeTypeGX'
In file included from c:/projects/wii/USB/USB_AME/source/usb.c:12:
c:/projects/wii/USB/USB_AME/source/gui/gui.h:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
make[1]: *** [usb.o] Error 1
"make": *** [build] Error 2

why? is there a mistake in the makefile?

Yes, likely you didn't modify your LIBS line to add the libs from the template.
Also your SOURCES line should include source AND source/gui
Sorry, only registered users may post in this forum.

Click here to login