C# Class Sanguosha.UI.Controls.VHealthBar

Interaction logic for HealthBar.xaml
Inheritance: System.Windows.Controls.UserControl
ファイルを表示 Open project: RagingBigFemaleBird/sgs Class Usage Examples

Public Properties

Property Type Description
HealthProperty System.Windows.DependencyProperty
MaxHealthProperty System.Windows.DependencyProperty

Public Methods

Method Description
VHealthBar ( ) : System

Private Methods

Method Description
AlignLoseHealthAnimation ( LoseHealthAnimation animation, Image bloodDrop ) : void
DigitToImage ( int digit, int healthRange ) : Image
OnHealthChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnMaxHealthChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
PlayLoseHealthAnimation ( int oldHealth, int newHealth ) : void
Repaint ( ) : void
animation_Completed ( object sender, EventArgs e ) : void

Method Details

VHealthBar() public method

public VHealthBar ( ) : System
return System

Property Details

HealthProperty public_oe static_oe property

public static DependencyProperty,System.Windows HealthProperty
return System.Windows.DependencyProperty

MaxHealthProperty public_oe static_oe property

public static DependencyProperty,System.Windows MaxHealthProperty
return System.Windows.DependencyProperty