| 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. |
nothing calls this directly
no test coverage detected