Magic Lantern Forum

Developing Magic Lantern => General Development => Topic started by: miyake on September 18, 2012, 11:36:54 AM

Title: [MERGED]Menu scrolling and vertical scroll bar!!!
Post by: miyake on September 18, 2012, 11:36:54 AM
https://bitbucket.org/miyake_t/magic-lanternmenuextend

Now we got liberty from screen size limitation.
Title: Re: Menu scrolling and vertical scroll bar!!!
Post by: nanomad on September 18, 2012, 11:45:46 AM
Great job!
Title: Re: Menu scrolling and vertical scroll bar!!!
Post by: miyake on September 18, 2012, 11:51:01 AM
Ah, I never think about dynamic show/hide menu_entry.............Need little bit more.

MSG added
Solved issues. currently not freeze any scenes. Dynamic add/del is little bit strange. I'm find the reason now.
Title: Re: Menu scrolling and vertical scroll bar!!!
Post by: miyake on September 18, 2012, 03:45:04 PM
OK. All problems was gone. If you have compile environment, please test it and feedback please.
Title: Re: Menu scrolling and vertical scroll bar!!!
Post by: nanomad on September 18, 2012, 03:54:56 PM
Excellent, I'll test it later when my PC is resurrected from the deads :P

Do you think we can add scrolling to submenus too?
Title: Re: Menu scrolling and vertical scroll bar!!!
Post by: miyake on September 18, 2012, 04:00:52 PM
Tested advanced_hide_menu() and another normal menu functions.
It's fine .
And submenu things. May be we can use it. But we also need to add difficult codes.
So I think , We design a lot of global menu and few sub menus.....now....
Do you want to try to add codes ?

Title: Re: Menu scrolling and vertical scroll bar!!!
Post by: 1% on September 18, 2012, 04:27:33 PM
Major awesome, have to absorb it in. No more menus covered up.
Title: Re: Menu scrolling and vertical scroll bar!!!
Post by: miyake on September 18, 2012, 04:29:15 PM
I know that You 1% like this functions.(lol
Your hacking is everytime a lot of additional menus. ;)
Title: Re: Menu scrolling and vertical scroll bar!!!
Post by: 1% on September 18, 2012, 09:47:05 PM
Yup, merged. No problems. I think focus menu scrolled up when lens data is enabled but thats ok.
Title: Re: Menu scrolling and vertical scroll bar!!!
Post by: miyake on September 19, 2012, 04:29:42 AM
1%
It's same as normal firmware. So I think it is no problem.
Title: Re: Menu scrolling and vertical scroll bar!!!
Post by: miyake on September 19, 2012, 08:01:34 AM
68d9dd6d5240 add exception for audio(meter space) and focus(lens info)

I found one more issue from 1%'s comment.
Now lens info is always showing.

and added miner action tweak. More good feeling now.
Title: Re: Menu scrolling and vertical scroll bar!!!
Post by: Michael Zöller on September 19, 2012, 10:44:39 AM
Thanks miyake! Great work!
Title: Re: Menu scrolling and vertical scroll bar!!!
Post by: nanomad on September 19, 2012, 02:51:34 PM
Feel free to open a pull request when think you're done
Title: Re: Menu scrolling and vertical scroll bar!!!
Post by: bart on September 19, 2012, 03:17:59 PM
wow that demo looks great!
Title: Re: Menu scrolling and vertical scroll bar!!!
Post by: miyake on September 19, 2012, 03:35:56 PM
@nanomad
made pull request.
Please proceed it.
Title: Re: Menu scrolling and vertical scroll bar!!!
Post by: nanomad on September 19, 2012, 03:47:34 PM
One little thing, did you test it with semi-transparent menus too? (like shutter control while recording)
Title: Re: Menu scrolling and vertical scroll bar!!!
Post by: miyake on September 19, 2012, 03:50:08 PM
Forget it. But just tested quickly.
I can't find problems.
Title: Re: Menu scrolling and vertical scroll bar!!!
Post by: nanomad on September 19, 2012, 04:21:13 PM
Great, should be merged by the end of the day
Title: Re: Menu scrolling and vertical scroll bar!!!
Post by: Andy600 on September 19, 2012, 05:04:56 PM
Nice work Miyake! :)
Title: Re: [MERGED]Menu scrolling and vertical scroll bar!!!
Post by: nanomad on September 19, 2012, 08:26:14 PM
Pull requests suck, I'm going to merge stuff manually so it will take a bit longer  :-\
Title: Re: [ACCEPTED]Menu scrolling and vertical scroll bar!!!
Post by: miyake on September 20, 2012, 03:18:11 AM
?? why you need to merge it?
Pulled code a already merged to unified. So you just type "hg pull, hg update" only I think.
Title: Re: [ACCEPTED]Menu scrolling and vertical scroll bar!!!
Post by: 1% on September 20, 2012, 05:03:16 AM
Left the warning in menu.c I think.
Title: Re: [ACCEPTED]Menu scrolling and vertical scroll bar!!!
Post by: miyake on September 20, 2012, 05:27:20 AM
I just clone current repo.
But menu.c has no warning.
Title: Re: [ACCEPTED]Menu scrolling and vertical scroll bar!!!
Post by: 1% on September 20, 2012, 06:19:35 AM
https://bitbucket.org/hudson/magic-lantern/src/04ef6f499dc2/src/menu.c

