/// <summary> /// Change the visibility of the map icon /// </summary> /// <param name="theVisibility"></param> public void SetVisibility(bool theVisibility) { // change visibility itsMapIconIsVisible = theVisibility; // update KGFMinimap module if (itsMapSystem == null) { itsMapSystem = KGFAccessor.GetObject <KGFMapSystem>(); } if (itsMapSystem != null) { itsMapSystem.RefreshIconsVisibility(); } }