public void GLDraw() { var Drawer = new clsDrawTerrainLine(); Drawer.Map = _ParentMapLink.Source; if (Program.frmMainInstance.SelectedScriptMarker == this) { GL.LineWidth(4.5F); Drawer.Colour = new SRgba(1.0F, 1.0F, 0.5F, 0.75F); } else { GL.LineWidth(3.0F); Drawer.Colour = new SRgba(1.0F, 1.0F, 0.0F, 0.5F); } Drawer.StartXY = _PosA; Drawer.FinishXY.X = _PosB.X; Drawer.FinishXY.Y = _PosA.Y; Drawer.ActionPerform(); Drawer.StartXY = _PosA; Drawer.FinishXY.X = _PosA.X; Drawer.FinishXY.Y = _PosB.Y; Drawer.ActionPerform(); Drawer.StartXY.X = _PosB.X; Drawer.StartXY.Y = _PosA.Y; Drawer.FinishXY = _PosB; Drawer.ActionPerform(); Drawer.StartXY.X = _PosA.X; Drawer.StartXY.Y = _PosB.Y; Drawer.FinishXY = _PosB; Drawer.ActionPerform(); }
public void GLDraw() { clsDrawTerrainLine Drawer = new clsDrawTerrainLine(); Drawer.Map = _ParentMapLink.Source; if ( Program.frmMainInstance.SelectedScriptMarker == this ) { GL.LineWidth(4.5F); Drawer.Colour = new sRGBA_sng(1.0F, 1.0F, 0.5F, 0.75F); } else { GL.LineWidth(3.0F); Drawer.Colour = new sRGBA_sng(1.0F, 1.0F, 0.0F, 0.5F); } Drawer.StartXY = _PosA; Drawer.FinishXY.X = _PosB.X; Drawer.FinishXY.Y = _PosA.Y; Drawer.ActionPerform(); Drawer.StartXY = _PosA; Drawer.FinishXY.X = _PosA.X; Drawer.FinishXY.Y = _PosB.Y; Drawer.ActionPerform(); Drawer.StartXY.X = _PosB.X; Drawer.StartXY.Y = _PosA.Y; Drawer.FinishXY = _PosB; Drawer.ActionPerform(); Drawer.StartXY.X = _PosA.X; Drawer.StartXY.Y = _PosB.Y; Drawer.FinishXY = _PosB; Drawer.ActionPerform(); }