beta warning.
Title: Re: [ACCEPTED]Menu scrolling and vertical scroll bar!!!
Post by: miyake on September 20, 2012, 06:39:19 AM
Ah, I see.
Title: Re: [ACCEPTED]Menu scrolling and vertical scroll bar!!!
Post by: nanomad on September 20, 2012, 08:57:03 AM
That, and I would have loved to have separate pull requests for audio and menus. But a1ex just accepted the full pull request it so....
Thanks miyake :P
Title: Re: [ACCEPTED]Menu scrolling and vertical scroll bar!!!
Post by: Marsu42 on September 20, 2012, 11:12:35 AM
Quote from: nanomad on September 20, 2012, 08:57:03 AM
That, and I would have loved to have separate pull requests for audio and menus. But a1ex just accepted the full pull request it so....

Doesn't work on 60d (should it? anything else required except replacing autoexec.bin?), ml menu simply refuses to show :-\
Title: Re: [MERGED]Menu scrolling and vertical scroll bar!!!
Post by: a1ex on September 20, 2012, 11:14:00 AM
Works on my 60D, including scroll.
Title: Re: [MERGED]Menu scrolling and vertical scroll bar!!!
Post by: Marsu42 on September 20, 2012, 11:20:35 AM
Quote from: a1ex on September 20, 2012, 11:14:00 AM
Works on my 60D, including scroll.

After the last "-O3 fix", it now also works again if compiled w/ Linaro 4.7 :-)
Title: Re: [MERGED]Menu scrolling and vertical scroll bar!!!
Post by: miyake on September 20, 2012, 11:26:47 AM
Current menu has no overflow menu items. If you add new menu item and it's will be overflow from display size, You can see vscroll.
Title: Re: [ACCEPTED]Menu scrolling and vertical scroll bar!!!
Post by: miyake on September 20, 2012, 11:30:17 AM
Quote from: nanomad on September 20, 2012, 08:57:03 AM
That, and I would have loved to have separate pull requests for audio and menus. But a1ex just accepted the full pull request it so....
Thanks miyake :P

I made a separate pull request. First I make a scroll menu pull request and then I confirmed pulled.
After that, I make a audio pull request.

Or Do you think that make a your own patch and push it? It's not good , because commit log will be lost.
Title: Re: [MERGED]Menu scrolling and vertical scroll bar!!!
Post by: nanomad on September 20, 2012, 01:22:11 PM
No, yesterday I was so tired I didn't notice that :(
My bad
Title: Re: [MERGED]Menu scrolling and vertical scroll bar!!!
Post by: a1ex on September 22, 2012, 09:15:46 PM
Bug report: in Overlay menu (11 items) and Focus menu (9 items), pressing UP on first menu entry causes it to disappear. No scrolling is needed, no scrollbars appear (that part is OK).
Title: Re: [MERGED]Menu scrolling and vertical scroll bar!!!
Post by: miyake on September 23, 2012, 06:50:07 AM
I thought it has no problem to use it. So I didn't add exception for simple implementation.
But you feel uneasy, I will solve it.
Give me a few time for solving it. More consider for beautiful code design. 
Title: Re: [MERGED]Menu scrolling and vertical scroll bar!!!
Post by: jplxpto on September 23, 2012, 06:07:20 PM
Congratulations, you did a fantastic job. This functionality can be very useful for the project.
Title: Re: [MERGED]Menu scrolling and vertical scroll bar!!!
Post by: miyake on September 23, 2012, 06:34:47 PM
All problem was gone, and made a pull request.
Now need to consider that take out from submenu for fast operations.
I'm changed 600D audio gain/boost from submenu. We don't need to open/close submenu when we change 600D audio volumes!!
Title: Re: [MERGED]Menu scrolling and vertical scroll bar!!!
Post by: a1ex on September 24, 2012, 03:06:02 PM
Works great here.
Title: Re: [MERGED]Menu scrolling and vertical scroll bar!!!
Post by: nanomad on September 25, 2012, 02:33:21 PM
Same on the mighty 1100D  ;)