Exemplo n.º 1
0
        void AddWord()
        {
            if (mWord.Length == 0)
            {
                return;
            }

            var payload = new GUIContent(mWord.ToString(), mTooltip);
            var content = new ContentText(payload, mStyle, mLink);

            content.CalcSize(mContext);

            AddContent(content);

            mWord.Length = 0;
        }
Exemplo n.º 2
0
        public void Prefix(string text, Style style)
        {
            mContext.Apply(style);

            if (mCurrentContent == null)
            {
                return;
            }

            var payload = new GUIContent(text);
            var content = new ContentText(payload, style, null);

            content.Location.size = mContext.CalcSize(payload);

            mCurrentContent.Prefix(content);
        }