Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
63 changes: 33 additions & 30 deletions WoWCoordsToSQLScript/WoWCoordsToSQLScript/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,36 +141,39 @@ private void btnGrabData_Click(object sender, RoutedEventArgs e)
endIndex = text.IndexOf("XEnd");
// grab the data (X ordinate)
numberOfChars = endIndex - startIndex - 1;
xOrdinate = text.Substring(startIndex, numberOfChars);
xOrdinate.Replace(" ", string.Empty);
// lbContinentCoordinates.Items.Add(logLine);

// Y ordinate
startIndex = text.IndexOf("YStart") + 6;
endIndex = text.IndexOf("YEnd");
// grab the data (Y ordinate)
numberOfChars = endIndex - startIndex - 1;
yOrdinate = text.Substring(startIndex, numberOfChars);
yOrdinate.Replace(" ", string.Empty);

// Z ordinate
startIndex = text.IndexOf("ZStart") + 6;
endIndex = text.IndexOf("ZEnd");
// grab the data (Z ordinate)
numberOfChars = endIndex - startIndex - 1;
zOrdinate = text.Substring(startIndex, numberOfChars);
zOrdinate.Replace(" ", "");

// Orientation - remove for now, as too many of these made the animation look very jerky
/*
startIndex = text.IndexOf("OStart") + 6;
endIndex = text.IndexOf("OEnd");
// grab the data (orientation)
numberOfChars = endIndex - startIndex - 1;
orientation = text.Substring(startIndex, numberOfChars);
*/

lbContinentCoordinates.Items.Add(xOrdinate + delimiter + yOrdinate + delimiter + zOrdinate);
if (numberOfChars>0)
{
xOrdinate = text.Substring(startIndex, numberOfChars);
xOrdinate.Replace(" ", string.Empty);
// lbContinentCoordinates.Items.Add(logLine);

// Y ordinate
startIndex = text.IndexOf("YStart") + 6;
endIndex = text.IndexOf("YEnd");
// grab the data (Y ordinate)
numberOfChars = endIndex - startIndex - 1;
yOrdinate = text.Substring(startIndex, numberOfChars);
yOrdinate.Replace(" ", string.Empty);

// Z ordinate
startIndex = text.IndexOf("ZStart") + 6;
endIndex = text.IndexOf("ZEnd");
// grab the data (Z ordinate)
numberOfChars = endIndex - startIndex - 1;
zOrdinate = text.Substring(startIndex, numberOfChars);
zOrdinate.Replace(" ", "");

// Orientation - remove for now, as too many of these made the animation look very jerky
/*
startIndex = text.IndexOf("OStart") + 6;
endIndex = text.IndexOf("OEnd");
// grab the data (orientation)
numberOfChars = endIndex - startIndex - 1;
orientation = text.Substring(startIndex, numberOfChars);
*/

lbContinentCoordinates.Items.Add(xOrdinate + delimiter + yOrdinate + delimiter + zOrdinate);
}
}

txtMessagePanel.Text = "Job done :-)";
Expand Down
69 changes: 0 additions & 69 deletions WoWCoordsToSQLScript/WoWCoordsToSQLScript/obj/Debug/App.g.cs

This file was deleted.

69 changes: 0 additions & 69 deletions WoWCoordsToSQLScript/WoWCoordsToSQLScript/obj/Debug/App.g.i.cs

This file was deleted.

Binary file not shown.
Binary file not shown.
Loading