private static bool Prefix(GlobalMapLocation __instance) { if (IsShiftPressed) { CustomGlobalMapLocations.CustomizeGlobalMapLocation(__instance); } // Don't pass the click through to the map if control or shift are pressed return(!(IsControlPressed || IsShiftPressed)); }
private static void Postfix(GlobalMapLocation __instance, bool isHover) { CustomGlobalMapLocations.PostHandleHoverchange(__instance, isHover); }