示例#1
0
 public LDtkFieldDrawerRadius(LDtkFields fields, string identifier, EditorDisplayMode mode, float gridSize)
 {
     _fields     = fields;
     _identifier = identifier;
     _mode       = mode;
     _gridSize   = gridSize;
 }
示例#2
0
 public LDtkFieldDrawerPoints(LDtkFields fields, string identifier, EditorDisplayMode mode, Vector3 middleCenter)
 {
     _fields       = fields;
     _identifier   = identifier;
     _mode         = mode;
     _middleCenter = middleCenter;
 }
 public void SupplyReferences(Component source, string fieldName, EditorDisplayMode mode, float gridSize)
 {
     Source     = source;
     Transform  = source.transform;
     _fieldName = fieldName;
     Mode       = mode;
     GridSize   = gridSize;
 }
        public LDtkSceneDrawerData(Component source, MemberInfo field, EntityInstance entityData, EditorDisplayMode mode, int gridSize)
        {
            _source    = source;
            _fieldName = field.Name;
            _mode      = mode;
            _gridSize  = gridSize;

            SetGizmoColor(entityData);
        }
示例#5
0
 public FieldEditorControl()
 {
     this._EditorDisplayMode = EditorDisplayMode.Div;
     this._EditControlStyle  = new Style();
     this._ErrorStyle        = new Style();
     this._HelpStyle         = new Style();
     this._LabelStyle        = new Style();
     this._VisibilityStyle   = new Style();
     this._ShowRequired      = true;
     this._ShowVisibility    = false;
     this.Validators         = new ValidatorCollection();
     this._IsValid           = true;
     this._Validated         = false;
 }
 public FieldEditorControl()
 {
     this._EditorDisplayMode = EditorDisplayMode.Div;
     this._EditControlStyle = new Style();
     this._ErrorStyle = new Style();
     this._HelpStyle = new Style();
     this._LabelStyle = new Style();
     this._VisibilityStyle = new Style();
     this._ShowRequired = true;
     this._ShowVisibility = false;
     this.Validators = new ValidatorCollection();
     this._IsValid = true;
     this._Validated = false;
 }