Merge pull request #1794 from Dune-jr/feature-cancel-emote

Emotes can now be cancelled by releasing the mouse in the middle of the circle
This commit is contained in:
oy 2018-12-13 20:57:35 +01:00 committed by GitHub
commit d1bf48f42c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -119,6 +119,8 @@ void CEmoticon::OnRender()
if (length(m_SelectorMouse) > 110.0f)
m_SelectedEmote = (int)(SelectedAngle / (2*pi) * NUM_EMOTICONS);
else
m_SelectedEmote = -1;
CUIRect Screen = *UI()->Screen();