private void HandleBorderCornerScalingHandles()
{
if (this.selected != null)
{
GUIStyle dragBorderdot = SpriteUtilityWindow.s_Styles.dragBorderdot;
GUIStyle dragBorderDotActive = SpriteUtilityWindow.s_Styles.dragBorderDotActive;
Color color = new Color(0f, 1f, 0f);
Rect rect = new Rect(this.selected.m_Rect);
Vector4 border = this.selected.m_Border;
float x = rect.xMin + border.x;
float num2 = rect.xMax - border.z;
float y = rect.yMax - border.w;
float num4 = rect.yMin + border.y;
EditorGUI.BeginChangeCheck();
this.HandleBorderPointSlider(ref x, ref y, MouseCursor.ResizeUpLeft, (border.x < 1f) && (border.w < 1f), dragBorderdot, dragBorderDotActive, color);
this.HandleBorderPointSlider(ref num2, ref y, MouseCursor.ResizeUpRight, (border.z < 1f) && (border.w < 1f), dragBorderdot, dragBorderDotActive, color);
this.HandleBorderPointSlider(ref x, ref num4, MouseCursor.ResizeUpRight, (border.x < 1f) && (border.y < 1f), dragBorderdot, dragBorderDotActive, color);
this.HandleBorderPointSlider(ref num2, ref num4, MouseCursor.ResizeUpLeft, (border.z < 1f) && (border.y < 1f), dragBorderdot, dragBorderDotActive, color);
if (EditorGUI.EndChangeCheck())
{
Undo.RegisterCompleteObjectUndo(this.m_RectsCache, "Scale sprite border");
border.x = x - rect.xMin;
border.z = rect.xMax - num2;
border.w = rect.yMax - y;
border.y = num4 - rect.yMin;
this.textureIsDirty = true;
}
this.selected.m_Border = this.ClampSpriteBorder(border);
}
}