Exemple #1
0
        public void Draw()
        {
            //performance	: only render nodes inside main rect
            if (SWCommon.RectContainsRect(window.al_rectMainInsideZoom, data.rect, false))
            {
                data.rect = GUI.Window(index, data.rect, DrawNodeWindow, "", Style);
            }
            Tooltip();

            DrawHead();

            if (SWWindowMain.Instance.selection.Contains(data.id))
            {
                Rect frameRect = SWCommon.GetRect(data.rect.center, new Vector2(
                                                      data.rect.size.x + 20f, data.rect.size.y + 18f));
                GUI.Box(frameRect, "", SWEditorUI.Style_Get(SWCustomStyle.eNodeSelected));
            }
        }