MCPcopy Create free account
hub / github.com/EasyRPG/Player / SetText

Method SetText

src/window_help.cpp:32–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32void Window_Help::SetText(std::string text, int color, Text::Alignment align, bool halfwidthspace) {
33 if (this->text != text || this->color != color || this->align != align) {
34 contents->Clear();
35
36 text_x_offset = 0;
37 AddText(text, color, align, halfwidthspace);
38
39 this->text = std::move(text);
40 this->align = align;
41 this->color = color;
42 this->text_x_scroll = 0;
43 this->text_x_scroll_dir = false;
44 this->text_x_width = text_x_offset;
45 }
46}
47
48void Window_Help::Clear() {
49 this->text = "";

Callers 15

CreateHelpWindowMethod · 0.80
UpdateHelpMethod · 0.80
ShowNotificationMethod · 0.80
StartMethod · 0.80
CreateHelpWindowMethod · 0.80
CreateWindowsMethod · 0.80
UpdateHelpMethod · 0.80
SetModeMethod · 0.80
UpdateMethod · 0.80
CreateOptionsWindowMethod · 0.80
SetModeMethod · 0.80
UpdateOptionsMethod · 0.80

Calls 1

ClearMethod · 0.45

Tested by

no test coverage detected