public void SetActive(bool b, Vector2 m)
{
if(isHovered != b) {
isHovered = b;
if(isHovered) {
Width = optActive.Width;
Height = optActive.Height;
Color = optActive.Color;
if(OnMouseEntry != null)
OnMouseEntry(this, m);
}
else {
Width = optInactive.Width;
Height = optInactive.Height;
Color = optInactive.Color;
if(OnMouseExit != null)
OnMouseExit(this, m);
}
}
}