private void DrawVisualization()
        {
            GUIContent msg  = new GUIContent($"<color=#{debugTextColorHex}>{label}.{currentSegment.label}</color>");
            Vector2    size = StratusGUIStyles.header.CalcSize(msg);

            StratusGUI.GUILayoutArea(windowAnchor, size, (Rect rect) =>
            {
                GUILayout.Label(msg, StratusGUIStyles.header);
            });
        }
예제 #2
0
        private void DrawDebug()
        {
            if (currentlyReading)
            {
                string content = $"Story: {story.name}";
                content += $"\nCurrent Text: {story.runtime.currentText}";
                if (currentPath != null)
                {
                    content += $"Current Path: {currentPath}";
                }

                GUIContent msg = StratusGUI.Content(content, 9, debugTextColor);
                StratusGUI.GUILayoutArea(debugArea, StratusGUI.quarterScreen, (Rect rect) =>
                {
                    GUILayout.Label(msg, StratusGUIStyles.skin.label);
                });
            }
        }