Esempio n. 1
0
        public static string TextArea(string text, params GUILayoutOption[] options)
        {
#if CPP
            return(GUIUnstrip.TextField(text, options, true));
#else
            return(GUILayout.TextArea(text, options));
#endif
        }
Esempio n. 2
0
        public static void BeginVertical(GUIContent content, GUIStyle style, params GUILayoutOption[] options)
        {
#if CPP
            GUIUnstrip.BeginLayoutDirection(true, content, style, options);
#else
            GUILayout.BeginVertical(content, style, options);
#endif
        }
Esempio n. 3
0
        public static string TextField(string text, GUILayoutOption[] options)
        {
#if CPP
            return(GUIUnstrip.TextField(text, options, false));
#else
            return(GUILayout.TextField(text, options));
#endif
        }
Esempio n. 4
0
        public static void EndScrollView(bool handleScrollWheel = true)
        {
#if CPP
            GUIUnstrip.EndScrollView(handleScrollWheel);
#else
            GUILayout.EndScrollView();
#endif
        }
Esempio n. 5
0
        internal static GUILayoutOption ExpandHeight(bool expand)
        {
#if CPP
            return(GUIUnstrip.ExpandHeight(expand));
#else
            return(GUILayout.ExpandHeight(expand));
#endif
        }
Esempio n. 6
0
        static public void EndArea()
        {
#if CPP
            GUIUnstrip.EndArea();
#else
            GUILayout.EndArea();
#endif
        }
Esempio n. 7
0
        public static Vector2 BeginScrollView(Vector2 scroll, params GUILayoutOption[] options)
        {
#if CPP
            return(GUIUnstrip.BeginScrollView(scroll, options));
#else
            return(GUILayout.BeginScrollView(scroll, options));
#endif
        }
Esempio n. 8
0
        public static void BeginArea(Rect screenRect, GUIStyle style)
        {
#if CPP
            GUIUnstrip.BeginArea(screenRect, GUIContent.none, style);
#else
            GUILayout.BeginArea(screenRect, style);
#endif
        }
Esempio n. 9
0
        public static bool RepeatButton(string text, params GUILayoutOption[] options)
        {
#if CPP
            return(GUIUnstrip.DoRepeatButton(GUIContent.Temp(text), GUI.skin.button, options));
#else
            return(GUILayout.RepeatButton(text, options));
#endif
        }
Esempio n. 10
0
        public static void Space(float pixels)
        {
#if CPP
            GUIUnstrip.Space(pixels);
#else
            GUILayout.Space(pixels);
#endif
        }
Esempio n. 11
0
        public static Vector2 ScreenToGUIPoint(Vector2 screenPoint)
        {
#if CPP
            return(GUIUnstrip.ScreenToGUIPoint(screenPoint));
#else
            return(GUIUtility.ScreenToGUIPoint(screenPoint));
#endif
        }
Esempio n. 12
0
        public static void BringWindowToFront(int id)
        {
#if CPP
            GUIUnstrip.BringWindowToFront(id);
#else
            GUI.BringWindowToFront(id);
#endif
        }