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

Method AfterLoadText

src/textfile_gui.cpp:475–482  ·  view source on GitHub ↗

virtual */

Source from the content-addressed store, hash-verified

473}
474
475/* virtual */ void TextfileWindow::AfterLoadText()
476{
477 this->link_anchors.clear();
478
479 if (StrEndsWithIgnoreCase(this->filename, ".md")) this->AfterLoadMarkdown();
480
481 if (this->GetWidget<NWidgetStacked>(WID_TF_SEL_JUMPLIST)->SetDisplayedPlane(this->jumplist.empty() ? SZSP_HORIZONTAL : 0)) this->ReInit();
482}
483
484/**
485 * Post-processing of markdown files.

Callers 1

LoadTextMethod · 0.95

Calls 6

AfterLoadMarkdownMethod · 0.95
StrEndsWithIgnoreCaseFunction · 0.85
SetDisplayedPlaneMethod · 0.80
ReInitMethod · 0.80
clearMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected