Exemple #1
0
        private static void Internal_Draw(IntPtr target, Rect position, GUIContent content, bool isHover, bool isActive, bool on, bool hasKeyboardFocus)
        {
            Internal_DrawArguments internal_DrawArguments = default(Internal_DrawArguments);

            internal_DrawArguments.target           = target;
            internal_DrawArguments.position         = position;
            internal_DrawArguments.isHover          = ((!isHover) ? 0 : 1);
            internal_DrawArguments.isActive         = ((!isActive) ? 0 : 1);
            internal_DrawArguments.on               = ((!on) ? 0 : 1);
            internal_DrawArguments.hasKeyboardFocus = ((!hasKeyboardFocus) ? 0 : 1);
            GUIStyle.Internal_Draw(content, ref internal_DrawArguments);
        }
Exemple #2
0
        // Draw this GUIStyle on to the screen.
        private static void Internal_Draw(IntPtr target, Rect position, GUIContent content, bool isHover, bool isActive, bool on, bool hasKeyboardFocus)
        {
            Internal_DrawArguments arguments = new Internal_DrawArguments();

            arguments.target           = target;
            arguments.position         = position;
            arguments.isHover          = isHover ? 1 : 0;
            arguments.isActive         = isActive ? 1 : 0;
            arguments.on               = on ? 1 : 0;
            arguments.hasKeyboardFocus = hasKeyboardFocus ? 1 : 0;
            Internal_Draw(content, ref arguments);
        }
Exemple #3
0
        private static void Internal_Draw(IntPtr target, Rect position, GUIContent content, bool isHover, bool isActive, bool on, bool hasKeyboardFocus)
        {
            Internal_DrawArguments arguments = new Internal_DrawArguments {
                target           = target,
                position         = position,
                isHover          = !isHover ? 0 : 1,
                isActive         = !isActive ? 0 : 1,
                on               = !on ? 0 : 1,
                hasKeyboardFocus = !hasKeyboardFocus ? 0 : 1
            };

            Internal_Draw(content, ref arguments);
        }
Exemple #4
0
 private static extern void Internal_Draw(GUIContent content, ref Internal_DrawArguments arguments);
 private static extern void Internal_Draw(GUIContent content, ref Internal_DrawArguments arguments);
 private static void Internal_Draw(IntPtr target, Rect position, GUIContent content, bool isHover, bool isActive, bool on, bool hasKeyboardFocus)
 {
     Internal_DrawArguments arguments = new Internal_DrawArguments {
         target = target,
         position = position,
         isHover = !isHover ? 0 : 1,
         isActive = !isActive ? 0 : 1,
         on = !on ? 0 : 1,
         hasKeyboardFocus = !hasKeyboardFocus ? 0 : 1
     };
     Internal_Draw(content, ref arguments);
 }
Exemple #7
0
 private static void Internal_Draw(GUIContent content, ref Internal_DrawArguments arguments)
 {
     throw new NotImplementedException("なにこれ");
 }