Exemplo n.º 1
0
            public BasicPropertyUIContainer(AreaObject area, EditorSceneBase scene)
            {
                this.area  = area;
                this.scene = scene;

                shapeNames = LevelIO.AreaModelNames.ToArray();
            }
Exemplo n.º 2
0
    void Start()
    {
        ourAreaObject = GetComponent <AreaObject>();

        //---init Find UI fields---
        ui_btnAddRoom = GameObject.Find("Panel_NewRoom");
    }
Exemplo n.º 3
0
            public BasicPropertyUIContainer(AreaObject area, EditorSceneBase scene)
            {
                this.area  = area;
                this.scene = scene;

                shapeNames    = LevelIO.AreaModelNames.ToArray();
                DB_classNames = Program.ParameterDB.AreaParameters.Keys.ToArray();
            }
Exemplo n.º 4
0
    public override void Clone(ScalableObject toClone, Vector2 positioner)
    {
        base.Init();

        _selectionRenderer = _drawAreaSelectionRenderer;

        AreaObject areaObjectToClone = toClone as AreaObject;

        _downLeftAnchor = areaObjectToClone.DownLeftAnchor;
        _upRightAnchor  = areaObjectToClone.UpRightAnchor;

        _drawAreaRenderer.UpdateRenderer(DownLeftAnchor, UpRightAnchor, true);
        _drawAreaSelectionRenderer.UpdateRenderer(DownLeftAnchor, UpRightAnchor, false);
        _borderRenderer.UpdateRenderer(DownLeftAnchor, UpRightAnchor, false);
        SetPoints();
        BoundingBoxRenderer.UpdateRectangle();
        PositionAtCenter(positioner);
        Hover(false);
        ShowBoundingRect(false);
        selected = false;
    }
Exemplo n.º 5
0
 public override void SetLastSelected(ScalableObject scalableObject)
 {
     base.SetLastSelected(scalableObject);
     _lastSelected = scalableObject as AreaObject;
 }