C# Class Sanguosha.UI.Controls.HealthBar

Interaction logic for HealthBar.xaml
Inheritance: System.Windows.Controls.UserControl
Datei anzeigen Open project: RagingBigFemaleBird/sgs

Public Properties

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

Public Methods

Method Description
HealthBar ( ) : 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

HealthBar() public method

public HealthBar ( ) : 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