[Bf-funboard] Re: toolbox

Ton Roosendaal bf-funboard@blender.org
Sat, 25 Oct 2003 20:10:28 +0200


Hi,

> Does this mean configurable menu styles?

Yep... I tried to separate the menu data from the actual UI code. So  
both style, as actual structure can be tweaked a lot simpler. The old  
toolbox was such a code mess... it was just copied from Traces  
(predecessor Blender)... 12 year old code at least.

>
>> static TBitem addmenu_mesh[]= {
>> {	0, "Plane", 	0, NULL},
>> {	0, "Cube", 		1, NULL},
> [...]
>> {	0, "Curve", 	1, addmenu_curve},
>> {	0, "Mesh", 		0, addmenu_mesh},
>> {  -1, "end", 		UI_TOP, do_info_addmenu}};
>
> No separator and / or blank items?

Sure, all Blender has is in it!

-Ton-

------------------------------------------------------------------------ 
--
Ton Roosendaal  Blender Foundation ton@blender.org  
http://www.blender.org