References() private method

Helper function that determines whether the font uses the specified one, taking replacements into account.
private References ( UIFont, font ) : bool
font UIFont,
return bool
Esempio n. 1
0
    /// <summary>
    /// Helper function that determines whether the two atlases are related.
    /// </summary>

    static public bool CheckIfRelated(UIFont a, UIFont b)
    {
        if (a == null || b == null)
        {
            return(false);
        }
        return(a == b || a.References(b) || b.References(a));
    }
Esempio n. 2
0
    private bool References(UIFont font)
    {
        if (font == null)
        {
            return(false);
        }

        return(font == this || mReplacement != null && mReplacement.References(font));
    }
Esempio n. 3
0
    /// <summary>
    /// Helper function that determines whether the font uses the specified one, taking replacements into account.
    /// </summary>

    bool References(UIFont font)
    {
        if (font == null)
        {
            return(false);
        }
        if (font == this)
        {
            return(true);
        }
        return((mReplacement != null) ? mReplacement.References(font) : false);
    }
Esempio n. 4
0
 public static bool CheckIfRelated(UIFont a, UIFont b)
 {
     if (a == null || b == null)
     {
         return(false);
     }
     if (a.isDynamic && b.isDynamic && a.dynamicFont.get_fontNames()[0] == b.dynamicFont.get_fontNames()[0])
     {
         return(true);
     }
     return(a == b || a.References(b) || b.References(a));
 }
Esempio n. 5
0
    /// <summary>
    /// Helper function that determines whether the two atlases are related.
    /// </summary>

    static public bool CheckIfRelated(UIFont a, UIFont b)
    {
        if (a == null || b == null)
        {
            return(false);
        }
        if (a.isDynamic && a.dynamicTexture == b.dynamicTexture)
        {
            return(true);
        }
        return(a == b || a.References(b) || b.References(a));
    }
Esempio n. 6
0
 public static bool CheckIfRelated(UIFont a, UIFont b)
 {
     if ((a == null) || (b == null))
     {
         return(false);
     }
     if (((!a.isDynamic || !b.isDynamic) || (a.dynamicFont.fontNames[0] != b.dynamicFont.fontNames[0])) && ((a != b) && !a.References(b)))
     {
         return(b.References(a));
     }
     return(true);
 }
Esempio n. 7
0
    /// <summary>
    /// Helper function that determines whether the two atlases are related.
    /// </summary>

    static public bool CheckIfRelated(UIFont a, UIFont b)
    {
        if (a == null || b == null)
        {
            return(false);
        }
#if DYNAMIC_FONT
        if (a.isDynamic && b.isDynamic && a.dynamicFont.fontNames[0] == b.dynamicFont.fontNames[0])
        {
            return(true);
        }
#endif
        return(a == b || a.References(b) || b.References(a));
    }
Esempio n. 8
0
	/// <summary>
	/// Helper function that determines whether the two atlases are related.
	/// </summary>

	static public bool CheckIfRelated (UIFont a, UIFont b)
	{
		if (a == null || b == null) return false;
#if DYNAMIC_FONT && !UNITY_FLASH
		if (a.isDynamic && b.isDynamic && a.dynamicFont.fontNames[0] == b.dynamicFont.fontNames[0]) return true;
#endif
		return a == b || a.References(b) || b.References(a);
	}
Esempio n. 9
0
 public static bool CheckIfRelated(UIFont a, UIFont b)
 {
     if ((a == null) || (b == null))
     {
         return(false);
     }
     return(((a.isDynamic && b.isDynamic) && (a.dynamicFont.fontNames[0] == b.dynamicFont.fontNames[0])) || (((a == b) || a.References(b)) || b.References(a)));
 }
Esempio n. 10
0
	/// <summary>
	/// Helper function that determines whether the two atlases are related.
	/// </summary>

	static public bool CheckIfRelated (UIFont a, UIFont b)
	{
		if (a == null || b == null) return false;
		return a == b || a.References(b) || b.References(a);
	}
Esempio n. 11
0
 // Token: 0x0600358D RID: 13709 RVA: 0x0010FD68 File Offset: 0x0010E168
 public static bool CheckIfRelated(UIFont a, UIFont b)
 {
     return(!(a == null) && !(b == null) && ((a.isDynamic && b.isDynamic && a.dynamicFont.fontNames[0] == b.dynamicFont.fontNames[0]) || a == b || a.References(b) || b.References(a)));
 }
Esempio n. 12
0
 /// <summary>
 /// Helper function that determines whether the two atlases are related.
 /// </summary>
 public static bool CheckIfRelated(UIFont a, UIFont b)
 {
     if (a == null || b == null) return false;
     if (a.isDynamic && a.dynamicTexture == b.dynamicTexture) return true;
     return a == b || a.References(b) || b.References(a);
 }
 public static bool CheckIfRelated(UIFont a, UIFont b)
 {
     return !(a == null) && !(b == null) && ((a.isDynamic && b.isDynamic && a.dynamicFont.get_fontNames()[a.dynamicFont.get_fontNames().Length - 1] == b.dynamicFont.get_fontNames()[b.dynamicFont.get_fontNames().Length - 1]) || a == b || a.References(b) || b.References(a));
 }
Esempio n. 14
0
 public static bool CheckIfRelated(UIFont a, UIFont b)
 {
     if ((a == null) || (b == null))
     {
         return false;
     }
     return (((a.isDynamic && b.isDynamic) && (a.dynamicFont.fontNames[0] == b.dynamicFont.fontNames[0])) || (((a == b) || a.References(b)) || b.References(a)));
 }
Esempio n. 15
0
 public static bool CheckIfRelated(UIFont a, UIFont b)
 {
     return !(a == null) && !(b == null) && ((a.isDynamic && b.isDynamic && a.dynamicFont.fontNames[0] == b.dynamicFont.fontNames[0]) || a == b || a.References(b) || b.References(a));
 }
Esempio n. 16
0
 public static Boolean CheckIfRelated(UIFont a, UIFont b)
 {
     return(!(a == (UnityEngine.Object)null) && !(b == (UnityEngine.Object)null) && ((a.isDynamic && b.isDynamic && a.dynamicFont.fontNames[0] == b.dynamicFont.fontNames[0]) || a == b || a.References(b) || b.References(a)));
 }