Skip to content

Commit

Permalink
Fix hit points down button mouse event
Browse files Browse the repository at this point in the history
hitPointsDownButton should be using OnMouseClick event like hitPointsUpButton. These two buttons used different events and had different behaviour.
  • Loading branch information
Interkarma committed Oct 11, 2023
1 parent 0b45f7e commit b62818c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ protected void SetupButtons()
hitPointsUpButton.OnMouseClick += HitPointsUpButton_OnMouseClick;
hitPointsUpButton.ClickSound = DaggerfallUI.Instance.GetAudioClip(SoundClips.ButtonClick);
hitPointsDownButton = DaggerfallUI.AddButton(hitPointsDownButtonRect, NativePanel);
hitPointsDownButton.OnMouseUp += HitPointsDownButton_OnMouseClick;
hitPointsDownButton.OnMouseClick += HitPointsDownButton_OnMouseClick;
hitPointsDownButton.ClickSound = DaggerfallUI.Instance.GetAudioClip(SoundClips.ButtonClick);

// Help topics
Expand Down

0 comments on commit b62818c

Please sign in to comment.