Mercurial > mm7
comparison mm7_5.cpp @ 1004:eac5af72b614
UI cleans
author | Nomad |
---|---|
date | Thu, 16 May 2013 15:14:58 +0200 |
parents | 53109a1455fc |
children | e865f349aa41 |
comparison
equal
deleted
inserted
replaced
1003:9318dd3f3711 | 1004:eac5af72b614 |
---|---|
9954 v6.DrawTitleText(pBook2Font, 0, 22u, 0, pGlobalTXT_LocalizationStrings[10], 3u);*/ | 9954 v6.DrawTitleText(pBook2Font, 0, 22u, 0, pGlobalTXT_LocalizationStrings[10], 3u);*/ |
9955 } | 9955 } |
9956 // 4E1D3A: using guessed type __int16 word_4E1D3A[]; | 9956 // 4E1D3A: using guessed type __int16 word_4E1D3A[]; |
9957 | 9957 |
9958 | 9958 |
9959 //----- (00413D3C) -------------------------------------------------------- | |
9960 char *__cdecl GetDayPart() | |
9961 { | |
9962 if ( pParty->uCurrentHour > 4 ) | |
9963 { | |
9964 if ( pParty->uCurrentHour == 5 ) | |
9965 return pGlobalTXT_LocalizationStrings[55]; | |
9966 if ( pParty->uCurrentHour == 20 ) | |
9967 return pGlobalTXT_LocalizationStrings[566]; | |
9968 if ( pParty->uCurrentHour <= 0x14 || pParty->uCurrentHour > 0x17 ) | |
9969 return pGlobalTXT_LocalizationStrings[56]; | |
9970 } | |
9971 return pGlobalTXT_LocalizationStrings[567]; | |
9972 } | |
9973 | |
9974 //----- (00413FF1) -------------------------------------------------------- | 9959 //----- (00413FF1) -------------------------------------------------------- |
9975 void SetMonthNames() | 9960 void SetMonthNames() |
9976 { | 9961 { |
9977 aMonthNames[0] = pGlobalTXT_LocalizationStrings[415]; | 9962 aMonthNames[0] = pGlobalTXT_LocalizationStrings[415]; |
9978 aMonthNames[1] = pGlobalTXT_LocalizationStrings[416]; | 9963 aMonthNames[1] = pGlobalTXT_LocalizationStrings[416]; |
10111 + 2 * LOBYTE(pFontSmallnum->uFontHeight) | 10096 + 2 * LOBYTE(pFontSmallnum->uFontHeight) |
10112 + 24; | 10097 + 24; |
10113 Dst.uFrameY = 470 - Dst.uFrameHeight; | 10098 Dst.uFrameY = 470 - Dst.uFrameHeight; |
10114 Dst.uFrameZ = Dst.uFrameX + Dst.uFrameWidth - 1; | 10099 Dst.uFrameZ = Dst.uFrameX + Dst.uFrameWidth - 1; |
10115 Dst.uFrameW = 469; | 10100 Dst.uFrameW = 469; |
10101 //Dst.Hint = "abcagfdsgsg ljsrengvlkjesnfkjwnef"; | |
10116 Dst.DrawMessageBox(0); | 10102 Dst.DrawMessageBox(0); |
10103 | |
10117 Dst.uFrameWidth -= 24; | 10104 Dst.uFrameWidth -= 24; |
10118 Dst.uFrameX += 12; | 10105 Dst.uFrameX += 12; |
10119 Dst.uFrameY += 12; | 10106 Dst.uFrameY += 12; |
10120 Dst.uFrameHeight -= 12; | 10107 Dst.uFrameHeight -= 12; |
10121 Dst.uFrameZ = Dst.uFrameX + Dst.uFrameWidth - 1; | 10108 Dst.uFrameZ = Dst.uFrameX + Dst.uFrameWidth - 1; |
10122 Dst.uFrameW = Dst.uFrameY + Dst.uFrameHeight - 1; | 10109 Dst.uFrameW = Dst.uFrameY + Dst.uFrameHeight - 1; |
10123 Dst.DrawTitleText(pFontSmallnum, 0, 0xCu, 0, pGlobalTXT_LocalizationStrings[157], 3u); | 10110 Dst.DrawTitleText(pFontSmallnum, 0, 0xCu, ui_mainmenu_copyright_color, pGlobalTXT_LocalizationStrings[157], 3); |
10124 } | 10111 } |
10125 | 10112 |
10126 | 10113 |
10127 | 10114 |
10128 //----- (004156F0) -------------------------------------------------------- | 10115 //----- (004156F0) -------------------------------------------------------- |
10202 TravelUI_Draw(); | 10189 TravelUI_Draw(); |
10203 continue; | 10190 continue; |
10204 } | 10191 } |
10205 case WINDOW_SpellBook: | 10192 case WINDOW_SpellBook: |
10206 { | 10193 { |
10207 DrawSpellBookContent(); | 10194 DrawSpellBookContent(pPlayers[uActiveCharacter]); |
10208 continue; | 10195 continue; |
10209 } | 10196 } |
10210 case WINDOW_GreetingNPC: | 10197 case WINDOW_GreetingNPC: |
10211 { | 10198 { |
10212 DrawBranchlessDialogueUI(); | 10199 DrawBranchlessDialogueUI(); |