MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / Activate

Method Activate

ui/UIEdit.cpp:232–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230void UIEdit::SetFont(int font) { m_FontHandle = font; }
231
232void UIEdit::Activate() {
233 if (UI_current_editbox) {
234 UI_current_editbox->Deactivate();
235 }
236
237 m_Wnd->HoldHotkeys();
238 m_Active = true;
239 UI_current_editbox = this;
240 m_UpdateCount = false;
241
242 // mprintf(0, "activating edit box\n");
243}
244
245// deactivates edit box (use if you know what you're doing.)
246void UIEdit::Deactivate() {

Callers 7

RealizeMethod · 0.45
UpdateChangesMethod · 0.45
SetCurrentValueMethod · 0.45
UpdateHotSpotListMethod · 0.45
UpdateRadioButtonMethod · 0.45
AddMethod · 0.45

Calls 2

HoldHotkeysMethod · 0.80
DeactivateMethod · 0.45

Tested by

no test coverage detected