This repository has been archived on 2022-08-05. You can view files and clone it, but cannot push or open issues or pull requests.
CC-Clicker/CC-Clicker 2.0/OvPForm.cs

26 lines
816 B
C#
Raw Normal View History

2019-11-10 00:28:55 +01:00
using System;
using System.Drawing;
using System.Windows.Forms;
2020-03-11 18:53:32 +01:00
using CC_Functions.W32;
2019-11-10 00:28:55 +01:00
namespace CC_Clicker_2._0
{
public partial class OvPForm : Form
{
public OvPForm(int x, int y)
{
InitializeComponent();
2020-03-11 18:53:32 +01:00
SetPos(x, y);
2019-11-10 00:28:55 +01:00
}
2020-03-11 18:53:32 +01:00
public void SetPos(int x, int y) => Location = new Point(x - (Width / 2), y - (Height / 2));
2019-11-10 00:28:55 +01:00
private void OvPForm_Paint(object sender, PaintEventArgs e)
{
2019-11-10 00:31:53 +01:00
e.Graphics.DrawLine(new Pen(Color.Black, 2), (Width / 2) - 15, Height / 2, (Width / 2) + 15, Height / 2);
e.Graphics.DrawLine(new Pen(Color.Black, 2), Width / 2, (Height / 2) - 15, Width / 2, (Height / 2) + 15);
2019-11-10 00:28:55 +01:00
}
2020-03-11 18:53:32 +01:00
private void OvPForm_Load(object sender, EventArgs e) => this.GetWnd32().Overlay = true;
2019-11-10 00:28:55 +01:00
}
2020-03-11 18:53:32 +01:00
}