Esempio n. 1
0
            protected SelectionContext(Feature feature, OrderedProperty orderedProperty, float parentX, float parentY, Func <T, Picker <T> > builder)
            {
                Feature         = feature;
                OrderedProperty = orderedProperty;
                Picker          = builder((T)orderedProperty.Property.GetValue(feature));

                var position = Event.current.mousePosition;

                Picker.SetWindowPosition(parentX + LabelStyle.fixedWidth * 3 + LabelStyle.margin.left * 6, position.y + parentY - 32f);
            }
Esempio n. 2
0
 public KeyCodeSelectionContext(Feature feature, OrderedProperty orderedProperty, float parentX, float parentY) : base(feature, orderedProperty, parentX, parentY, color => new EnumPicker <KeyCode>(color))
 {
 }
Esempio n. 3
0
 public ColorSelectionContext(Feature feature, OrderedProperty orderedProperty, float parentX, float parentY) : base(feature, orderedProperty, parentX, parentY, color => new ColorPicker(color))
 {
 }