private void GlobalClick(object sender, MouseButtonEventArgs e) { Vector2f mappedpos = WindowParams.renderWindow.MapPixelToCoords(new Vector2i(e.X, e.Y)); if (shape.GetGlobalBounds().Contains(mappedpos.X, mappedpos.Y) && IsActive) { Clicked?.Invoke(); Pressed = true; } }
private void GlobalClick(object sender, MouseButtonEventArgs e) { InputInformation = false; Vector2f mappedpos = WindowParams.renderWindow.MapPixelToCoords(new Vector2i(e.X, e.Y)); if (shape.GetGlobalBounds().Contains(mappedpos.X, mappedpos.Y) && IsActive) { text.DisplayedString = ""; InputInformation = true; } }