Wings 3D Development Forum
Any way to discover current #st{selmode=Mode} ? - Printable Version

+- Wings 3D Development Forum (https://www.wings3d.com/forum)
+-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1)
+--- Forum: Design & Development (https://www.wings3d.com/forum/forumdisplay.php?fid=6)
+--- Thread: Any way to discover current #st{selmode=Mode} ? (/showthread.php?tid=1384)



Any way to discover current #st{selmode=Mode} ? - ggaliens - 09-17-2015

Any way to discover current #st{selmode=Mode} ?

When constructing a menu for say ...


menu({select}, Menu) ->

In the interest of full disclosure ... I had been "CHEATING" by looking at what items were in the full menu ... and branching on Strings like ...

"All Faces" or "All Objects"


Which is obviously not great style at all ... but seems better than having a Select / LotsMore / .....

That was loaded with selectors for all modes.

It looks a bit like I'm supposed to now enable vs disable items on my menu ... but that would still leave as a long menu.

Any ideas ?


RE: Any way to discover current #st{selmode=Mode} ? - dgud - 09-21-2015

Top window menus should not be dependent on #st{} at all anymore, I have removed that possibility
since works so bad on ubuntu linux with mac'ish top menus. It's just a lot of code to do stuff that
no one else uses and makes stuff confusing to the user.