Ejemplo n.º 1
0
        private void DualityEditorApp_HighlightObject(object sender, HighlightObjectEventArgs e)
        {
            if (!e.Mode.HasFlag(HighlightMode.Conceptual)) return;
            if (sender == this) return;

            GameObject obj = e.Target.MainGameObject;
            Component cmp = e.Target.MainComponent;
            NodeBase node = null;

            if (obj != null) node = this.FindNode(obj);
            if (cmp != null) node = (NodeBase)this.FindNode(cmp) ?? this.FindNode(cmp.GameObj);

            if (node != null) this.FlashNode(node);
        }
Ejemplo n.º 2
0
        private void DualityEditorApp_HighlightObject(object sender, HighlightObjectEventArgs e)
        {
            if (!e.Mode.HasFlag(HighlightMode.Conceptual)) return;
            if (sender == this) return;

            Resource res = e.Target.MainResource;
            NodeBase node = null;
            if (res != null) node = this.NodeFromPath(res.Path);
            if (node != null) this.FlashNode(node);
        }
Ejemplo n.º 3
0
		private void DualityEditorApp_HighlightObject(object sender, HighlightObjectEventArgs e)
		{
			if (!e.Mode.HasFlag(HighlightMode.Spatial)) return;
			if (sender == this) return;

			GameObject obj = e.Target.MainGameObject;
			Component cmp = e.Target.MainComponent;

			if (obj != null) this.FocusOnObject(obj);
			if (cmp != null) this.FocusOnObject(cmp.GameObj);
		}