comparison GUIWindow.cpp @ 167:90a9c828c2a6

pWindow and pBtn
author Ritor1
date Wed, 12 Dec 2012 12:52:40 +0600
parents 062e8a8e09bc
children bf2956650e92
comparison
equal deleted inserted replaced
166:87c503d426e0 167:90a9c828c2a6
1248 0x58u, 1248 0x58u,
1249 0, 1249 0,
1250 0, 1250 0,
1251 "", 1251 "",
1252 0); 1252 0);
1253 ptr_5064F8 = v2->CreateButton( 1253 pBtn_InstallRemoveSpell = v2->CreateButton(
1254 0x1DCu, 1254 0x1DCu,
1255 0x1C2u, 1255 0x1C2u,
1256 0x30u, 1256 0x30u,
1257 0x20u, 1257 0x20u,
1258 1, 1258 1,
1286 0, 1286 0,
1287 0, 1287 0,
1288 pGlobalTXT_LocalizationStrings[79], 1288 pGlobalTXT_LocalizationStrings[79],
1289 ptr_506440, 1289 ptr_506440,
1290 0); 1290 0);
1291 ptr_5064F4 = result; 1291 pBtn_CloseBook = result;
1292 return result; 1292 return result;
1293 } 1293 }
1294 // 50640C: using guessed type int dword_50640C[]; 1294 // 50640C: using guessed type int dword_50640C[];
1295 1295
1296 1296
2138 pWindow->InitializeBookView(); 2138 pWindow->InitializeBookView();
2139 break; 2139 break;
2140 case WINDOW_A: 2140 case WINDOW_A:
2141 dword_506978 = pCurrentScreen; 2141 dword_506978 = pCurrentScreen;
2142 pCurrentScreen = 4; 2142 pCurrentScreen = 4;
2143 ptr_5076F4 = pWindow->CreateButton( 2143 pBtn_ExitCancel = pWindow->CreateButton(
2144 0x1D7u, 2144 0x1D7u,
2145 0x1BDu, 2145 0x1BDu,
2146 0xA9u, 2146 0xA9u,
2147 0x23u, 2147 0x23u,
2148 1, 2148 1,
2335 } 2335 }
2336 break; 2336 break;
2337 case WINDOW_11: 2337 case WINDOW_11:
2338 dword_506978 = pCurrentScreen; 2338 dword_506978 = pCurrentScreen;
2339 pCurrentScreen = 17; 2339 pCurrentScreen = 17;
2340 ptr_5076F4 = pWindow->CreateButton( 2340 pBtn_ExitCancel = pWindow->CreateButton(
2341 0x236u, 2341 0x236u,
2342 0x1BDu, 2342 0x1BDu,
2343 0x4Bu, 2343 0x4Bu,
2344 0x21u, 2344 0x21u,
2345 1, 2345 1,
2348 0, 2348 0,
2349 0x4Eu, 2349 0x4Eu,
2350 pGlobalTXT_LocalizationStrings[156], 2350 pGlobalTXT_LocalizationStrings[156],
2351 (Texture *)(uTextureID_BUTTDESC2 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_BUTTDESC2] : 0), 2351 (Texture *)(uTextureID_BUTTDESC2 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_BUTTDESC2] : 0),
2352 0); 2352 0);
2353 ptr_5076FC = pWindow->CreateButton( 2353 pBtn_YES = pWindow->CreateButton(
2354 0x1E6u, 2354 0x1E6u,
2355 0x1BDu, 2355 0x1BDu,
2356 0x4Bu, 2356 0x4Bu,
2357 0x21u, 2357 0x21u,
2358 1, 2358 1,
2400 return pWindow; 2400 return pWindow;
2401 } 2401 }
2402 if (eWindowType == WINDOW_HouseInterior) 2402 if (eWindowType == WINDOW_HouseInterior)
2403 { 2403 {
2404 pCurrentScreen = 13; 2404 pCurrentScreen = 13;
2405 ptr_5076F4 = pWindow->CreateButton( 2405 pBtn_ExitCancel = pWindow->CreateButton(
2406 0x1D7u, 2406 0x1D7u,
2407 0x1BDu, 2407 0x1BDu,
2408 0xA9u, 2408 0xA9u,
2409 0x23u, 2409 0x23u,
2410 1, 2410 1,
2467 { 2467 {
2468 if (eWindowType == WINDOW_1A) 2468 if (eWindowType == WINDOW_1A)
2469 { 2469 {
2470 dword_506978 = pCurrentScreen; 2470 dword_506978 = pCurrentScreen;
2471 pCurrentScreen = 18; 2471 pCurrentScreen = 18;
2472 ptr_5076F4 = pWindow->CreateButton( 2472 pBtn_ExitCancel = pWindow->CreateButton(
2473 0x236u, 2473 0x236u,
2474 0x1BDu, 2474 0x1BDu,
2475 0x4Bu, 2475 0x4Bu,
2476 0x21u, 2476 0x21u,
2477 1, 2477 1,
2480 0, 2480 0,
2481 0x4Eu, 2481 0x4Eu,
2482 pGlobalTXT_LocalizationStrings[34], 2482 pGlobalTXT_LocalizationStrings[34],
2483 (Texture *)(uTextureID_BUTTDESC2 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_BUTTDESC2] : 0), 2483 (Texture *)(uTextureID_BUTTDESC2 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_BUTTDESC2] : 0),
2484 0); 2484 0);
2485 ptr_5076FC = pWindow->CreateButton( 2485 pBtn_YES = pWindow->CreateButton(
2486 0x1E6u, 2486 0x1E6u,
2487 0x1BDu, 2487 0x1BDu,
2488 0x4Bu, 2488 0x4Bu,
2489 0x21u, 2489 0x21u,
2490 1, 2490 1,
2521 if (eWindowType == WINDOW_1E) 2521 if (eWindowType == WINDOW_1E)
2522 goto LABEL_62; 2522 goto LABEL_62;
2523 if (eWindowType == WINDOW_1F) 2523 if (eWindowType == WINDOW_1F)
2524 { 2524 {
2525 pMouse->SetCursorBitmap("MICON2"); 2525 pMouse->SetCursorBitmap("MICON2");
2526 ptr_5076F4 = pWindow->CreateButton( 2526 pBtn_ExitCancel = pWindow->CreateButton(
2527 0x188u, 2527 0x188u,
2528 0x13Eu, 2528 0x13Eu,
2529 0x4Bu, 2529 0x4Bu,
2530 0x21u, 2530 0x21u,
2531 1, 2531 1,