81 lines
2.9 KiB
C#
81 lines
2.9 KiB
C#
using System;
|
|
|
|
namespace UnityEngine
|
|
{
|
|
// Token: 0x0200023B RID: 571
|
|
public struct TextGenerationSettings
|
|
{
|
|
// Token: 0x06002740 RID: 10048 RVA: 0x0002CCE4 File Offset: 0x0002AEE4
|
|
private bool CompareColors(Color left, Color right)
|
|
{
|
|
return Mathf.Approximately(left.r, right.r) && Mathf.Approximately(left.g, right.g) && Mathf.Approximately(left.b, right.b) && Mathf.Approximately(left.a, right.a);
|
|
}
|
|
|
|
// Token: 0x06002741 RID: 10049 RVA: 0x0002CD58 File Offset: 0x0002AF58
|
|
private bool CompareVector2(Vector2 left, Vector2 right)
|
|
{
|
|
return Mathf.Approximately(left.x, right.x) && Mathf.Approximately(left.y, right.y);
|
|
}
|
|
|
|
// Token: 0x06002742 RID: 10050 RVA: 0x0002CD9C File Offset: 0x0002AF9C
|
|
public bool Equals(TextGenerationSettings other)
|
|
{
|
|
return this.CompareColors(this.color, other.color) && this.fontSize == other.fontSize && Mathf.Approximately(this.scaleFactor, other.scaleFactor) && this.resizeTextMinSize == other.resizeTextMinSize && this.resizeTextMaxSize == other.resizeTextMaxSize && Mathf.Approximately(this.lineSpacing, other.lineSpacing) && this.fontStyle == other.fontStyle && this.richText == other.richText && this.textAnchor == other.textAnchor && this.alignByGeometry == other.alignByGeometry && this.resizeTextForBestFit == other.resizeTextForBestFit && this.resizeTextMinSize == other.resizeTextMinSize && this.resizeTextMaxSize == other.resizeTextMaxSize && this.resizeTextForBestFit == other.resizeTextForBestFit && this.updateBounds == other.updateBounds && this.horizontalOverflow == other.horizontalOverflow && this.verticalOverflow == other.verticalOverflow && this.CompareVector2(this.generationExtents, other.generationExtents) && this.CompareVector2(this.pivot, other.pivot) && this.font == other.font;
|
|
}
|
|
|
|
// Token: 0x040006A0 RID: 1696
|
|
public Font font;
|
|
|
|
// Token: 0x040006A1 RID: 1697
|
|
public Color color;
|
|
|
|
// Token: 0x040006A2 RID: 1698
|
|
public int fontSize;
|
|
|
|
// Token: 0x040006A3 RID: 1699
|
|
public float lineSpacing;
|
|
|
|
// Token: 0x040006A4 RID: 1700
|
|
public bool richText;
|
|
|
|
// Token: 0x040006A5 RID: 1701
|
|
public float scaleFactor;
|
|
|
|
// Token: 0x040006A6 RID: 1702
|
|
public FontStyle fontStyle;
|
|
|
|
// Token: 0x040006A7 RID: 1703
|
|
public TextAnchor textAnchor;
|
|
|
|
// Token: 0x040006A8 RID: 1704
|
|
public bool alignByGeometry;
|
|
|
|
// Token: 0x040006A9 RID: 1705
|
|
public bool resizeTextForBestFit;
|
|
|
|
// Token: 0x040006AA RID: 1706
|
|
public int resizeTextMinSize;
|
|
|
|
// Token: 0x040006AB RID: 1707
|
|
public int resizeTextMaxSize;
|
|
|
|
// Token: 0x040006AC RID: 1708
|
|
public bool updateBounds;
|
|
|
|
// Token: 0x040006AD RID: 1709
|
|
public VerticalWrapMode verticalOverflow;
|
|
|
|
// Token: 0x040006AE RID: 1710
|
|
public HorizontalWrapMode horizontalOverflow;
|
|
|
|
// Token: 0x040006AF RID: 1711
|
|
public Vector2 generationExtents;
|
|
|
|
// Token: 0x040006B0 RID: 1712
|
|
public Vector2 pivot;
|
|
|
|
// Token: 0x040006B1 RID: 1713
|
|
public bool generateOutOfBounds;
|
|
}
|
|
}
|