hi, sure! I added this in the next update
the new option to be used with the generic marker's alpha, and API for GetMarkerInfo has changed so there are less allocations
[JsonProperty(PropertyName = en ? "Map Marker Circle Opacity (0-1)" : "Непрозрачность круга маркера на карте (0-1)")]
public float Opacity = 0.75f;
public void GetMarkerInfo(Dictionary<string, object> dict)
{
bool showDespawnTime = AllowPVP ? !Options.HideDespawnTimePVP : !Options.HideDespawnTimePVE;
string despawnText = showDespawnTime && DespawnTime > 0 ? string.Format(" [{0}]", mx("UIFormatLockoutMinutes", null, DespawnTime)) : null;
string shopName = (markerName == MarkerName ? mx("MapMarkerOrderWithMode", null, mx(GetAllowKey()), Mode(), markerName, despawnText) : string.Format("{0} {1}", mx(GetAllowKey()), markerName)).Replace("{basename}", BaseName).Trim(); ;
dict["color1"] = GetMarkerColor1();
dict["color2"] = GetMarkerColor2();
dict["radius"] = Mathf.Min(2.5f, World.Size <= 3600 ? config.Settings.Markers.SubRadius : config.Settings.Markers.Radius);
dict["alpha"] = config.Settings.Markers.Opacity;
dict["shopName"] = shopName;
}
[HookMethod("GetMarkerInfo")]
public void GetMarkerInfo(Dictionary<string, object> dict, Vector3 position, float x = 0f)
{
if (dict == null)
{
return;
}
for (int i = 0; i < Raids.Count; i++)
{
if (InRange2D(Raids[i].Location, position, Raids[i].ProtectionRadius + x))
{
Raids[i].GetMarkerInfo(dict);
break;
}
}
}