public TotalsTooltipDrawer(TotalsTooltipMod mod)
 {
     modInstance = mod;
     Tracker     = new ConstructibleTotalsTracker();
     SelectionChangeNotifierData.RegisterMethod(OnSelectionChange);
     FrameChangeNotifierData.RegisterMethod(OnSelectionChange);
     TooltipToggleAdder.RegisterMethod(OnPlaySettingChange);
     LTAddNotifier.RegisterMethod(OnThingAdded);
     LTRemoveNotifier.RegisterMethod(OnThingRemove);
     FrameWorkedOnDetector.RegisterMethod(Tracker.FrameBeingBuilt);
     cameraChangeDetector = new CameraChangeDetector();
     cameraChangeDetector.RegisterMethod(OnCameraChange);
 }
 private void CheckDrawSettingToggle()
 {
     if (toggleTipDraw.KeyDownEvent)
     {
         ShouldDrawTooltip.Value = !ShouldDrawTooltip.Value;
         TooltipToggleAdder.NotifyPlaySettingToggled();
         if (ShouldDrawTooltip.Value)
         {
             SoundDefOf.Checkbox_TurnedOn.PlayOneShotOnCamera(null);
         }
         else
         {
             SoundDefOf.Checkbox_TurnedOff.PlayOneShotOnCamera(null);
         }
     }
 }