Mercurial > might-and-magic-trilogy
comparison GUIWindow.cpp @ 59:5159d2e6f559
BLV render
author | Nomad |
---|---|
date | Fri, 26 Oct 2012 02:38:26 +0200 |
parents | 25fabc49627b |
children | 30ec77bbd018 |
comparison
equal
deleted
inserted
replaced
58:41cbaabde2cb | 59:5159d2e6f559 |
---|---|
310 ++v31; | 310 ++v31; |
311 v32 += 3; | 311 v32 += 3; |
312 v41 = v31; | 312 v41 = v31; |
313 } | 313 } |
314 while ( (signed int)v46 < (signed int)&dword_506978 ); | 314 while ( (signed int)v46 < (signed int)&dword_506978 ); |
315 v39 = nullstring; | 315 v39 = ""; |
316 if ( uFramesetIDa == v30 ) | 316 if ( uFramesetIDa == v30 ) |
317 v39 = pGlobalTXT_LocalizationStrings[153]; | 317 v39 = pGlobalTXT_LocalizationStrings[153]; |
318 sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[450], v39); | 318 sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[450], v39); |
319 return a1->DrawText(pFontArrus, 14, 114, v30, pTmpBuf, v30, v30, v30); | 319 return a1->DrawText(pFontArrus, 14, 114, v30, pTmpBuf, v30, v30, v30); |
320 } | 320 } |
587 1, | 587 1, |
588 180, | 588 180, |
589 0xB3u, | 589 0xB3u, |
590 v19, | 590 v19, |
591 0, | 591 0, |
592 nullstring, | 592 "", |
593 0); | 593 0); |
594 ++v19; | 594 ++v19; |
595 } | 595 } |
596 while ( (signed int)v19 < v23 ); | 596 while ( (signed int)v19 < v23 ); |
597 } | 597 } |
630 1, | 630 1, |
631 182, | 631 182, |
632 0xB7u, | 632 0xB7u, |
633 v16, | 633 v16, |
634 0, | 634 0, |
635 nullstring, | 635 "", |
636 0); | 636 0); |
637 ++v16; | 637 ++v16; |
638 } | 638 } |
639 while ( (signed int)v16 < 6 ); | 639 while ( (signed int)v16 < 6 ); |
640 } | 640 } |
885 0, | 885 0, |
886 0x47u, | 886 0x47u, |
887 2u, | 887 2u, |
888 0, | 888 0, |
889 pGlobalTXT_LocalizationStrings[192],// Scroll Up | 889 pGlobalTXT_LocalizationStrings[192],// Scroll Up |
890 (Texture *)nullstring, | 890 (Texture *)"", |
891 0); | 891 0); |
892 pBtn_Book_4 = v1->CreateButton( | 892 pBtn_Book_4 = v1->CreateButton( |
893 pViewport->uViewportX + 397, | 893 pViewport->uViewportX + 397, |
894 pViewport->uViewportY + 150, | 894 pViewport->uViewportY + 150, |
895 0x32u, | 895 0x32u, |
898 0, | 898 0, |
899 0x47u, | 899 0x47u, |
900 3u, | 900 3u, |
901 0, | 901 0, |
902 pGlobalTXT_LocalizationStrings[193],// Scroll Down | 902 pGlobalTXT_LocalizationStrings[193],// Scroll Down |
903 (Texture *)nullstring, | 903 (Texture *)"", |
904 0); | 904 0); |
905 pBtn_Book_5 = v1->CreateButton( | 905 pBtn_Book_5 = v1->CreateButton( |
906 pViewport->uViewportX + 397, | 906 pViewport->uViewportX + 397, |
907 pViewport->uViewportY + 188, | 907 pViewport->uViewportY + 188, |
908 0x32u, | 908 0x32u, |
911 0, | 911 0, |
912 0x47u, | 912 0x47u, |
913 4u, | 913 4u, |
914 0, | 914 0, |
915 pGlobalTXT_LocalizationStrings[573],// "Scroll Right" | 915 pGlobalTXT_LocalizationStrings[573],// "Scroll Right" |
916 (Texture *)nullstring, | 916 (Texture *)"", |
917 0); | 917 0); |
918 pBtn_Book_6 = v1->CreateButton( | 918 pBtn_Book_6 = v1->CreateButton( |
919 pViewport->uViewportX + 397, | 919 pViewport->uViewportX + 397, |
920 pViewport->uViewportY + 226, | 920 pViewport->uViewportY + 226, |
921 0x32u, | 921 0x32u, |
924 0, | 924 0, |
925 0x47u, | 925 0x47u, |
926 5u, | 926 5u, |
927 0, | 927 0, |
928 pGlobalTXT_LocalizationStrings[572],// "Scroll Left" | 928 pGlobalTXT_LocalizationStrings[572],// "Scroll Left" |
929 (Texture *)nullstring, | 929 (Texture *)"", |
930 0); | 930 0); |
931 return; | 931 return; |
932 } | 932 } |
933 if ( v1->ptr_1C == (void *)203 ) | 933 if ( v1->ptr_1C == (void *)203 ) |
934 { | 934 { |
1255 1, | 1255 1, |
1256 79, | 1256 79, |
1257 0x56u, | 1257 0x56u, |
1258 v3, | 1258 v3, |
1259 0, | 1259 0, |
1260 nullstring, | 1260 "", |
1261 0); | 1261 0); |
1262 ++a2; | 1262 ++a2; |
1263 } | 1263 } |
1264 ++v3; | 1264 ++v3; |
1265 } | 1265 } |
1266 while ( (signed int)v3 < 11 ); | 1266 while ( (signed int)v3 < 11 ); |
1267 v2->CreateButton(0, 0, 0, 0, 1, 0, 0x33u, 0, 9u, nullstring, 0); | 1267 v2->CreateButton(0, 0, 0, 0, 1, 0, 0x33u, 0, 9u, "", 0); |
1268 if ( a2 ) | 1268 if ( a2 ) |
1269 v2->_41D08F(a2, 0, 0, 0); | 1269 v2->_41D08F(a2, 0, 0, 0); |
1270 if ( v1->pActiveSkills[12] ) | 1270 if ( v1->pActiveSkills[12] ) |
1271 v2->CreateButton(0x18Fu, 0xAu, 0x32u, 0x24u, 1, 0, 0x57u, 0, 0, aSpellSchoolNames[0], 0); | 1271 v2->CreateButton(0x18Fu, 0xAu, 0x32u, 0x24u, 1, 0, 0x57u, 0, 0, aSpellSchoolNames[0], 0); |
1272 if ( v1->pActiveSkills[13] ) | 1272 if ( v1->pActiveSkills[13] ) |
1293 1, | 1293 1, |
1294 78, | 1294 78, |
1295 0x58u, | 1295 0x58u, |
1296 0, | 1296 0, |
1297 0, | 1297 0, |
1298 nullstring, | 1298 "", |
1299 0); | 1299 0); |
1300 ptr_5064F8 = v2->CreateButton( | 1300 ptr_5064F8 = v2->CreateButton( |
1301 0x1DCu, | 1301 0x1DCu, |
1302 0x1C2u, | 1302 0x1C2u, |
1303 0x30u, | 1303 0x30u, |
1305 1, | 1305 1, |
1306 78, | 1306 78, |
1307 0x58u, | 1307 0x58u, |
1308 0, | 1308 0, |
1309 0, | 1309 0, |
1310 nullstring, | 1310 "", |
1311 pTexture_506444, | 1311 pTexture_506444, |
1312 0); | 1312 0); |
1313 v2->CreateButton( | 1313 v2->CreateButton( |
1314 0x231u, | 1314 0x231u, |
1315 0x1C2u, | 1315 0x1C2u, |
2227 1, | 2227 1, |
2228 0, | 2228 0, |
2229 0x88u, | 2229 0x88u, |
2230 0x13u, | 2230 0x13u, |
2231 0, | 2231 0, |
2232 nullstring, | 2232 "", |
2233 0); | 2233 0); |
2234 } | 2234 } |
2235 } | 2235 } |
2236 v15 = (void *)v12->evtb; | 2236 v15 = (void *)v12->evtb; |
2237 if ( v15 ) | 2237 if ( v15 ) |
2248 1, | 2248 1, |
2249 0, | 2249 0, |
2250 0x88u, | 2250 0x88u, |
2251 0x14u, | 2251 0x14u, |
2252 0, | 2252 0, |
2253 nullstring, | 2253 "", |
2254 0); | 2254 0); |
2255 } | 2255 } |
2256 } | 2256 } |
2257 v17 = (void *)v12->evtc; | 2257 v17 = (void *)v12->evtc; |
2258 if ( v17 ) | 2258 if ( v17 ) |
2269 1, | 2269 1, |
2270 0, | 2270 0, |
2271 0x88u, | 2271 0x88u, |
2272 0x15u, | 2272 0x15u, |
2273 0, | 2273 0, |
2274 nullstring, | 2274 "", |
2275 0); | 2275 0); |
2276 } | 2276 } |
2277 } | 2277 } |
2278 v19 = (void *)v12->evtd; | 2278 v19 = (void *)v12->evtd; |
2279 if ( v19 ) | 2279 if ( v19 ) |
2290 1, | 2290 1, |
2291 0, | 2291 0, |
2292 0x88u, | 2292 0x88u, |
2293 0x16u, | 2293 0x16u, |
2294 0, | 2294 0, |
2295 nullstring, | 2295 "", |
2296 0); | 2296 0); |
2297 } | 2297 } |
2298 } | 2298 } |
2299 v21 = (void *)v12->evte; | 2299 v21 = (void *)v12->evte; |
2300 if ( v21 ) | 2300 if ( v21 ) |
2311 1, | 2311 1, |
2312 0, | 2312 0, |
2313 0x88u, | 2313 0x88u, |
2314 0x17u, | 2314 0x17u, |
2315 0, | 2315 0, |
2316 nullstring, | 2316 "", |
2317 0); | 2317 0); |
2318 } | 2318 } |
2319 } | 2319 } |
2320 v23 = (void *)v12->evtf; | 2320 v23 = (void *)v12->evtf; |
2321 if ( v23 ) | 2321 if ( v23 ) |
2332 1, | 2332 1, |
2333 0, | 2333 0, |
2334 0x88u, | 2334 0x88u, |
2335 0x18u, | 2335 0x18u, |
2336 0, | 2336 0, |
2337 nullstring, | 2337 "", |
2338 0); | 2338 0); |
2339 } | 2339 } |
2340 } | 2340 } |
2341 } | 2341 } |
2342 else | 2342 else |
2437 break; | 2437 break; |
2438 } | 2438 } |
2439 return pWindow; | 2439 return pWindow; |
2440 } | 2440 } |
2441 LABEL_62: | 2441 LABEL_62: |
2442 pWindow->CreateButton(0x3Du, 0x1A8u, 0x1Fu, 0, 2, 94, 0x6Eu, 1u, 0x31u, nullstring, 0); | 2442 pWindow->CreateButton(0x3Du, 0x1A8u, 0x1Fu, 0, 2, 94, 0x6Eu, 1u, 0x31u, "", 0); |
2443 pWindow->CreateButton(0xB1u, 0x1A8u, 0x1Fu, 0, 2, 94, 0x6Eu, 2u, 0x32u, nullstring, 0); | 2443 pWindow->CreateButton(0xB1u, 0x1A8u, 0x1Fu, 0, 2, 94, 0x6Eu, 2u, 0x32u, "", 0); |
2444 pWindow->CreateButton(0x124u, 0x1A8u, 0x1Fu, 0, 2, 94, 0x6Eu, 3u, 0x33u, nullstring, 0); | 2444 pWindow->CreateButton(0x124u, 0x1A8u, 0x1Fu, 0, 2, 94, 0x6Eu, 3u, 0x33u, "", 0); |
2445 pWindow->CreateButton(0x197u, 0x1A8u, 0x1Fu, 0, 2, 94, 0x6Eu, 4u, 0x34u, nullstring, 0); | 2445 pWindow->CreateButton(0x197u, 0x1A8u, 0x1Fu, 0, 2, 94, 0x6Eu, 4u, 0x34u, "", 0); |
2446 pWindow->CreateButton(0, 0, 0, 0, 1, 0, 0xB0u, 0, 9u, nullstring, 0); | 2446 pWindow->CreateButton(0, 0, 0, 0, 1, 0, 0xB0u, 0, 9u, "", 0); |
2447 return pWindow; | 2447 return pWindow; |
2448 } | 2448 } |
2449 if (eWindowType == WINDOW_HouseInterior) | 2449 if (eWindowType == WINDOW_HouseInterior) |
2450 { | 2450 { |
2451 pCurrentScreen = 13; | 2451 pCurrentScreen = 13; |