改动与优化
This commit is contained in:
@@ -534,6 +534,7 @@ public class uBag : MonoBehaviour
|
||||
}
|
||||
|
||||
PositionIntroduction(source, spawnedIntroduction);
|
||||
UI_OrderedEntryAnimator.PlayFadeOnly(spawnedIntroduction, 0, 0.16f, 0f, true);
|
||||
}
|
||||
|
||||
public void HidePreviewFor(uBagItemPrefab source)
|
||||
@@ -862,6 +863,7 @@ public class uBag : MonoBehaviour
|
||||
GameObject instance = Instantiate(itemPrefab, itemParent);
|
||||
instance.name = $"uBagItem_{entry.stableId}";
|
||||
spawnedItems.Add(instance);
|
||||
UI_OrderedEntryAnimator.PlaySingle(instance, spawnedItems.Count - 1, 0.18f, 0.01f, -16f, 0.965f, true);
|
||||
|
||||
uBagItemPrefab prefabView = instance.GetComponent<uBagItemPrefab>();
|
||||
if (prefabView != null)
|
||||
@@ -973,6 +975,8 @@ public class uBag : MonoBehaviour
|
||||
{
|
||||
itemDescription.text = entry.description ?? string.Empty;
|
||||
}
|
||||
|
||||
PlayRightPanelRefresh();
|
||||
}
|
||||
|
||||
private void ClearRightPanel()
|
||||
@@ -1024,6 +1028,17 @@ public class uBag : MonoBehaviour
|
||||
{
|
||||
itemDescription.text = string.Empty;
|
||||
}
|
||||
|
||||
PlayRightPanelRefresh();
|
||||
}
|
||||
|
||||
private void PlayRightPanelRefresh()
|
||||
{
|
||||
GameObject target = null;
|
||||
if (btmImg != null) target = btmImg.gameObject;
|
||||
if (target == null && itemDprofile != null) target = itemDprofile.gameObject;
|
||||
if (target == null && itemName != null) target = itemName.gameObject;
|
||||
UI_OrderedEntryAnimator.PlayRefresh(target, 0.14f, -6f, 0.99f, true);
|
||||
}
|
||||
|
||||
private static int CompareEntries(BagEntry left, BagEntry right)
|
||||
|
||||
Reference in New Issue
Block a user