void _cScreen_Clicked(Control sender, SFML.Window.MouseButtonEventArgs e) { if (ClickWarpMode) { Vector2 worldPos = Map.Camera.ToWorld(new Vector2(e.X, e.Y)); using (var pw = ClientPacket.ClickWarp(worldPos)) Socket.Send(pw, ClientMessageType.General); } }
void _cScreen_Clicked(Control sender, SFML.Window.MouseButtonEventArgs e) { var keyComboPressed = Keyboard.IsKeyPressed(ClientSettings.Default.Keys_ClickWarp) && Keyboard.IsKeyPressed(ClientSettings.Default.Keys_ClickWarp2); if (ClickWarpMode || keyComboPressed) { Vector2 worldPos = Map.Camera.ToWorld(new Vector2(e.X, e.Y)); using (var pw = ClientPacket.ClickWarp(worldPos)) Socket.Send(pw, ClientMessageType.General); } }