public void SetAlignement(HorizontalAlignment h, VerticalAlignment v) { //IL_001f: Unknown result type (might be due to invalid IL or missing references) //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_00f5: Unknown result type (might be due to invalid IL or missing references) //IL_00fa: Unknown result type (might be due to invalid IL or missing references) //IL_00fb: Unknown result type (might be due to invalid IL or missing references) //IL_0101: Unknown result type (might be due to invalid IL or missing references) //IL_0102: Unknown result type (might be due to invalid IL or missing references) //IL_0108: Unknown result type (might be due to invalid IL or missing references) //IL_0109: Unknown result type (might be due to invalid IL or missing references) //IL_010f: Unknown result type (might be due to invalid IL or missing references) m_horizontalAlignment = h; m_verticalAlignment = v; Vector2 anchoredPosition = default(Vector2); anchoredPosition._002Ector(0f, 0f); Vector2 zero = Vector2.get_zero(); Vector2 val = default(Vector2); val._002Ector(1f, 0f); switch (h) { case HorizontalAlignment.Left: anchoredPosition.x = 0f - m_spacing; zero.x = 1f; val.x = 0f; break; case HorizontalAlignment.Right: anchoredPosition.x = m_spacing; zero.x = 0f; val.x = 1f; break; default: throw new ArgumentOutOfRangeException("h", h, null); } switch (v) { case VerticalAlignment.Up: zero.y = 1f; val.y = 1f; break; case VerticalAlignment.Down: zero.y = 0f; val.y = 0f; break; default: throw new ArgumentOutOfRangeException("v", v, null); } _003F val2 = this.get_transform(); val2.set_pivot(zero); val2.set_anchorMin(val); val2.set_anchorMax(val); val2.set_anchoredPosition(anchoredPosition); }
public unsafe void ShowAt(TooltipPosition position, Vector3 worldPosition) { //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_000b: Unknown result type (might be due to invalid IL or missing references) //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0014: Unknown result type (might be due to invalid IL or missing references) //IL_001e: Unknown result type (might be due to invalid IL or missing references) //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Expected O, but got Unknown //IL_002a: Unknown result type (might be due to invalid IL or missing references) //IL_0030: Expected O, but got Unknown //IL_002b: Unknown result type (might be due to invalid IL or missing references) //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_0037: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Unknown result type (might be due to invalid IL or missing references) //IL_004b: Unknown result type (might be due to invalid IL or missing references) //IL_0107: Unknown result type (might be due to invalid IL or missing references) _003F val = this.get_transform(); Vector3 lossyScale = val.get_lossyScale(); val.set_pivot(GetPivotFor(position)); RectTransform transform = val.get_root(); Rect val2 = RectTransformToScreenSpace(val, worldPosition); Rect rect = RectTransformToScreenSpace(transform); Enlarge(ref rect, -10f * ((IntPtr)(void *)lossyScale).x, -10f * ((IntPtr)(void *)lossyScale).y); float num = rect.get_xMax() - val2.get_xMax(); float num2 = val2.get_xMin() - rect.get_xMin(); float num3 = rect.get_yMax() - val2.get_yMax(); float num4 = val2.get_yMin() - rect.get_yMin(); m_borderDistanceToScreen = new RectOffset(num2, num, num3, num4); if (num < 0f) { worldPosition.x += num; } if (num2 < 0f) { worldPosition.x -= num2; } if (num3 < 0f) { worldPosition.y += num3; } if (num4 < 0f) { worldPosition.y -= num4; } DisplayTooltip(worldPosition); }