コード例 #1
0
ファイル: GUIStyle.cs プロジェクト: zuohu/UnityDecompiled
        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);
        }
コード例 #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);
        }
コード例 #3
0
ファイル: GUIStyle.cs プロジェクト: sgf/Unity5.3Decompiled
        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);
        }
コード例 #4
0
ファイル: GUIStyle.cs プロジェクト: sgf/Unity5.3Decompiled
 private static extern void Internal_Draw(GUIContent content, ref Internal_DrawArguments arguments);
コード例 #5
0
 private static extern void Internal_Draw(GUIContent content, ref Internal_DrawArguments arguments);
コード例 #6
0
ファイル: GUIStyle.cs プロジェクト: CarlosHBC/UnityDecompiled
 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);
 }
コード例 #7
0
 private static void Internal_Draw(GUIContent content, ref Internal_DrawArguments arguments)
 {
     throw new NotImplementedException("なにこれ");
 }