Exemplo 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
        }
Exemplo 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
        }
Exemplo 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
        }
Exemplo n.º 4
0
        public static void EndScrollView(bool handleScrollWheel = true)
        {
#if CPP
            GUIUnstrip.EndScrollView(handleScrollWheel);
#else
            GUILayout.EndScrollView();
#endif
        }
Exemplo n.º 5
0
        internal static GUILayoutOption ExpandHeight(bool expand)
        {
#if CPP
            return(GUIUnstrip.ExpandHeight(expand));
#else
            return(GUILayout.ExpandHeight(expand));
#endif
        }
Exemplo n.º 6
0
        static public void EndArea()
        {
#if CPP
            GUIUnstrip.EndArea();
#else
            GUILayout.EndArea();
#endif
        }
Exemplo 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
        }
Exemplo 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
        }
Exemplo 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
        }
Exemplo n.º 10
0
        public static void Space(float pixels)
        {
#if CPP
            GUIUnstrip.Space(pixels);
#else
            GUILayout.Space(pixels);
#endif
        }
Exemplo n.º 11
0
        public static Vector2 ScreenToGUIPoint(Vector2 screenPoint)
        {
#if CPP
            return(GUIUnstrip.ScreenToGUIPoint(screenPoint));
#else
            return(GUIUtility.ScreenToGUIPoint(screenPoint));
#endif
        }
Exemplo n.º 12
0
        public static void BringWindowToFront(int id)
        {
#if CPP
            GUIUnstrip.BringWindowToFront(id);
#else
            GUI.BringWindowToFront(id);
#endif
        }