예제 #1
0
 public void OnRegister(FieldTypeProviderProxy typeProviderProxy, Action<Field, Type> onFieldTypeChanged)
 {
     foreach (var drawer in _fieldToDrawer)
     {
         drawer.Value.OnRegister(typeProviderProxy, onFieldTypeChanged);
     }
 }
예제 #2
0
 internal void OnRegister(FieldTypeProviderProxy typeProviderProxy, Action <Field, Type> onFieldTypeChanged)
 {
     _changeFieldTypeGenericMenu = new GenericMenu();
     foreach (var type in typeProviderProxy.FieldTypeProviderData.Types)
     {
         var localType = type;
         _changeFieldTypeGenericMenu.AddItem(new GUIContent(type.Name), false, () => onFieldTypeChanged(_field, localType));
     }
 }
예제 #3
0
 public override void OnRegister()
 {
     base.OnRegister();
     _fieldTypeProviderProxy = (FieldTypeProviderProxy)Facade.RetrieveProxy(FieldTypeProviderProxy.Name);
     _nodeFieldsDrawer.OnRegister(_fieldTypeProviderProxy, _onFieldTypeChanged);
 }
예제 #4
0
 public void HandleFieldAddition(Field addedField, FieldTypeProviderProxy fieldTypeProviderProxy,
     Action<Field, Type> onFieldTypeChanged)
 {
     _fieldToDrawer[addedField] = new NodeSeparateFieldDrawer(addedField);
     _fieldToDrawer[addedField].OnRegister(fieldTypeProviderProxy, onFieldTypeChanged);
 }