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

Method SignWindow

src/signs_gui.cpp:406–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404 WidgetID last_user_action = INVALID_WIDGET; ///< Last started user action.
405
406 SignWindow(WindowDesc &desc, const Sign *si) : Window(desc), name_editbox(MAX_LENGTH_SIGN_NAME_CHARS * MAX_CHAR_LENGTH, MAX_LENGTH_SIGN_NAME_CHARS)
407 {
408 this->querystrings[WID_QES_TEXT] = &this->name_editbox;
409 this->name_editbox.caption = STR_EDIT_SIGN_CAPTION;
410 this->name_editbox.cancel_button = WID_QES_CANCEL;
411 this->name_editbox.ok_button = WID_QES_OK;
412
413 this->InitNested(WN_QUERY_STRING_SIGN);
414
415 UpdateSignEditWindow(si);
416 this->SetFocusedWidget(WID_QES_TEXT);
417 }
418
419 void UpdateSignEditWindow(const Sign *si)
420 {

Callers

nothing calls this directly

Calls 2

InitNestedMethod · 0.80
SetFocusedWidgetMethod · 0.80

Tested by

no test coverage detected