Ejemplo n.º 1
0
        internal override void Reset()
        {
            enableIcon     = false;
            enableShortcut = true;

            //shortenName = false;
            shortcuts = h2_Shortcut.FromStrings(SHORTCUTS);

            var arr    = h2_Color.GetHSBColors();
            var colors = new Color[32];

            for (var i = 0; i < 32; i++)
            {
                colors[i] = arr[i % arr.Length];
            }

            labelColor = new h2_Label
            {
                align       = 1,
                shortenName = false,
                style       = h2_LabelStyle.Label_w_BgColor,
                lbColor     = new Color32(0, 0, 0, 255),
                bgColor     = new Color32(0, 128, 64, 128),
                colors      = colors
            };

#if H2_DEV
            Debug.Log("RESET TAG");
#endif
        }
Ejemplo n.º 2
0
        internal override void Reset()
        {
            enableIcon     = false;
            enableShortcut = true;

            //shortenName = true;
            showDefaultlayer = true;

            //padding				= 4f;
            //style				= h2_LayerDisplay.LabelColor;
            shortcuts = h2_Shortcut.FromStrings(SHORTCUTS);


            var arr    = h2_Color.GetHSBColors();
            var colors = new Color[32];

            for (var i = 0; i < 32; i++)
            {
                colors[i] = arr[i % arr.Length];
            }

            labelColor = new h2_Label
            {
                padding     = 0,
                shortenName = true,
                align       = 1,
                style       = h2_LabelStyle.LabelColor,
                lbColor     = new Color32(0, 128, 64, 255),
                bgColor     = new Color32(0, 128, 64, 255),
                colors      = colors
            };


#if H2_DEV
            Debug.Log("RESET LAYER");
#endif
        }