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

Method Update

src/window_stringview.cpp:130–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130void Window_StringView::Update() {
131 Window_Selectable::Update();
132 if (active && index >= 0 && index < GetReservedLineCount() && Input::IsTriggered(Input::DECISION)) {
133 if (index == 0) {
134 auto_linebreak = !auto_linebreak;
135 } else if (index == 1) {
136 cmd_eval = !cmd_eval;
137 } else {
138 pretty_print = !pretty_print;
139 }
140
141 Main_Data::game_system->SePlay(Main_Data::game_system->GetSystemSE(Main_Data::game_system->SFX_Decision));
142 Refresh();
143 }
144}
145
146void Window_StringView::DrawCmdLines() {
147 Rect rect = GetItemRect(0);

Callers

nothing calls this directly

Calls 2

SePlayMethod · 0.80
UpdateFunction · 0.70

Tested by

no test coverage detected