|
@@ -634,14 +634,17 @@ namespace Fort23.Mono
|
|
|
RefreshFull();
|
|
|
|
|
|
|
|
|
- // if (isShowBG)
|
|
|
- // {
|
|
|
- //
|
|
|
- // uiPanel.IsShowCustomBGPanel = true;
|
|
|
- // if (!AllShowBGUIs.Contains(uiPanel))
|
|
|
- // AllShowBGUIs.Add(uiPanel);
|
|
|
- // await GetBackgroundPanel(uiPanel, GetLayer(layer));
|
|
|
- // }
|
|
|
+ if (isShowBG)
|
|
|
+ {
|
|
|
+ var popupPanel = GetComponent(BackgroundPanelType) as UIPanel;
|
|
|
+ // popupPanel.transform.SetAsFirstSibling();
|
|
|
+ int index01 = uiPanel.GObjectPoolInterface.transform.GetSiblingIndex();
|
|
|
+ popupPanel.transform.SetSiblingIndex(index01 - 1);
|
|
|
+ // uiPanel.IsShowCustomBGPanel = true;
|
|
|
+ // if (!AllShowBGUIs.Contains(uiPanel))
|
|
|
+ // AllShowBGUIs.Add(uiPanel);
|
|
|
+ // await GetBackgroundPanel(uiPanel, GetLayer(layer));
|
|
|
+ }
|
|
|
|
|
|
return uiPanel;
|
|
|
}
|
|
@@ -1344,7 +1347,7 @@ namespace Fort23.Mono
|
|
|
}
|
|
|
|
|
|
popupPanel.transform.SetParent(parent, false);
|
|
|
- popupPanel.transform.SetAsFirstSibling();
|
|
|
+ // popupPanel.transform.SetAsFirstSibling();
|
|
|
int index01 = uiPanel.GObjectPoolInterface.transform.GetSiblingIndex();
|
|
|
// popupPanel.transform.SetParent(parent, false);
|
|
|
|