|
@@ -82,7 +82,7 @@ namespace Fort23.Mono.Phases
|
|
|
{
|
|
{
|
|
|
pgm.StepInit();
|
|
pgm.StepInit();
|
|
|
await TimerComponent.Instance.WaitAsync(100);
|
|
await TimerComponent.Instance.WaitAsync(100);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
GameObject gameObject = UIManager.Instance.GetComponent<ShopPanel>()._shopBtnWidgets[0].own;
|
|
GameObject gameObject = UIManager.Instance.GetComponent<ShopPanel>()._shopBtnWidgets[0].own;
|
|
|
Vector3 localPos = pgm.WorldPosToLocalPos(gameObject.transform.position);
|
|
Vector3 localPos = pgm.WorldPosToLocalPos(gameObject.transform.position);
|
|
|
Vector2 size = gameObject.GetComponent<RectTransform>().sizeDelta;
|
|
Vector2 size = gameObject.GetComponent<RectTransform>().sizeDelta;
|
|
@@ -92,7 +92,7 @@ namespace Fort23.Mono.Phases
|
|
|
pgm.SetShowFramePosAndSize(localPos, size, 0, gameObject);
|
|
pgm.SetShowFramePosAndSize(localPos, size, 0, gameObject);
|
|
|
await pgm.ConfigLogic(701, delegate() { });
|
|
await pgm.ConfigLogic(701, delegate() { });
|
|
|
|
|
|
|
|
- pgm.SetFingerPos(localPos);
|
|
|
|
|
|
|
+ pgm.SetFingerPos(pgm.Setpos(localPos, size, gameObject));
|
|
|
pgm.SetFingerVisiable(true);
|
|
pgm.SetFingerVisiable(true);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -102,10 +102,9 @@ namespace Fort23.Mono.Phases
|
|
|
/// <param name="obj"></param>
|
|
/// <param name="obj"></param>
|
|
|
public async CTask OnStep702(UnityEngine.Object obj)
|
|
public async CTask OnStep702(UnityEngine.Object obj)
|
|
|
{
|
|
{
|
|
|
-
|
|
|
|
|
pgm.StepInit();
|
|
pgm.StepInit();
|
|
|
await TimerComponent.Instance.WaitAsync(100);
|
|
await TimerComponent.Instance.WaitAsync(100);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
GameObject gameObject = null;
|
|
GameObject gameObject = null;
|
|
|
ShopPanel shopPanel = UIManager.Instance.GetComponent<ShopPanel>();
|
|
ShopPanel shopPanel = UIManager.Instance.GetComponent<ShopPanel>();
|
|
|
foreach (var shopPanelShopGroupWidgetType1 in shopPanel._shopGroupWidgetType1s)
|
|
foreach (var shopPanelShopGroupWidgetType1 in shopPanel._shopGroupWidgetType1s)
|
|
@@ -136,10 +135,9 @@ namespace Fort23.Mono.Phases
|
|
|
/// <param name="obj"></param>
|
|
/// <param name="obj"></param>
|
|
|
public async CTask OnStep703(UnityEngine.Object obj)
|
|
public async CTask OnStep703(UnityEngine.Object obj)
|
|
|
{
|
|
{
|
|
|
-
|
|
|
|
|
pgm.StepInit();
|
|
pgm.StepInit();
|
|
|
await TimerComponent.Instance.WaitAsync(100);
|
|
await TimerComponent.Instance.WaitAsync(100);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
GameObject gameObject = UIManager.Instance.GetComponent<ShopGachaPanel>().Btn_LingQu.gameObject;
|
|
GameObject gameObject = UIManager.Instance.GetComponent<ShopGachaPanel>().Btn_LingQu.gameObject;
|
|
|
Vector3 localPos = pgm.WorldPosToLocalPos(gameObject.transform.position);
|
|
Vector3 localPos = pgm.WorldPosToLocalPos(gameObject.transform.position);
|
|
|
Vector2 size = gameObject.GetComponent<RectTransform>().sizeDelta;
|
|
Vector2 size = gameObject.GetComponent<RectTransform>().sizeDelta;
|
|
@@ -161,7 +159,7 @@ namespace Fort23.Mono.Phases
|
|
|
{
|
|
{
|
|
|
pgm.StepInit();
|
|
pgm.StepInit();
|
|
|
await TimerComponent.Instance.WaitAsync(100);
|
|
await TimerComponent.Instance.WaitAsync(100);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
GameObject gameObject = UIManager.Instance.GetComponent<ShopPanel>()._shopBtnWidgets[1].own;
|
|
GameObject gameObject = UIManager.Instance.GetComponent<ShopPanel>()._shopBtnWidgets[1].own;
|
|
|
Vector3 localPos = pgm.WorldPosToLocalPos(gameObject.transform.position);
|
|
Vector3 localPos = pgm.WorldPosToLocalPos(gameObject.transform.position);
|
|
|
Vector2 size = gameObject.GetComponent<RectTransform>().sizeDelta;
|
|
Vector2 size = gameObject.GetComponent<RectTransform>().sizeDelta;
|
|
@@ -171,7 +169,7 @@ namespace Fort23.Mono.Phases
|
|
|
pgm.SetShowFramePosAndSize(localPos, size, 0, gameObject);
|
|
pgm.SetShowFramePosAndSize(localPos, size, 0, gameObject);
|
|
|
await pgm.ConfigLogic(704, delegate() { });
|
|
await pgm.ConfigLogic(704, delegate() { });
|
|
|
|
|
|
|
|
- pgm.SetFingerPos(localPos);
|
|
|
|
|
|
|
+ pgm.SetFingerPos(pgm.Setpos(localPos, size, gameObject));
|
|
|
pgm.SetFingerVisiable(true);
|
|
pgm.SetFingerVisiable(true);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -184,7 +182,7 @@ namespace Fort23.Mono.Phases
|
|
|
{
|
|
{
|
|
|
pgm.StepInit();
|
|
pgm.StepInit();
|
|
|
await TimerComponent.Instance.WaitAsync(100);
|
|
await TimerComponent.Instance.WaitAsync(100);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
GameObject gameObject =
|
|
GameObject gameObject =
|
|
|
(UIManager.Instance.GetComponent<ShopPanel>()._shopGroupWidgetType1s[0] as ShopGroupWidgetType1)
|
|
(UIManager.Instance.GetComponent<ShopPanel>()._shopGroupWidgetType1s[0] as ShopGroupWidgetType1)
|
|
|
._shopItemWidgetType2s[4].own;
|
|
._shopItemWidgetType2s[4].own;
|
|
@@ -209,7 +207,7 @@ namespace Fort23.Mono.Phases
|
|
|
{
|
|
{
|
|
|
pgm.StepInit();
|
|
pgm.StepInit();
|
|
|
await TimerComponent.Instance.WaitAsync(100);
|
|
await TimerComponent.Instance.WaitAsync(100);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
GameObject gameObject =
|
|
GameObject gameObject =
|
|
|
UIManager.Instance.GetComponent<ShopBuyItemPanel>().Btn_Function.gameObject;
|
|
UIManager.Instance.GetComponent<ShopBuyItemPanel>().Btn_Function.gameObject;
|
|
|
Vector3 localPos = pgm.WorldPosToLocalPos(gameObject.transform.position);
|
|
Vector3 localPos = pgm.WorldPosToLocalPos(gameObject.transform.position);
|
|
@@ -220,7 +218,7 @@ namespace Fort23.Mono.Phases
|
|
|
pgm.SetShowFramePosAndSize(localPos, size, 0, gameObject);
|
|
pgm.SetShowFramePosAndSize(localPos, size, 0, gameObject);
|
|
|
await pgm.ConfigLogic(706, delegate() { });
|
|
await pgm.ConfigLogic(706, delegate() { });
|
|
|
|
|
|
|
|
- pgm.SetFingerPos(localPos);
|
|
|
|
|
|
|
+ pgm.SetFingerPos(pgm.Setpos(localPos, size, gameObject));
|
|
|
pgm.SetFingerVisiable(true);
|
|
pgm.SetFingerVisiable(true);
|
|
|
|
|
|
|
|
UIManager.Instance.HideUIUIPanel<ShopPanel>();
|
|
UIManager.Instance.HideUIUIPanel<ShopPanel>();
|