This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#5167 - Graphical Menu (proof of concept)
Attached to Project:
Rockbox
Opened by Marcel van Eck (maeck) - Tuesday, 18 April 2006, 02:59 GMT+1
Last edited by Jonathan Gordon (jdgordon) - Tuesday, 31 July 2007, 09:07 GMT+1
Opened by Marcel van Eck (maeck) - Tuesday, 18 April 2006, 02:59 GMT+1
Last edited by Jonathan Gordon (jdgordon) - Tuesday, 31 July 2007, 09:07 GMT+1
|
DetailsGfxmenu rockbox plugin
This plugin is a proof of concept for a graphical menu, it does about nothing except for showing a number of icons in a nice 3d circle. Sliding around on the Ipod scrollwheel will move the icons around. If you stop scrolling the icons will refocus on the one icon closest to the center. This is the icon you would 'select' if the select key is clicked. For the devices without a scrollwheel, the left and right button lets you scroll through the menu. This is just not as elegant as the scrollwheel (however it is very effective). 'Menu' takes you back to the menu. things to do: - Do something when 'select' is clicked. - Insert this code into the existing menu drawing code so the graphical menu is shown for Ipod videos on the playlist/plugins menu. - Scaling of the icons is done outside of Rockbox, just 10 variations of each icon have been provided to the plugin. This is not the most memory effective way, However it is the fastest solution (and I get away with not writing code for real-time scaling...) - Create paths and icons for Nano, Photo and greyscale Ipods. Paths can be created using the main_menu_oval.java code. |
This task depends upon
Closed by Jonathan Gordon (jdgordon)
Tuesday, 31 July 2007, 09:07 GMT+1
Reason for closing: Out of Date
Tuesday, 31 July 2007, 09:07 GMT+1
Reason for closing: Out of Date
I got some questions:
1st) Why do you use 24bit depth? The displays of iPods have just 16bit.
2nd) I was blind and didn't find the line where you display the item name. It has to be adjusted for the nano.
3rd) Isn't it fast enough to calculate the values at runtime or maybe there is a way to make the precompiler calculate them for us... I added precalculated values for the nano, because you did so, too.
Good work.
2. The text placement is a bit weird. Need to select a font and place it correctly and restore is after closing the plugin.
3. I precalculated the paths for various reasons.
a. It is faster. I am not using any floats and complex math in the plugin. I could have precalculated the cos/sin values but that would have also left me with two tables of data.
b. Currently it is an oval, there is no reason to make the path flow differently if desired (for instance when we make these menus themable).
Thanks for converting for Nano.
I'll include the changes in the current patch I am working on (releasing this proof of concept on the main menu).
The patch is more than just the gfxmenu,c file,
bitmaps and sources files are also changed.
This patch also includes new images (icons).