Skip to content

Commit

Permalink
Fixed a GButton pivot issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoguzhu committed Aug 1, 2018
1 parent a9e1b10 commit e04e0ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Scripts/UI/GButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ override public void ConstructFromXML(XML cxml)
_downEffect = str == "dark" ? 1 : (str == "scale" ? 2 : 0);
_downEffectValue = xml.GetAttributeFloat("downEffectValue");
if (_downEffect == 2)
this.SetPivot(0.5f, 0.5f);
this.SetPivot(0.5f, 0.5f, this.pivotAsAnchor);
}

_buttonController = GetController("button");
Expand Down

0 comments on commit e04e0ca

Please sign in to comment.