# Menu
# -----------------------------------------------------------------
+class ent_menuitem_visual(Structure):
+#{
+ _fields_ = [("pstr_name",c_uint32)]
+#}
class ent_menuitem_slider(Structure):
#{
_fields_ = [("id_min",c_uint32),
_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):
#{
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 )
#{
use_hidden: bpy.props.BoolProperty( name="use hidden", default=False )
export_dir: bpy.props.StringProperty( name="Export Dir", subtype='DIR_PATH' )
- gizmos: bpy.props.BoolProperty( name="Draw Gizmos", default=True )
+ gizmos: bpy.props.BoolProperty( name="Draw Gizmos", default=False )
panel: bpy.props.EnumProperty(
name='Panel',
box.prop( data, 'tipo' )
if data.tipo == '0':#{
+ box.prop( data, 'string', text='Name' )
return
#}
elif data.tipo == '1':#{