public int hud_ArrowShow(float x, float y, String dir) { dir = dir.ToLower(); var a = new Graphics.Overlays.Arrow(); a.Position = new Microsoft.Xna.Framework.Vector2(x, y); a.Initialize(); if (dir == "right") { a.Direction = Direction.Right; } else if (dir == "rightdown" || dir == "downright") { a.Direction = Direction.DownRight; } else if (dir == "down") { a.Direction = Direction.Down; } else if (dir == "downleft" || dir == "leftdown") { a.Direction = Direction.DownLeft; } else if (dir == "left") { a.Direction = Direction.Left; } else if (dir == "leftup" || dir == "upleft") { a.Direction = Direction.LeftUp; } else if (dir == "up") { a.Direction = Direction.Up; } else if (dir == "upright" || dir == "rightup") { a.Direction = Direction.RightUp; } Graphics.OverlayManager.Add(a); return(a.ID); }
public int hud_ArrowShow(float x, float y, String dir) { dir = dir.ToLower(); var a = new Graphics.Overlays.Arrow(); a.Position = new Microsoft.Xna.Framework.Vector2(x, y); a.Initialize(); if (dir == "right") a.Direction = Direction.Right; else if (dir == "rightdown" || dir == "downright") a.Direction = Direction.DownRight; else if (dir == "down") a.Direction = Direction.Down; else if (dir == "downleft" || dir == "leftdown") a.Direction = Direction.DownLeft; else if (dir == "left") a.Direction = Direction.Left; else if (dir == "leftup" || dir == "upleft") a.Direction = Direction.LeftUp; else if (dir == "up") a.Direction = Direction.Up; else if (dir == "upright" || dir == "rightup") a.Direction = Direction.RightUp; Graphics.OverlayManager.Add(a); return a.ID; }