コード例 #1
0
        private void pcbMap16_MouseMove(object sender, MouseEventArgs e)
        {
            x8LastHover = e.X / 8;
            y8LastHover = e.Y / 8;

            HoverChanged?.Invoke(this, new TileChangedEventArgs(
                                     XY_ToTile(x8LastHover, y8LastHover),
                                     XY_ToPoint(x8LastHover, y8LastHover)));
        }
コード例 #2
0
 void OnHoverChange(int currentHover, int previousHover)
 {
     OnHoverEnd(previousHover);
     if (currentHover >= 0)
     {
         transform.GetChild(currentHover).localScale = Vector3.one * 1.3f;
     }
     HoverChanged?.Invoke(currentHover);
 }
コード例 #3
0
 internal void onPenHoverSetupResponse(SimpleResultEventArgs args)
 {
     HoverChanged?.Invoke(PenClient, args);
 }