コード例 #1
0
ファイル: CASTattooExpanded.cs プロジェクト: yakoder/NRaas
        private static void SetActiveTattooType(CASTattoo ths, CASTattoo.TattooID tattooID, bool forceRefresh)
        {
            if ((ths.mActiveTattooID != tattooID) || forceRefresh)
            {
                ths.mActiveTattooID = tattooID;
                bool flag = false;
                foreach (CASPart part in ths.mTattooParts)
                {
                    if (part.Key.InstanceId == (ulong)ths.mActiveTattooID)
                    {
                        ths.mActiveTattooPart = part;
                        flag = true;
                        break;
                    }
                }

                if (flag)
                {
                    SetTattooCam(ths, ths.mActiveTattooID);
                    ths.UpdateCurrentPreset();
                    ths.ClearTemplates();
                    ths.PopulateTattooGrid(true);
                }
            }
        }
コード例 #2
0
ファイル: CASTattooExpanded.cs プロジェクト: yakoder/NRaas
        private static void SetTattooCam(CASTattoo ths, CASTattoo.TattooID tattooId)
        {
            CameraAdjustment adjustment;

            if (!sCameraAdjustments.TryGetValue((TattooID)tattooId, out adjustment))
            {
                ths.SetTattooCam(tattooId);
                return;
            }

            adjustment(ths);
        }