public starmap(float xScale, float yScale) { aLine = new Microsoft.DirectX.Direct3D.Line(OuterSpace.device); mapArea[1].Y = (int)(OuterSpace.ClientArea.Height * yScale); //Bottom mapArea[1].X = (int)OuterSpace.ClientArea.Width; //Right mapArea[0].Y = 0; //Top mapArea[0].X = (int)(OuterSpace.ClientArea.Width * xScale); //Left resizeButton = new SpriteClass("resizeButton.bmp", 35, 35, Convert.ToInt32(-16777216)); resizeButton.sourceFrame[0] = new System.Drawing.Rectangle(0, 0, 35, 35); resizeButtonColor = Color.FromArgb(75, 255, 255, 255); resizing = false; }
public starmap(float xScale, float yScale) { aLine = new Microsoft.DirectX.Direct3D.Line(OuterSpace.device); mapArea[1].Y = (int)(OuterSpace.ClientArea.Height * yScale); //Bottom mapArea[1].X = (int)OuterSpace.ClientArea.Width; //Right mapArea[0].Y = 0; //Top mapArea[0].X = (int)(OuterSpace.ClientArea.Width * xScale); //Left resizeButton = new SpriteClass("resizeButton.bmp", 35, 35, Convert.ToInt32(-16777216)); resizeButton.sourceFrame[0] = new System.Drawing.Rectangle(0, 0, 35, 35); resizeButtonColor = Color.FromArgb(75, 255, 255, 255); resizing = false; }