| 570 | } |
| 571 | |
| 572 | bool update(bool consoleOpen, bool minimized, bool exiting) |
| 573 | { |
| 574 | // If the program is minimized, the editor should skip any processing. |
| 575 | if (minimized) |
| 576 | { |
| 577 | return s_exitEditor; |
| 578 | } |
| 579 | s_programExiting = exiting; |
| 580 | |
| 581 | editor_clearUid(); |
| 582 | thumbnail_update(); |
| 583 | |
| 584 | TFE_RenderBackend::clearWindow(); |
| 585 | |
| 586 | updateTooltips(); |
| 587 | handlePopupBegin(); |
| 588 | menu(); |
| 589 | |
| 590 | if (s_editorMode == EDIT_ASSET_BROWSER) |
| 591 | { |
| 592 | AssetBrowser::update(); |
| 593 | } |
| 594 | else if (s_editorMode == EDIT_ASSET) |
| 595 | { |
| 596 | switch (s_editorAssetType) |
| 597 | { |
| 598 | case TYPE_LEVEL: |
| 599 | { |
| 600 | LevelEditor::update(); |
| 601 | } break; |
| 602 | default: |
| 603 | { |
| 604 | // Invalid mode, this code should never be reached. |
| 605 | assert(0); |
| 606 | s_editorMode = EDIT_ASSET_BROWSER; |
| 607 | } |
| 608 | } |
| 609 | } |
| 610 | |
| 611 | handlePopupEnd(); |
| 612 | |
| 613 | return s_exitEditor; |
| 614 | } |
| 615 | |
| 616 | bool render() |
| 617 | { |
nothing calls this directly
no test coverage detected