| 128 | } |
| 129 | |
| 130 | void 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 | |
| 146 | void Window_StringView::DrawCmdLines() { |
| 147 | Rect rect = GetItemRect(0); |