Exemplo n.º 1
0
 private static void MPCharCtrl_OnClickRoot_Postfix(int _idx)
 {
     if (_idx == 0)
     {
         CharaStudio.UpdateUI();
     }
 }
Exemplo n.º 2
0
            internal void InitCurOutfitTriggerInfo(string _caller)
            {
                RefreshCache();

                if (JetPack.CharaStudio.Loaded && !TriggerEnabled)
                {
                    return;
                }

                int _count = _cachedCoordinatePropertyList.Count;

                DebugMsg(LogLevel.Info, $"[InitCurOutfitTriggerInfo][{CharaFullName}][{_caller}][CoordinatePropertyList.Count: {_count}]");

                if (JetPack.CharaMaker.Loaded)
                {
                    if (_duringLoadChange)
                    {
                        StartCoroutine(LoadChangeCoroutine());
                    }
                    StartCoroutine(AccSlotChangedHandlerCoroutine());
                }
                else if (JetPack.CharaStudio.Loaded)
                {
                    DebugMsg(LogLevel.Info, $"[InitCurOutfitTriggerInfo][CurTreeNodeObjID: {CharaStudio._curTreeNodeObjID}][TreeNodeObjID: {_treeNodeObjID}]");
                    if (CharaStudio.IsCharaSelected(ChaControl))
                    {
                        RefreshPreview(_caller);
                    }
                    if (CharaStudio._curTreeNodeObjID == _treeNodeObjID)
                    {
                        CharaStudio.UpdateUI();
                        StartCoroutine(CharaStudio.StatusPanelUpdateCoroutine());
                    }
                }
                else if (JetPack.CharaHscene.Loaded)
                {
                    RefreshPreview(_caller);
                    CharaHscene.ClearUI();
                    CharaHscene.UpdateUI();
                }
                else
                {
                    RefreshPreview(_caller);
                }
            }