Exemplo n.º 1
0
 static PropertyDrawerDatabase()
 {
     drawersByAttributeType = new Dictionary <Type, PropertyDrawer>();
     drawersByAttributeType[typeof(DropdownAttribute)]          = new DropdownPropertyDrawer();
     drawersByAttributeType[typeof(MinMaxSliderAttribute)]      = new MinMaxSliderPropertyDrawer();
     drawersByAttributeType[typeof(ReadOnlyAttribute)]          = new ReadOnlyPropertyDrawer();
     drawersByAttributeType[typeof(ReorderableListAttribute)]   = new ReorderableListPropertyDrawer();
     drawersByAttributeType[typeof(ResizableTextAreaAttribute)] = new ResizableTextAreaPropertyDrawer();
     drawersByAttributeType[typeof(ShowAssetPreviewAttribute)]  = new ShowAssetPreviewPropertyDrawer();
 }
Exemplo n.º 2
0
 static PropertyDrawerDatabase()
 {
     drawersByAttributeType = new Dictionary <Type, PropertyDrawer>();
     drawersByAttributeType[typeof(DisableIfAttribute)]         = new DisableIfPropertyDrawer();
     drawersByAttributeType[typeof(DropdownAttribute)]          = new DropdownPropertyDrawer();
     drawersByAttributeType[typeof(EnableIfAttribute)]          = new EnableIfPropertyDrawer();
     drawersByAttributeType[typeof(LabelAttribute)]             = new LabelPropertyDrawer();
     drawersByAttributeType[typeof(MinMaxSliderAttribute)]      = new MinMaxSliderPropertyDrawer();
     drawersByAttributeType[typeof(ProgressBarAttribute)]       = new ProgressBarPropertyDrawer();
     drawersByAttributeType[typeof(ReadOnlyAttribute)]          = new ReadOnlyPropertyDrawer();
     drawersByAttributeType[typeof(ReorderableListAttribute)]   = new ReorderableListPropertyDrawer();
     drawersByAttributeType[typeof(ResizableTextAreaAttribute)] = new ResizableTextAreaPropertyDrawer();
     drawersByAttributeType[typeof(ShowAssetPreviewAttribute)]  = new ShowAssetPreviewPropertyDrawer();
     drawersByAttributeType[typeof(SliderAttribute)]            = new SliderPropertyDrawer();
     drawersByAttributeType[typeof(TagAttribute)] = new TagPropertyDrawer();
 }