comparison UIBooks.cpp @ 948:5a2dbb00c399

Code cleaning.
author Nomad
date Wed, 01 May 2013 17:31:10 +0200
parents 9be9afdbeac3
children c0d0656aa662
comparison
equal deleted inserted replaced
947:99aa9c8464cf 948:5a2dbb00c399
1518 1518
1519 1519
1520 1520
1521 1521
1522 //----- (00413CC6) -------------------------------------------------------- 1522 //----- (00413CC6) --------------------------------------------------------
1523 void __thiscall SellectDrawBook(unsigned int uBook) 1523 void DrawCurrentBook(unsigned int uBook)
1524 { 1524 {
1525 enum WindowType pWindowType; // esi@1 1525 pRenderer->DrawTextureIndexed(471, 445, pIcons_LOD->GetTexture(uExitCancelTextureId));
1526 1526 switch ((enum WindowType)uBook)
1527 pWindowType = (enum WindowType)uBook; 1527 {
1528 pRenderer->DrawTextureIndexed(471u, 445u, (Texture *)(uExitCancelTextureId != -1 ? (int)&pIcons_LOD->pTextures[uExitCancelTextureId] : 0)); 1528 case WINDOW_Lloyd: DrawLloydBeaconsScreen(); break;
1529 switch ( pWindowType ) 1529 case WINDOW_TownPortal: DrawTownPortalScreen(); break;
1530 { 1530 case WINDOW_QuestBook: DrawBook_Quests(); break;
1531 case WINDOW_Lloyd: // 177 1531 case WINDOW_AutonotesBook: DrawBook_Autonotes(); break;
1532 DrawLloydBeaconsScreen(); 1532 case WINDOW_MapsBook: DrawBook_Maps(); break;
1533 break; 1533 case WINDOW_CalendarBook: DrawBook_Calendar(); break;
1534 case WINDOW_TownPortal: //195 1534 case WINDOW_HistoryBook: DrawBook_History(); break;
1535 DrawTownPortalScreen();
1536 break;
1537 case WINDOW_QuestBook: //200
1538 DrawBook_Quests();
1539 break;
1540 case WINDOW_AutonotesBook: //201
1541 DrawBook_Autonotes();
1542 break;
1543 case WINDOW_MapsBook://202
1544 DrawBook_Maps();
1545 break;
1546 case WINDOW_CalendarBook://203
1547 DrawBook_Calendar();
1548 break;
1549 case WINDOW_HistoryBook://224
1550 DrawBook_History();
1551 break;
1552 } 1535 }
1553 } 1536 }