Mercurial > mm7
comparison GUI/GUIWindow.cpp @ 2550:fb42e2662c38
Chest UI refactored to a class
author | a.parshin |
---|---|
date | Tue, 12 May 2015 11:28:22 +0200 |
parents | 3121fb54a110 |
children | 4008b2f34be0 |
comparison
equal
deleted
inserted
replaced
2549:3121fb54a110 | 2550:fb42e2662c38 |
---|---|
1310 void GUIWindow_GenericDialogue::Update() | 1310 void GUIWindow_GenericDialogue::Update() |
1311 { | 1311 { |
1312 // ----------------------------------- | 1312 // ----------------------------------- |
1313 // 004156F0 GUI_UpdateWindows --- part | 1313 // 004156F0 GUI_UpdateWindows --- part |
1314 GameUI_DrawBranchlessDialogue(); | 1314 GameUI_DrawBranchlessDialogue(); |
1315 } | |
1316 | |
1317 void GUIWindow_Chest::Update() | |
1318 { | |
1319 // ----------------------------------- | |
1320 // 004156F0 GUI_UpdateWindows --- part | |
1321 if (current_screen_type == SCREEN_CHEST) | |
1322 { | |
1323 Chest::DrawChestUI(par1C); | |
1324 } | |
1325 else if (current_screen_type == SCREEN_CHEST_INVENTORY) | |
1326 { | |
1327 pRenderer->ClearZBuffer(0, 479); | |
1328 draw_leather(); | |
1329 CharacterUI_InventoryTab_Draw(pPlayers[uActiveCharacter], true); | |
1330 pRenderer->DrawTextureIndexed(pBtn_ExitCancel->uX, pBtn_ExitCancel->uY, pIcons_LOD->GetTexture(uExitCancelTextureId)); | |
1331 } | |
1332 } | 1315 } |
1333 | 1316 |
1334 void GUIWindow_House::Update() | 1317 void GUIWindow_House::Update() |
1335 { | 1318 { |
1336 // ----------------------------------- | 1319 // ----------------------------------- |