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

Method DoButtonLogic

src/game/editor/editor_ui.cpp:71–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71int CEditor::DoButtonLogic(const void *pId, int Checked, const CUIRect *pRect, int Flags, const char *pToolTip)
72{
73 if(Ui()->MouseInside(pRect))
74 {
75 if(Flags & BUTTONFLAG_RIGHT)
76 m_pUiGotContext = pId;
77 }
78
79 UpdateTooltip(pId, pRect, pToolTip);
80 return Ui()->DoButtonLogic(pId, Checked, pRect, Flags);
81}
82
83int CEditor::DoButton_Editor(const void *pId, const char *pText, int Checked, const CUIRect *pRect, int Flags, const char *pToolTip)
84{

Callers

nothing calls this directly

Calls 2

UiFunction · 0.85
MouseInsideMethod · 0.80

Tested by

no test coverage detected