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); } } }
private static void SetTattooCam(CASTattoo ths, CASTattoo.TattooID tattooId) { CameraAdjustment adjustment; if (!sCameraAdjustments.TryGetValue((TattooID)tattooId, out adjustment)) { ths.SetTattooCam(tattooId); return; } adjustment(ths); }