| 54 | //-------------------------------------------------------------------- |
| 55 | |
| 56 | void CUI::UIOnFrame() |
| 57 | { |
| 58 | CEntity* m_Actor = smart_cast<CEntity*>(Level().CurrentEntity()); |
| 59 | if (m_Actor) |
| 60 | { |
| 61 | // update windows |
| 62 | if (GameIndicatorsShown() && psHUD_Flags.is(HUD_DRAW | HUD_DRAW_RT)) |
| 63 | { |
| 64 | UIMainIngameWnd->Update(); |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | // out GAME-style depend information |
| 69 | if (GameIndicatorsShown()) |
| 70 | { |
| 71 | if (pUIGame) |
| 72 | pUIGame->OnFrame(); |
| 73 | } |
| 74 | m_pMessagesWnd->Update(); |
| 75 | } |
| 76 | //-------------------------------------------------------------------- |
| 77 | #include "inventory.h" |
| 78 | #include "huditem.h" |