From e04e0ca1c1339200fe442f0b885a8cef7e12bc72 Mon Sep 17 00:00:00 2001 From: "guzhu@fairygui.com" Date: Wed, 1 Aug 2018 23:21:59 +0800 Subject: [PATCH] Fixed a GButton pivot issue. --- Source/Scripts/UI/GButton.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Scripts/UI/GButton.cs b/Source/Scripts/UI/GButton.cs index aef58730..ec82d984 100644 --- a/Source/Scripts/UI/GButton.cs +++ b/Source/Scripts/UI/GButton.cs @@ -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");