mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
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:
commit
d1bf48f42c
|
@ -119,6 +119,8 @@ void CEmoticon::OnRender()
|
||||||
|
|
||||||
if (length(m_SelectorMouse) > 110.0f)
|
if (length(m_SelectorMouse) > 110.0f)
|
||||||
m_SelectedEmote = (int)(SelectedAngle / (2*pi) * NUM_EMOTICONS);
|
m_SelectedEmote = (int)(SelectedAngle / (2*pi) * NUM_EMOTICONS);
|
||||||
|
else
|
||||||
|
m_SelectedEmote = -1;
|
||||||
|
|
||||||
CUIRect Screen = *UI()->Screen();
|
CUIRect Screen = *UI()->Screen();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue