예제 #1
0
 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);
     }
 }
예제 #2
0
        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);
            }
        }