MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / UpdateSignEditWindow

Method UpdateSignEditWindow

src/signs_gui.cpp:419–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417 }
418
419 void UpdateSignEditWindow(const Sign *si)
420 {
421 /* Display an empty string when the sign hasn't been edited yet */
422 if (!si->name.empty()) {
423 this->name_editbox.text.Assign(GetString(STR_SIGN_NAME, si->index));
424 } else {
425 this->name_editbox.text.DeleteAll();
426 }
427
428 this->cur_sign = si->index;
429
430 this->SetWidgetDirty(WID_QES_TEXT);
431 this->SetFocusedWidget(WID_QES_TEXT);
432 }
433
434 /**
435 * Returns a pointer to the (alphabetically) previous or next sign of the current sign.

Callers

nothing calls this directly

Calls 6

DeleteAllMethod · 0.80
SetWidgetDirtyMethod · 0.80
SetFocusedWidgetMethod · 0.80
GetStringFunction · 0.70
emptyMethod · 0.45
AssignMethod · 0.45

Tested by

no test coverage detected