|
@@ -189,7 +189,7 @@ namespace GFGGame
|
|
else
|
|
else
|
|
{
|
|
{
|
|
btnClose = new GGraph();
|
|
btnClose = new GGraph();
|
|
- btnClose.DrawRect(GRoot.inst.width, GRoot.inst.height, 0, Color.red, UIConfig.modalLayerColor);
|
|
|
|
|
|
+ btnClose.DrawRect(ViewManager.ViewWidth, GRoot.inst.height, 0, Color.red, UIConfig.modalLayerColor);
|
|
btnClose.AddRelation(GRoot.inst, RelationType.Size);
|
|
btnClose.AddRelation(GRoot.inst, RelationType.Size);
|
|
btnClose.alpha = 0;
|
|
btnClose.alpha = 0;
|
|
}
|
|
}
|