mirror of
https://github.com/thegeneralist01/Scene-Manager-DevRepo
synced 2026-01-11 23:50:29 +01:00
Updated reference names based on refactorings. Added check during waypoint blip creation whether blips are enabled in order to set the correct blip.Alpha
This commit is contained in:
parent
6941f26141
commit
a4e85eab51
1 changed files with 7 additions and 11 deletions
|
|
@ -73,7 +73,7 @@ namespace SceneManager
|
||||||
{
|
{
|
||||||
AddNewPathToPathsCollection(PathMainMenu.GetPaths(), 0);
|
AddNewPathToPathsCollection(PathMainMenu.GetPaths(), 0);
|
||||||
|
|
||||||
if (SettingsMenu.debugGraphics.Checked)
|
if (SettingsMenu.threeDWaypoints.Checked)
|
||||||
{
|
{
|
||||||
DebugGraphics.LoopToDrawDebugGraphics(PathMainMenu.GetPaths()[0]);
|
DebugGraphics.LoopToDrawDebugGraphics(PathMainMenu.GetPaths()[0]);
|
||||||
}
|
}
|
||||||
|
|
@ -82,7 +82,7 @@ namespace SceneManager
|
||||||
{
|
{
|
||||||
AddNewPathToPathsCollection(PathMainMenu.GetPaths(), PathMainMenu.GetPaths().IndexOf(PathMainMenu.GetPaths().Where(p => p.State == State.Finished).First()) + 1);
|
AddNewPathToPathsCollection(PathMainMenu.GetPaths(), PathMainMenu.GetPaths().IndexOf(PathMainMenu.GetPaths().Where(p => p.State == State.Finished).First()) + 1);
|
||||||
|
|
||||||
if (SettingsMenu.debugGraphics.Checked)
|
if (SettingsMenu.threeDWaypoints.Checked)
|
||||||
{
|
{
|
||||||
DebugGraphics.LoopToDrawDebugGraphics(PathMainMenu.GetPaths().Where(p => p != null && p.State == State.Creating).First());
|
DebugGraphics.LoopToDrawDebugGraphics(PathMainMenu.GetPaths().Where(p => p != null && p.State == State.Creating).First());
|
||||||
}
|
}
|
||||||
|
|
@ -206,7 +206,7 @@ namespace SceneManager
|
||||||
private static float SetDriveSpeedForWaypoint()
|
private static float SetDriveSpeedForWaypoint()
|
||||||
{
|
{
|
||||||
float convertedSpeed;
|
float convertedSpeed;
|
||||||
if (SettingsMenu.speedUnits.SelectedItem == SettingsMenu.SpeedUnitsOfMeasure.MPH)
|
if (SettingsMenu.speedUnits.SelectedItem == SpeedUnits.MPH)
|
||||||
{
|
{
|
||||||
//Game.LogTrivial($"Original speed: {waypointSpeeds[waypointSpeed.Index]}{SettingsMenu.speedUnits.SelectedItem}");
|
//Game.LogTrivial($"Original speed: {waypointSpeeds[waypointSpeed.Index]}{SettingsMenu.speedUnits.SelectedItem}");
|
||||||
convertedSpeed = MathHelper.ConvertMilesPerHourToMetersPerSecond(waypointSpeed.Value);
|
convertedSpeed = MathHelper.ConvertMilesPerHourToMetersPerSecond(waypointSpeed.Value);
|
||||||
|
|
@ -244,14 +244,10 @@ namespace SceneManager
|
||||||
blip.Color = Color.Green;
|
blip.Color = Color.Green;
|
||||||
}
|
}
|
||||||
|
|
||||||
//if (PathMainMenu.GetPaths()[pathIndex].Waypoints.Count == 0)
|
if (!SettingsMenu.mapBlips.Checked)
|
||||||
//{
|
{
|
||||||
// blip.Color = Color.Orange;
|
blip.Alpha = 0f;
|
||||||
//}
|
}
|
||||||
//else
|
|
||||||
//{
|
|
||||||
// blip.Color = Color.Yellow;
|
|
||||||
//}
|
|
||||||
|
|
||||||
return blip;
|
return blip;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue