private void ResetIndexesFor(ListDepth depth)
 {
     for (int _depth = (int)depth; _depth < (int)ListDepth.counter; ++_depth)
     {
         SelectedElementsPerDepth[_depth] = -1;
     }
 }
        private void SetHierarchyIndexes(ListDepth current, int value)
        {
            SetSelecterElementOn(current, value);
            ListDepth deeperHierarchy = current + 1;

            ResetIndexesFor(deeperHierarchy);
        }
        private GUIStyleCreationOption GetGUIStyleCreationOption(ListDepth depth)
        {
            switch (depth)
            {
            case ListDepth.CHARACTERS:
                return(new GUIStyleCreationOption(new Color(0.945f, 0.949f, 0.964f), 18, FontStyle.Bold));

            case ListDepth.SEQUENCES:
                return(new GUIStyleCreationOption(new Color(0.643f, 0.690f, 0.745f), 16, FontStyle.Italic));

            case ListDepth.DIALOGUES:
                return(new GUIStyleCreationOption(new Color(0.807f, 0.839f, 0.878f), 12, FontStyle.Normal));

            default:
                return(new GUIStyleCreationOption(Color.white));
            }
        }
        private GUIStyle CreateGUIStyleFor(int depth)
        {
            ListDepth Ldepth = (ListDepth)depth;

            GUIStyleCreationOption creationOptions = GetGUIStyleCreationOption(Ldepth);
            Color     backgroundColor   = creationOptions.backgroundColor;
            Texture2D backgroundTexture = Resources.Load <Texture2D>("Dialogue System/Icons/roundedBox");
            Texture2D tintedTexture     = TintTexture(backgroundTexture, backgroundColor);

            GUIStyle style = new GUIStyle(GUI.skin.button);

            style.alignment         = TextAnchor.MiddleLeft;
            style.fontSize          = creationOptions.fontSize;
            style.fontStyle         = creationOptions.fontStyle;
            style.normal.background = tintedTexture;

            return(style);
        }
 private int GetSelectetElementIndex(ListDepth depth)
 {
     return(SelectedElementsPerDepth[(int)depth]);
 }
 private void SetSelecterElementOn(ListDepth depth, int value)
 {
     SelectedElementsPerDepth[(int)depth] = value;
 }