Beispiel #1
0
		public void ArrowHud_DestinationChanged(object sender, DestinationChangedEventArgs e)
		{
			RepaintAll();
		}
		private void mArrowHud_DestinationChanged(object sender, DestinationChangedEventArgs e)
		{
			string coordsStr = mArrowHud.DestinationCoords.ToString();
			edtArrowCoords.Text = coordsStr;
			edtArrowCoords.Caret = 0;

			if (mArrowHud.HasDestinationLocation)
			{
				AddToRecentCoords(mArrowHud.DestinationLocation.Icon, mArrowHud.DestinationLocation.Name, mArrowHud.DestinationCoords);
			}
			else if (mArrowHud.HasDestinationObject)
			{
				AddToRecentCoords(mArrowHud.DestinationObject.Icon, mArrowHud.DestinationObject.Name, mArrowHud.DestinationCoords);
			}
			else
			{
				AddToRecentCoords(mArrowHud.DestinationCoords);
			}
		}