Ejemplo n.º 1
0
        /**
         *@class sulphur.controls.inspector.Inspectors
         *@brief Creates an inspector user control based on an InspectorTypes type
         *@param[in] type (InspectorTypes) The type of inspector to create
         *@author Jelle de Haan
         */
        public static UserControl CreateInspector(InspectorTypes type, VarRef var)
        {
            switch (type)
            {
            case InspectorTypes.kCheckbox:
                return(new CheckBoxInspector(var));

            case InspectorTypes.kColor:
                return(new ColorInspector(var));

            case InspectorTypes.kCombobox:
                return(new ComboBoxInspector(var));

            case InspectorTypes.kImage:
                return(new ImageInspector(var));

            case InspectorTypes.kNumber:
                return(new NumberInspector(var));

            case InspectorTypes.kSlider:
                return(new SliderInspector(var));

            case InspectorTypes.kVector2:
                return(new Vector2Inspector(var));

            case InspectorTypes.kVector3:
                return(new Vector3Inspector(var));

            case InspectorTypes.kVector4:
                return(new Vector4Inspector(var));

            case InspectorTypes.kMatrix3x3:
                return(new Matrix3x3Inspector(var));

            case InspectorTypes.kMatrix4x4:
                return(new Matrix4x4Inspector(var));

            default:
                return(new NumberInspector(var));
            }
        }
Ejemplo n.º 2
0
 public SliderInspector(VarRef var)
 {
     InitializeComponent();
     var_ = var;
     FromVariable();
 }
Ejemplo n.º 3
0
 public ImageInspector(VarRef var)
 {
     InitializeComponent();
     var_ = var;
 }
 public Matrix3x3Inspector(VarRef var)
 {
     InitializeComponent();
     var_ = var;
     FromVariable();
 }
Ejemplo n.º 5
0
 public CheckBoxInspector(VarRef var)
 {
     InitializeComponent();
     var_ = var;
     FromVariable();
 }
Ejemplo n.º 6
0
 public ComboBoxInspector(VarRef var)
 {
     InitializeComponent();
     var_ = var;
 }