Mercurial > mm7
comparison mm7_5.cpp @ 995:5876a9cafa3e
Various UIs, autonotes title fixed
author | Nomad |
---|---|
date | Tue, 14 May 2013 14:03:07 +0200 |
parents | 3431f6abc786 |
children | dcdfbb6eede9 |
comparison
equal
deleted
inserted
replaced
994:3431f6abc786 | 995:5876a9cafa3e |
---|---|
9988 return pGlobalTXT_LocalizationStrings[56]; | 9988 return pGlobalTXT_LocalizationStrings[56]; |
9989 } | 9989 } |
9990 return pGlobalTXT_LocalizationStrings[567]; | 9990 return pGlobalTXT_LocalizationStrings[567]; |
9991 } | 9991 } |
9992 | 9992 |
9993 //----- (00413D6F) -------------------------------------------------------- | |
9994 char __cdecl DrawBook_Calendar() | |
9995 { | |
9996 unsigned int v0; // esi@1 | |
9997 char *v1; // eax@5 | |
9998 int v2; // ecx@5 | |
9999 char *v3; // eax@6 | |
10000 GUIWindow a1; // [sp+Ch] [bp-60h]@5 | |
10001 unsigned int v6; // [sp+60h] [bp-Ch]@1 | |
10002 int v7; // [sp+64h] [bp-8h]@1 | |
10003 int a5; // [sp+68h] [bp-4h]@1 | |
10004 | |
10005 v0 = pParty->uCurrentHour; | |
10006 v6 = pMapStats->GetMapInfo(pCurrentMapName); | |
10007 a5 = TargetColor(0x4Bu, 0x4Bu, 0x4Bu); | |
10008 pRenderer->DrawTextureIndexed(pViewport->uViewportTL_X, pViewport->uViewportTL_Y, pSpellBookPagesTextr_13); | |
10009 v7 = (unsigned __int8)pDayMoonPhase[pParty->uDaysPlayed]; | |
10010 if ( (signed int)v0 <= 12 ) | |
10011 { | |
10012 if ( !v0 ) | |
10013 v0 = 12; | |
10014 } | |
10015 else | |
10016 { | |
10017 v0 -= 12; | |
10018 } | |
10019 a1.uFrameX = game_viewport_x; | |
10020 a1.uFrameY = game_viewport_y; | |
10021 a1.uFrameWidth = game_viewport_width; | |
10022 a1.uFrameHeight = game_viewport_height; | |
10023 a1.uFrameZ = game_viewport_z; | |
10024 a1.uFrameW = game_viewport_w; | |
10025 a1.DrawTitleText(pBook2Font, 0, 0x16u, 0, pGlobalTXT_LocalizationStrings[186], 3u); | |
10026 if ( pParty->uCurrentHour >= 12 ) | |
10027 { | |
10028 if ( pParty->uCurrentHour >= 24 ) | |
10029 v2=0; | |
10030 else | |
10031 v2=1; | |
10032 } | |
10033 else | |
10034 v2=0; | |
10035 v1 = GetDayPart(); | |
10036 sprintf( | |
10037 pTmpBuf, | |
10038 "%s\t100:\t110%d:%02d %s - %s", | |
10039 pGlobalTXT_LocalizationStrings[526], | |
10040 v0, | |
10041 pParty->uCurrentMinute, | |
10042 aAMPMNames[v2], | |
10043 v1); | |
10044 a1.DrawText(pBookFont, 70, 55, a5, pTmpBuf, 0, 0, 0); | |
10045 sprintf( | |
10046 pTmpBuf, | |
10047 "%s\t100:\t110%d - %s", | |
10048 pGlobalTXT_LocalizationStrings[56], | |
10049 pParty->uDaysPlayed + 1, | |
10050 aDayNames[pParty->uDaysPlayed % 7]); | |
10051 a1.DrawText(pBookFont, 70, 2 * LOBYTE(pBookFont->uFontHeight) + 49, a5, pTmpBuf, 0, 0, 0); | |
10052 sprintf( | |
10053 pTmpBuf, | |
10054 "%s\t100:\t110%d - %s", | |
10055 pGlobalTXT_LocalizationStrings[146], | |
10056 pParty->uCurrentMonth + 1, | |
10057 aMonthNames[pParty->uCurrentMonth]); | |
10058 a1.DrawText(pBookFont, 70, 4 * LOBYTE(pBookFont->uFontHeight) + 43, a5, pTmpBuf, 0, 0, 0); | |
10059 sprintf(pTmpBuf, "%s\t100:\t110%d", pGlobalTXT_LocalizationStrings[245], pParty->uCurrentYear); | |
10060 a1.DrawText(pBookFont, 70, 6 * LOBYTE(pBookFont->uFontHeight) + 37, a5, pTmpBuf, 0, 0, 0); | |
10061 sprintf(pTmpBuf, "%s\t100:\t110%s", pGlobalTXT_LocalizationStrings[530], aMoonPhaseNames[v7]); | |
10062 a1.DrawText(pBookFont, 70, 8 * LOBYTE(pBookFont->uFontHeight) + 31, a5, pTmpBuf, 0, 0, 0); | |
10063 if ( v6 ) | |
10064 v3 = pMapStats->pInfos[v6].pName; | |
10065 else | |
10066 v3 = "Unknown"; | |
10067 sprintf(pTmpBuf, "%s\t100:\t110%s", pGlobalTXT_LocalizationStrings[531], v3); | |
10068 return a1.DrawText(pBookFont, 70, 10 * LOBYTE(pBookFont->uFontHeight) + 25, a5, pTmpBuf, 0, 0, 0); | |
10069 } | |
10070 | |
10071 //----- (00413FF1) -------------------------------------------------------- | 9993 //----- (00413FF1) -------------------------------------------------------- |
10072 void __cdecl SetMonthNames() | 9994 void SetMonthNames() |
10073 { | 9995 { |
10074 aMonthNames[0] = pGlobalTXT_LocalizationStrings[415]; | 9996 aMonthNames[0] = pGlobalTXT_LocalizationStrings[415]; |
10075 aMonthNames[1] = pGlobalTXT_LocalizationStrings[416]; | 9997 aMonthNames[1] = pGlobalTXT_LocalizationStrings[416]; |
10076 aMonthNames[2] = pGlobalTXT_LocalizationStrings[417]; | 9998 aMonthNames[2] = pGlobalTXT_LocalizationStrings[417]; |
10077 aMonthNames[3] = pGlobalTXT_LocalizationStrings[418]; | 9999 aMonthNames[3] = pGlobalTXT_LocalizationStrings[418]; |
10084 aMonthNames[10] = pGlobalTXT_LocalizationStrings[425]; | 10006 aMonthNames[10] = pGlobalTXT_LocalizationStrings[425]; |
10085 aMonthNames[11] = pGlobalTXT_LocalizationStrings[426]; | 10007 aMonthNames[11] = pGlobalTXT_LocalizationStrings[426]; |
10086 } | 10008 } |
10087 | 10009 |
10088 //----- (0041406F) -------------------------------------------------------- | 10010 //----- (0041406F) -------------------------------------------------------- |
10089 void __cdecl SetDayNames() | 10011 void SetDayNames() |
10090 { | 10012 { |
10091 aDayNames[0] = pGlobalTXT_LocalizationStrings[145]; | 10013 aDayNames[0] = pGlobalTXT_LocalizationStrings[145]; |
10092 aDayNames[1] = pGlobalTXT_LocalizationStrings[230]; | 10014 aDayNames[1] = pGlobalTXT_LocalizationStrings[230]; |
10093 aDayNames[2] = pGlobalTXT_LocalizationStrings[243]; | 10015 aDayNames[2] = pGlobalTXT_LocalizationStrings[243]; |
10094 aDayNames[3] = pGlobalTXT_LocalizationStrings[227]; | 10016 aDayNames[3] = pGlobalTXT_LocalizationStrings[227]; |
10096 aDayNames[5] = pGlobalTXT_LocalizationStrings[188]; | 10018 aDayNames[5] = pGlobalTXT_LocalizationStrings[188]; |
10097 aDayNames[6] = pGlobalTXT_LocalizationStrings[222]; | 10019 aDayNames[6] = pGlobalTXT_LocalizationStrings[222]; |
10098 } | 10020 } |
10099 | 10021 |
10100 //----- (004140BB) -------------------------------------------------------- | 10022 //----- (004140BB) -------------------------------------------------------- |
10101 void __cdecl SetSpellSchoolNames() | 10023 void SetSpellSchoolNames() |
10102 { | 10024 { |
10103 aSpellSchoolNames[0] = pGlobalTXT_LocalizationStrings[87]; | 10025 aSpellSchoolNames[0] = pGlobalTXT_LocalizationStrings[87]; |
10104 aSpellSchoolNames[1] = pGlobalTXT_LocalizationStrings[6]; | 10026 aSpellSchoolNames[1] = pGlobalTXT_LocalizationStrings[6]; |
10105 aSpellSchoolNames[2] = pGlobalTXT_LocalizationStrings[240]; | 10027 aSpellSchoolNames[2] = pGlobalTXT_LocalizationStrings[240]; |
10106 aSpellSchoolNames[3] = pGlobalTXT_LocalizationStrings[70]; | 10028 aSpellSchoolNames[3] = pGlobalTXT_LocalizationStrings[70]; |
10110 aSpellSchoolNames[7] = pGlobalTXT_LocalizationStrings[133]; | 10032 aSpellSchoolNames[7] = pGlobalTXT_LocalizationStrings[133]; |
10111 aSpellSchoolNames[8] = pGlobalTXT_LocalizationStrings[54]; | 10033 aSpellSchoolNames[8] = pGlobalTXT_LocalizationStrings[54]; |
10112 } | 10034 } |
10113 | 10035 |
10114 //----- (0041411B) -------------------------------------------------------- | 10036 //----- (0041411B) -------------------------------------------------------- |
10115 void __cdecl SetAttributeNames() | 10037 void SetAttributeNames() |
10116 { | 10038 { |
10117 aAttributeNames[0] = pGlobalTXT_LocalizationStrings[144]; | 10039 aAttributeNames[0] = pGlobalTXT_LocalizationStrings[144]; |
10118 aAttributeNames[1] = pGlobalTXT_LocalizationStrings[116]; | 10040 aAttributeNames[1] = pGlobalTXT_LocalizationStrings[116]; |
10119 aAttributeNames[2] = pGlobalTXT_LocalizationStrings[163]; | 10041 aAttributeNames[2] = pGlobalTXT_LocalizationStrings[163]; |
10120 aAttributeNames[3] = pGlobalTXT_LocalizationStrings[75]; | 10042 aAttributeNames[3] = pGlobalTXT_LocalizationStrings[75]; |
10122 aAttributeNames[5] = pGlobalTXT_LocalizationStrings[211]; | 10044 aAttributeNames[5] = pGlobalTXT_LocalizationStrings[211]; |
10123 aAttributeNames[6] = pGlobalTXT_LocalizationStrings[136]; | 10045 aAttributeNames[6] = pGlobalTXT_LocalizationStrings[136]; |
10124 } | 10046 } |
10125 | 10047 |
10126 //----- (00414162) -------------------------------------------------------- | 10048 //----- (00414162) -------------------------------------------------------- |
10127 void __cdecl uGameUIFontMain_initialize() | 10049 void uGameUIFontMain_initialize() |
10128 { | 10050 { |
10129 uGameUIFontMain = TargetColor(0xAu, 0, 0); | 10051 uGameUIFontMain = TargetColor(0xAu, 0, 0); |
10130 } | 10052 } |
10131 | 10053 |
10132 //----- (00414174) -------------------------------------------------------- | 10054 //----- (00414174) -------------------------------------------------------- |
10133 void __cdecl uGameUIFontShadow_initialize() | 10055 void uGameUIFontShadow_initialize() |
10134 { | 10056 { |
10135 uGameUIFontShadow = TargetColor(0xE6u, 214u, 193u); | 10057 uGameUIFontShadow = TargetColor(0xE6u, 214u, 193u); |
10136 } | 10058 } |
10137 | 10059 |
10138 | 10060 |
10274 DrawGameOptions(); | 10196 DrawGameOptions(); |
10275 continue; | 10197 continue; |
10276 } | 10198 } |
10277 case WINDOW_Book: | 10199 case WINDOW_Book: |
10278 { | 10200 { |
10279 DrawCurrentBook((unsigned int)pWindow->ptr_1C); | 10201 BookUI_Draw((WindowType)(int)pWindow->ptr_1C); |
10280 continue; | 10202 continue; |
10281 } | 10203 } |
10282 case WINDOW_Dialogue: | 10204 case WINDOW_Dialogue: |
10283 { | 10205 { |
10284 DrawDialogueUI(); | 10206 DrawDialogueUI(); |