﻿using RainbowMage.OverlayPlugin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace Cactbot {
  public class CactbotOverlayConfig : OverlayConfigBase {
    public static string CactbotAssemblyUri {
      get { return System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location); }
    }
    public static string CactbotDllRelativeUserUri {
      get { return System.IO.Path.Combine(CactbotAssemblyUri, "../cactbot/user/"); }
    }
    public CactbotOverlayConfig(string name)
        : base(name) {
      // Cactbot only supports visibility toggling with the hotkey.
      // It assumes all overlays are always locked and either are
      // clickthru or not on a more permanent basis.
      GlobalHotkeyType = GlobalHotkeyType.ToggleVisible;
    }

    private CactbotOverlayConfig() : base(null) {
    }

    public override Type OverlayType {
      get { return typeof(CactbotOverlay); }
    }

    public bool LogUpdatesEnabled = true;
    public double DpsUpdatesPerSecond = 3;

    public string OverlayData = null;

    public string RemoteVersionSeen = "0.0";

    public string UserConfigFile = "";
  }
}

﻿using RainbowMage.OverlayPlugin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace Cactbot {
  public class CactbotOverlayConfig : OverlayConfigBase {
    public static string CactbotAssemblyUri {
      get { return System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location); }
    }
    public static string CactbotDllRelativeUserUri {
      get { return System.IO.Path.Combine(CactbotAssemblyUri, "../cactbot/user/"); }
    }
    public CactbotOverlayConfig(string name)
        : base(name) {
      // Cactbot only supports visibility toggling with the hotkey.
      // It assumes all overlays are always locked and either are
      // clickthru or not on a more permanent basis.
      GlobalHotkeyType = GlobalHotkeyType.ToggleVisible;
    }

    private CactbotOverlayConfig() : base(null) {
    }

    public override Type OverlayType {
      get { return typeof(CactbotOverlay); }
    }

    public bool LogUpdatesEnabled = true;
    public double DpsUpdatesPerSecond = 0;

    public string OverlayData = null;

    public string RemoteVersionSeen = "0.0";

    public string UserConfigFile = "";
  }
}

Change default dps update rate to 0
plugin: Change default dps update rate to 0

It seems far more likely that somebody is going to mess up leaving this
at 3 and dropping log lines than somebody using cactbot for a dps overlay
and it not working.

By the by, you don't need cactbot for dps overlays, you can just make them
normal overlays.  Cactbot does auto-end fights during wipes so that you
can just set your encounter rate to a billion, but that's about all it
does.
