示例#1
0
        private void ContentControl_MouseEnter(object sender, MouseEventArgs e)
        {
            UserConsumableBuff.UserConsumableBuffnfo buff = ((sender as ContentControl).Content as StackPanel).DataContext as UserConsumableBuff.UserConsumableBuffnfo;
            SetBuffTextBlock(buff);

            skillPopup.PlacementTarget = ((sender as ContentControl).Content as StackPanel).Children[0];
            skillPopup.IsOpen          = true;
        }
示例#2
0
 void ChangeBuffLevel(UserConsumableBuff.UserConsumableBuffnfo buff, int i)
 {
     buff.Level += i;
     if (buff.Detail.OPTION.Count != 0)
     {
         MainWindow._user_data_manager.CalcUserData();
     }
 }
示例#3
0
        void SetBuffTextBlock(UserConsumableBuff.UserConsumableBuffnfo buff)
        {
            TextBlock PopupText = new TextBlock
            {
                Text       = buff.Name_Kor,
                Background = Brushes.Silver
            };

            skillPopup.Child = PopupText;
        }
示例#4
0
 private void ContentControl_MouseRightButtonDown(object sender, MouseButtonEventArgs e)
 {
     UserConsumableBuff.UserConsumableBuffnfo buff = ((sender as ContentControl).Content as StackPanel).DataContext as UserConsumableBuff.UserConsumableBuffnfo;
     ChangeBuffLevel(buff, 1);
 }
示例#5
0
 private void buff_lv_Wheel(object sender, MouseWheelEventArgs e)
 {
     UserConsumableBuff.UserConsumableBuffnfo buff = ((sender as ContentControl).Content as StackPanel).DataContext as UserConsumableBuff.UserConsumableBuffnfo;
     ChangeBuffLevel(buff, e.Delta > 0 ? 1 : -1);
 }