* Sets the selected page. * @param page_index pool index of the page to select. */
| 627 | * @param page_index pool index of the page to select. |
| 628 | */ |
| 629 | void SetSelectedPage(StoryPageID page_index) |
| 630 | { |
| 631 | if (this->selected_page_id != page_index) { |
| 632 | if (this->active_button_id != 0) ResetObjectToPlace(); |
| 633 | this->active_button_id = StoryPageElementID::Invalid(); |
| 634 | this->selected_page_id = page_index; |
| 635 | this->RefreshSelectedPage(); |
| 636 | this->UpdatePrevNextDisabledState(); |
| 637 | } |
| 638 | } |
| 639 | |
| 640 | std::string GetWidgetString(WidgetID widget, StringID stringid) const override |
| 641 | { |
no test coverage detected