Home Download Buy Blog Forum Support

Hook into show_overlay?

Hook into show_overlay?

Postby hibbelig on Wed Dec 21, 2011 11:42 pm

Is it possible to hook into show_overlay to have it show a custom list of items?

Say (as a completely silly example) I want to have it show the remaining days of the current week as the options. Thus, when invoked on a Sunday, it would show Sunday, Monday, Tuesday, and so on until Saturday. But when invoked on a Friday, it would only show Friday and Saturday.

(Actually, I want it to show the views of the current window.)

Oh, err, and I would need to execute custom code once the user picked one of those options...
hibbelig
 
Posts: 77
Joined: Wed Dec 21, 2011 11:24 pm

Re: Hook into show_overlay?

Postby adzenith on Thu Dec 22, 2011 1:15 am

Check out Window.show_quick_panel.
adzenith
 
Posts: 1213
Joined: Mon Oct 19, 2009 9:12 pm

Re: Hook into show_overlay?

Postby hibbelig on Fri Dec 23, 2011 9:43 pm

Thank you, adzenith, it works very nicely.
hibbelig
 
Posts: 77
Joined: Wed Dec 21, 2011 11:24 pm


Return to Plugin Development

Who is online

Users browsing this forum: Google [Bot] and 4 guests