MCPcopy Create free account
hub / github.com/ddnet/ddnet / UpdateTooltip

Method UpdateTooltip

src/game/editor/editor_ui.cpp:8–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include <game/editor/editor_ui.h>
7
8void CEditor::UpdateTooltip(const void *pId, const CUIRect *pRect, const char *pToolTip)
9{
10 if(Ui()->MouseInside(pRect) && !pToolTip)
11 str_copy(m_aTooltip, "");
12 else if(Ui()->HotItem() == pId && pToolTip)
13 str_copy(m_aTooltip, pToolTip);
14}
15
16ColorRGBA CEditor::GetButtonColor(const void *pId, int Checked)
17{

Callers

nothing calls this directly

Calls 4

UiFunction · 0.85
MouseInsideMethod · 0.80
HotItemMethod · 0.80
str_copyFunction · 0.50

Tested by

no test coverage detected