예제 #1
0
#pragma warning restore 0414


        private void Awake()
        {
            this.test2.prefsString.TopMargin = 50f;

            this.test2.prefsButton3.TopMargin    = 30f;
            this.test2.prefsButton3.BottomMargin = 25f;

            this.test1.prefsIntSlider.BottomMargin   = 50f;
            this.test1.prefsIntSlider.GuiLabelSufix  = RichTextColors.Blue(" ~ ");
            this.test1.prefsIntSlider.GuiLabelPrefix = RichTextColors.Red(" ~ ");
        }
예제 #2
0
파일: Example.cs 프로젝트: sishui/PrefsUGUI
#pragma warning restore 0414


        private void Awake()
        {
            Debug.Log(HierarchyTest1.FullHierarchy);
            Debug.Log(HierarchyTest2Ex2.FullHierarchy);

            this.test2.PrefsString.TopMargin    = 50f;
            this.test2.PrefsString.BottomMargin = 50f;

            this.test2.PrefsButton3.TopMargin    = 30f;
            this.test2.PrefsButton3.BottomMargin = 25f;

            this.test1.PrefsIntSlider.BottomMargin   = 50f;
            this.test1.PrefsIntSlider.GuiLabelSufix  = RichTextColors.Blue(" ~ ");
            this.test1.PrefsIntSlider.GuiLabelPrefix = RichTextColors.Red(" ~ ");

            this.test3.PrefsLabel1.TopMargin    = 20f;
            this.test3.PrefsLabel1.BottomMargin = 20f;

            this.prefsRect.TopMargin = 15f;
        }
예제 #3
0
 /// <summary>
 /// Surrounds the given text in the needed tags for rich text color, with the specified color.
 /// </summary>
 /// <param name="thisString">Current string.</param>
 /// <param name="color">Color that the text should be.</param>
 public static string AddRichTextTag_Color(this string thisString, RichTextColors color) // [6]
 {
     return string.Format("<color={0}>{1}</color>", color.ToString(), thisString);
 }