Mercurial > might-and-magic-trilogy
comparison GUIWindow.cpp @ 54:c28452924144
PLAYER_CLASS_TYPE
PlayerCreationUI_Draw
author | Ritor1 |
---|---|
date | Wed, 24 Oct 2012 17:54:35 +0600 |
parents | 25fabc49627b |
children | 30ec77bbd018 |
comparison
equal
deleted
inserted
replaced
49:25fabc49627b | 54:c28452924144 |
---|---|
1236 int a2; // [sp+10h] [bp-8h]@1 | 1236 int a2; // [sp+10h] [bp-8h]@1 |
1237 int v7; // [sp+14h] [bp-4h]@1 | 1237 int v7; // [sp+14h] [bp-4h]@1 |
1238 | 1238 |
1239 v1 = pPlayers[uActiveCharacter]; | 1239 v1 = pPlayers[uActiveCharacter]; |
1240 v2 = this; | 1240 v2 = this; |
1241 LoadSpellbook(v1->field_1A4E); | 1241 LoadSpellbook(v1->pNumSpellBookPage); |
1242 v3 = 0; | 1242 v3 = 0; |
1243 a2 = 0; | 1243 a2 = 0; |
1244 v7 = (int)(&v1->spellbook.pFireSpellbook + v1->field_1A4E); | 1244 v7 = (int)(&v1->spellbook.pFireSpellbook + v1->pNumSpellBookPage); |
1245 do | 1245 do |
1246 { | 1246 { |
1247 if ( *(char *)(v7 + v3) ) | 1247 if ( *(char *)(v7 + v3) ) |
1248 { | 1248 { |
1249 v4 = 2 * (12 * v1->field_1A4E + (unsigned __int8)*(&byte_4E2431[12 * v1->field_1A4E] + v3)); | 1249 v4 = 2 * (12 * v1->pNumSpellBookPage + (unsigned __int8)*(&byte_4E2431[12 * v1->pNumSpellBookPage] + v3)); |
1250 v2->CreateButton( | 1250 v2->CreateButton( |
1251 pViewport->uViewportX + dword_4E20D0[v4], | 1251 pViewport->uViewportX + dword_4E20D0[v4], |
1252 pViewport->uViewportY + dword_4E20D0[v4 + 1], | 1252 pViewport->uViewportY + dword_4E20D0[v4 + 1], |
1253 *(short *)(dword_50640C[v3] + 24), | 1253 *(short *)(dword_50640C[v3] + 24), |
1254 *(short *)(dword_50640C[v3] + 26), | 1254 *(short *)(dword_50640C[v3] + 26), |