public static RegisterHealthChanged ( System control, EventHandler |
||
control | System | |
method | EventHandler |
|
Результат | void |
public CurveBar() { MemoryReader.RegisterHealthChanged(this, (o, e) => UpdateHealth(e)); MemoryReader.RegisterManaChanged(this, (o, e) => UpdateMana(e)); ProcessManager.RegisterTibiaVisibilityChanged(this, (o, e) => UpdateHudVisibility(e)); this.DoubleBuffered = true; alwaysShow = SettingsManager.getSettingBool("AlwaysShowHUD"); }
public Portrait() { InitializeComponent(); lifePercentage = 1; manaPercentage = 1; level = 1; BackColor = StyleManager.BlendTransparencyKey; TransparencyKey = StyleManager.BlendTransparencyKey; MemoryReader.RegisterHealthChanged((o, e) => RefreshHealth(e)); MemoryReader.RegisterManaChanged((o, e) => RefreshMana(e)); MemoryReader.RegisterExperienceChanged((o, e) => RefreshExp(e)); ProcessManager.TibiaVisibilityChanged += (o, e) => UpdateVisibility(e); }
public HealthBar() { InitializeComponent(); BackColor = StyleManager.BlendTransparencyKey; TransparencyKey = StyleManager.BlendTransparencyKey; displayText = SettingsManager.getSettingBool(GetHUD() + "DisplayText"); double opacity = SettingsManager.getSettingDouble(GetHUD() + "Opacity"); opacity = Math.Min(1, Math.Max(0, opacity)); this.Opacity = opacity; MemoryReader.RegisterHealthChanged((o, e) => RefreshHUD(e)); ProcessManager.TibiaVisibilityChanged += (o, e) => UpdateVisibility(e); }