static PropertyEnabledConditionDatabase() { drawConditionsByAttributeType = new Dictionary <Type, PropertyEnabledCondition>(); drawConditionsByAttributeType[typeof(DisableIfAttribute)] = new DisableIfPropertyDrawer(); drawConditionsByAttributeType[typeof(EnableIfAttribute)] = new EnableIfPropertyDrawer(); drawConditionsByAttributeType[typeof(DisableInEditorModeAttribute)] = new DisableInEditorModePropertyDrawer(); drawConditionsByAttributeType[typeof(DisableInPlayModeAttribute)] = new DisableInPlayModePropertyDrawer(); drawConditionsByAttributeType[typeof(ReadOnlyAttribute)] = new ReadOnlyPropertyDrawer(); }
static DPropertyDrawer() { drawersByAttributeType = new Dictionary <Type, APropertyDrawer>(); drawersByAttributeType[typeof(AssetPreviewAttribute)] = new ShowAssetPreviewPropertyDrawer(); 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(SliderAttribute)] = new SliderPropertyDrawer(); drawersByAttributeType[typeof(TagAttribute)] = new TagPropertyDrawer(); }