private void HandleBorderSidePointScalingSliders()
{
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 = 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();
float num5 = num4 - ((num4 - y) / 2f);
float num6 = x - ((x - num2) / 2f);
float num7 = num5;
this.HandleBorderPointSlider(ref x, ref num7, MouseCursor.ResizeHorizontal, false, dragBorderdot, dragBorderDotActive, color);
num7 = num5;
this.HandleBorderPointSlider(ref num2, ref num7, MouseCursor.ResizeHorizontal, false, dragBorderdot, dragBorderDotActive, color);
num7 = num6;
this.HandleBorderPointSlider(ref num7, ref y, MouseCursor.ResizeVertical, false, dragBorderdot, dragBorderDotActive, color);
num7 = num6;
this.HandleBorderPointSlider(ref num7, ref num4, MouseCursor.ResizeVertical, false, 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);
}
}