@@ -22,9 +22,16 @@ def filter_items(self, context, data, property):
2222
2323 def draw_item (self , context , layout , data , item , icon , active_data , active_propname ):
2424 if item :
25- layout .prop (item , "name" , text = 'Name ' , emboss = False )
25+ row = layout .row ()
26+ row .prop (item , "name" , text = 'Name ' , emboss = False )
2627 if item in bpy .context .selected_objects :
27- layout .label (text = "selected" )
28+ layout .label (text = "Selected" ,icon = "CHECKMARK" )
29+ else :
30+ layout .label (text = "Not-Selected" ,icon = "X" )
31+ if item .SIMLOADER .enabled :
32+ row .prop (item .SIMLOADER , "enabled" , text = "ENABLED" , icon = "PLAY" )
33+ else :
34+ row .prop (item .SIMLOADER , "enabled" , text = "DISABLED" , icon = "PAUSE" )
2835 else :
2936 # actually, I guess this line of code won't be executed?
3037 layout .label (text = "" , translate = False , icon_value = icon )
@@ -146,8 +153,6 @@ def draw(self, context):
146153 if obj .SIMLOADER .use_advance :
147154 col1 .label (text = 'Script' )
148155 col2 .prop_search (obj .SIMLOADER , 'script_name' , bpy .data , 'texts' , text = "" )
149- col1 .label (text = 'Enabled' )
150- col2 .prop (obj .SIMLOADER , 'enabled' , text = "" )
151156
152157
153158class SIMLOADER_Import (bpy .types .Panel ):
0 commit comments