X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=blender_export.py;h=2e202adac8c6a4032867003b036952697a7d1807;hb=f252ecb6f870260e0e944579ef732b94d1ed0ebe;hp=50f46c3d7184917431fad6d799748b6ea56ea24b;hpb=2f44245bafbb83a2172e544a7a2965ae837186ed;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/blender_export.py b/blender_export.py index 50f46c3..2e202ad 100644 --- a/blender_export.py +++ b/blender_export.py @@ -397,6 +397,10 @@ class ent_swspreview(Structure): # Menu # ----------------------------------------------------------------- +class ent_menuitem_visual(Structure): +#{ + _fields_ = [("pstr_name",c_uint32)] +#} class ent_menuitem_slider(Structure): #{ _fields_ = [("id_min",c_uint32), @@ -425,7 +429,8 @@ class ent_menuitem_anon_union(Union): _fields_ = [("slider",ent_menuitem_slider), ("button",ent_menuitem_button), ("checkmark",ent_menuitem_checkmark), - ("page",ent_menuitem_page)] + ("page",ent_menuitem_page), + ("visual",ent_menuitem_visual)] #} class ent_menuitem(Structure): #{ @@ -1320,6 +1325,10 @@ def sr_compile_menus( collection ): item_button = item._anonymous_union.button item_button.pstr = sr_compile_string( obj_data.string ) #} + elif item.type == 0:#{ + item_visual = item._anonymous_union.visual + item_visual.pstr_name = sr_compile_string( obj_data.string ) + #} elif item.type == 3:#{ item_checkmark = item._anonymous_union.checkmark item_checkmark.pstr_data = sr_compile_string( obj_data.string ) @@ -3155,6 +3164,7 @@ class SR_OBJECT_ENT_MENU_ITEM(bpy.types.PropertyGroup): box.prop( data, 'tipo' ) if data.tipo == '0':#{ + box.prop( data, 'string', text='Name' ) return #} elif data.tipo == '1':#{