annotate UICharacter.cpp @ 859:48c230c37d74

mistake
author zipi
date Sun, 31 Mar 2013 12:01:31 +0100
parents dfd683c4f538
children 10fa7dad1391 6daea87a3fe3
rev   line source
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1 #include <assert.h>
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3 #include "MM7.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
5 #include "MapInfo.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
6 #include "Game.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
7 #include "GUIWindow.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
8 #include "GUIFont.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
9 #include "GUIProgressBar.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
10 #include "Party.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
11 #include "AudioPlayer.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
12 #include "Outdoor.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
13 #include "IndoorCamera.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
14 #include "Overlays.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
15 #include "Monsters.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
16 #include "Arcomage.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
17 #include "LOD.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
18 #include "Actor.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
19 #include "Allocator.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
20 #include "Events.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
21 #include "Viewport.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
22 #include "FrameTableInc.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
23 #include "Math.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
24 #include "SpriteObject.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
25 #include "ObjectList.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
26 #include "Chest.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
27 #include "PaletteManager.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
28 #include "DecorationList.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
29 #include "SaveLoad.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
30 #include "stru123.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
31 #include "Time.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
32 #include "IconFrameTable.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
33 #include "Awards.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
34 #include "Autonotes.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
35 #include "stru160.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
36 #include "stru279.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
37 #include "TurnEngine.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
38 #include "stru277.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
39 #include "Weather.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
40 #include "stru272.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
41 #include "stru298.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
42 #include "StorylineTextTable.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
43 #include "Events2D.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
44 #include "texts.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
45 #include "stru351.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
46
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
47 #include "mm7_data.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
48
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
49
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
50
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
51
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
52
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
53 //----- (00419719) --------------------------------------------------------
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
54 char __fastcall CharacterUI_SkillsTab_Draw(unsigned int uPlayerID)
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
55 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
56 unsigned int v1; // esi@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
57 Player *pPlayer; // ebp@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
58 unsigned int v3; // eax@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
59 signed int v4; // ecx@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
60 int v5; // edi@3
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
61 GUIWindow *v6; // ecx@3
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
62 int v7; // eax@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
63 GUIButton *v8; // edx@5
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
64 int v9; // eax@7
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
65 unsigned int v10; // ecx@9
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
66 unsigned __int16 v11; // ax@9
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
67 int v12; // eax@9
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
68 unsigned __int8 v13; // cf@12
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
69 unsigned __int8 v14; // zf@12
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
70 unsigned int v15; // eax@12
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
71 char *v16; // ecx@22
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
72 GUIWindow *v17; // ecx@33
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
73 int v18; // edx@34
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
74 GUIButton *v19; // eax@35
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
75 int v20; // edx@37
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
76 unsigned __int16 v21; // cx@39
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
77 unsigned int v22; // eax@39
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
78 int v23; // edi@39
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
79 unsigned int v24; // eax@42
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
80 char v25; // sf@52
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
81 char *v26; // ecx@52
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
82 int v27; // edi@63
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
83 GUIWindow *v28; // ecx@63
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
84 int v29; // edx@64
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
85 GUIButton *v30; // eax@65
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
86 int v31; // edx@67
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
87 unsigned int v32; // ecx@69
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
88 int v33; // eax@69
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
89 unsigned int v34; // eax@72
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
90 char *v35; // ecx@82
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
91 GUIWindow *v36; // ecx@93
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
92 int v37; // edx@94
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
93 GUIButton *v38; // eax@94
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
94 int v39; // edx@97
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
95 unsigned __int16 v40; // cx@99
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
96 unsigned int v41; // eax@99
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
97 int v42; // edi@99
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
98 unsigned int v43; // eax@102
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
99 char *v44; // ecx@112
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
100 char *v46; // [sp-Ch] [bp-4Ch]@19
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
101 char *v47; // [sp-Ch] [bp-4Ch]@49
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
102 char *v48; // [sp-Ch] [bp-4Ch]@79
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
103 char *v49; // [sp-Ch] [bp-4Ch]@109
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
104 unsigned int v50; // [sp-8h] [bp-48h]@19
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
105 unsigned int v51; // [sp-8h] [bp-48h]@49
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
106 unsigned int v52; // [sp-8h] [bp-48h]@79
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
107 unsigned int v53; // [sp-8h] [bp-48h]@109
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
108 int v54; // [sp-4h] [bp-44h]@19
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
109 int v55; // [sp-4h] [bp-44h]@49
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
110 int v56; // [sp-4h] [bp-44h]@79
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
111 int v57; // [sp-4h] [bp-44h]@109
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
112 unsigned int v58; // [sp+10h] [bp-30h]@9
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
113 unsigned int v59; // [sp+10h] [bp-30h]@39
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
114 unsigned int v60; // [sp+10h] [bp-30h]@69
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
115 unsigned int v61; // [sp+10h] [bp-30h]@99
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
116 int v62; // [sp+14h] [bp-2Ch]@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
117 int v63; // [sp+14h] [bp-2Ch]@34
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
118 int v64; // [sp+14h] [bp-2Ch]@64
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
119 int v65; // [sp+14h] [bp-2Ch]@94
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
120 signed int i; // [sp+18h] [bp-28h]@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
121 signed int v67; // [sp+18h] [bp-28h]@34
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
122 signed int v68; // [sp+18h] [bp-28h]@64
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
123 signed int v69; // [sp+18h] [bp-28h]@94
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
124 int v70; // [sp+1Ch] [bp-24h]@3
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
125 int v71; // [sp+1Ch] [bp-24h]@33
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
126 int v72; // [sp+1Ch] [bp-24h]@63
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
127 int v73; // [sp+1Ch] [bp-24h]@93
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
128 int uY; // [sp+20h] [bp-20h]@9
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
129 int uYa; // [sp+20h] [bp-20h]@33
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
130 int uYb; // [sp+20h] [bp-20h]@69
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
131 int uYc; // [sp+20h] [bp-20h]@93
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
132 unsigned int a5; // [sp+24h] [bp-1Ch]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
133 unsigned int v79; // [sp+28h] [bp-18h]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
134 int *v80; // [sp+2Ch] [bp-14h]@3
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
135 int *v81; // [sp+2Ch] [bp-14h]@33
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
136 int *v82; // [sp+2Ch] [bp-14h]@63
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
137 int *v83; // [sp+2Ch] [bp-14h]@93
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
138 unsigned int v84; // [sp+30h] [bp-10h]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
139 int v85; // [sp+34h] [bp-Ch]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
140 unsigned int v86; // [sp+38h] [bp-8h]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
141 unsigned __int16 v87; // [sp+3Ch] [bp-4h]@9
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
142 char *v88; // [sp+3Ch] [bp-4h]@24
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
143 char *v89; // [sp+3Ch] [bp-4h]@54
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
144 unsigned __int16 v90; // [sp+3Ch] [bp-4h]@69
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
145 char *v91; // [sp+3Ch] [bp-4h]@84
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
146 char *v92; // [sp+3Ch] [bp-4h]@114
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
147
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
148 v1 = uPlayerID;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
149 a5 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
150 v84 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0xAFu, 0xFFu);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
151 v85 = pGUIWindow_CurrentMenu->pCurrentPosActiveItem;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
152 v86 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
153 v79 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0xFFu, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
154 pPlayer = &pParty->pPlayers[v1-1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
155 v3 = pIcons_LOD->LoadTexture("fr_skill", TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
156 pRenderer->DrawTextureIndexed(8u, 8u, (Texture *)(v3 != -1 ? (int)&pIcons_LOD->pTextures[v3] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
157 v4 = v79;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
158 if ( !pPlayer->uSkillPoints )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
159 v4 = 65535;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
160 sprintf(
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
161 pTmpBuf,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
162 "%s \f%05d%s\f00000\r177%s: \f%05d%d\f00000",
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
163 pGlobalTXT_LocalizationStrings[206], // Skills for
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
164 a5,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
165 pPlayer->pName,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
166 pGlobalTXT_LocalizationStrings[207], // Skill Points
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
167 v4,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
168 pPlayer->uSkillPoints);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
169 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 24, 18, 0, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
170 v5 = 2 * LOBYTE(pFontLucida->uFontHeight) + 13;// Weapons, Level
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
171 sprintf(pTmpBuf, "%s\r400%s", pGlobalTXT_LocalizationStrings[242], pGlobalTXT_LocalizationStrings[131]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
172 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 24, v5, a5, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
173 v6 = pGUIWindow_CurrentMenu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
174 v70 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
175 v80 = pWeaponSkills;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
176 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
177 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
178 v62 = *v80;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
179 v7 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
180 for ( i = 0; i < (signed int)v6->uNumControls; v7 = i++ + 1 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
181 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
182 v8 = v6->pControlsHead;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
183 if ( v7 > 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
184 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
185 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
186 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
187 v8 = v8->pNext;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
188 --v7;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
189 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
190 while ( v7 );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
191 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
192 v9 = v8->field_1C;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
193 if ( SBYTE1(v9) >= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
194 continue;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
195 BYTE1(v9) &= 0x7Fu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
196 if ( v9 != v62 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
197 continue;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
198 v5 = v8->uY;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
199 v10 = pPlayer->uSkillPoints;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
200 ++v70;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
201 v11 = pPlayer->pActiveSkills[v62];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
202 v87 = pPlayer->pActiveSkills[v62];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
203 v12 = v11 & 0x3F;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
204 v58 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
205 uY = v12;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
206 if ( v10 >= v12 + 1 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
207 v58 = v84;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
208 if ( v85 == i )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
209 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
210 v13 = v10 < v12;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
211 v14 = v10 == v12;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
212 v15 = v86;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
213 if ( !(v13 | v14) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
214 v15 = v79;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
215 v58 = v15;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
216 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
217 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
218 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
219 v15 = v58;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
220 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
221 if ( HIBYTE(v87) & 1 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
222 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
223 if ( !v15 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
224 v15 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
225 v54 = uY;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
226 v50 = v58;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
227 v46 = pGlobalTXT_LocalizationStrings[96];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
228 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
229 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
230 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
231 if ( !(v87 & 0xC0) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
232 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
233 sprintf(pTmpBuf, "%s\r400%2d", pSkillNames[v62], uY);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
234 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 24, v5, v58, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
235 v6 = pGUIWindow_CurrentMenu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
236 continue;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
237 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
238 v16 = pGlobalTXT_LocalizationStrings[432];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
239 if ( (v87 & 0x80u) == 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
240 v16 = pGlobalTXT_LocalizationStrings[433];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
241 v88 = v16;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
242 if ( !v15 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
243 v15 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
244 v54 = uY;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
245 v50 = v58;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
246 v46 = v88;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
247 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
248 sprintf(pTmpBuf, "%s ", pSkillNames[v62], v15, v46, v50, v54);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
249 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 24, v5, v58, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
250 v6 = pGUIWindow_CurrentMenu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
251 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
252 ++v80;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
253 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
254 while ( v80 <= &pWeaponSkills[8]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
255 if ( !v70 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
256 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
257 v5 = v5 + LOBYTE(pFontLucida->uFontHeight) - 3;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
258 v6->DrawText(pFontLucida, 24, v5, 0, pGlobalTXT_LocalizationStrings[153], 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
259 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
260 uYa = v5 + 2 * LOBYTE(pFontLucida->uFontHeight) - 10;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
261 sprintf(pTmpBuf, "%s\r400%s", pGlobalTXT_LocalizationStrings[138], pGlobalTXT_LocalizationStrings[131]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
262 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 24, uYa, a5, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
263 v17 = pGUIWindow_CurrentMenu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
264 v71 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
265 v81 = pMagicSkills;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
266 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
267 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
268 v18 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
269 v67 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
270 v63 = *v81;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
271 while ( v67 < (signed int)v17->uNumControls )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
272 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
273 v19 = v17->pControlsHead;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
274 if ( v18 > 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
275 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
276 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
277 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
278 v19 = v19->pNext;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
279 --v18;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
280 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
281 while ( v18 );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
282 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
283 v20 = v19->field_1C;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
284 if ( SBYTE1(v20) >= 0 || (BYTE1(v20) &= 0x7Fu, v20 != v63) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
285 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
286 v18 = v67++ + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
287 continue;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
288 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
289 ++v71;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
290 uYa = v19->uY;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
291 v21 = pPlayer->pActiveSkills[v63];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
292 v22 = pPlayer->uSkillPoints;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
293 v23 = pPlayer->pActiveSkills[v63] & 0x3F;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
294 v59 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
295 if ( v22 >= v23 + 1 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
296 v59 = v84;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
297 if ( v85 == v67 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
298 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
299 v13 = v22 < v23;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
300 v14 = v22 == v23;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
301 v24 = v86;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
302 if ( !(v13 | v14) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
303 v24 = v79;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
304 v59 = v24;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
305 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
306 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
307 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
308 v24 = v59;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
309 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
310 if ( HIBYTE(v21) & 1 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
311 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
312 if ( !v24 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
313 v24 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
314 v55 = v23;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
315 v51 = v59;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
316 v47 = pGlobalTXT_LocalizationStrings[96];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
317 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
318 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
319 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
320 if ( !(v21 & 0xC0) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
321 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
322 sprintf(pTmpBuf, "%s\r400%2d", pSkillNames[v63], v23);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
323 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 24, uYa, v59, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
324 v17 = pGUIWindow_CurrentMenu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
325 v18 = v67++ + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
326 continue;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
327 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
328 v25 = (v21 & 0x80u) != 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
329 v26 = pGlobalTXT_LocalizationStrings[432];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
330 if ( !v25 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
331 v26 = pGlobalTXT_LocalizationStrings[433];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
332 v89 = v26;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
333 if ( !v24 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
334 v24 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
335 v55 = v23;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
336 v51 = v59;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
337 v47 = v89;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
338 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
339 sprintf(pTmpBuf, "%s ", pSkillNames[v63], v24, v47, v51, v55);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
340 //LABEL_58:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
341 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 24, uYa, v59, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
342 v17 = pGUIWindow_CurrentMenu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
343 //LABEL_59:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
344 v18 = v67++ + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
345 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
346 ++v81;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
347 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
348 while ( v81 <= &pMagicSkills[8]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
349 if ( !v71 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
350 v17->DrawText(
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
351 pFontLucida,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
352 24,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
353 LOBYTE(pFontLucida->uFontHeight) + uYa - 3,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
354 0,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
355 pGlobalTXT_LocalizationStrings[153],
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
356 0,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
357 0,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
358 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
359 v27 = 2 * LOBYTE(pFontLucida->uFontHeight) + 13;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
360 sprintf(pTmpBuf, "%s\r177%s", pGlobalTXT_LocalizationStrings[11], pGlobalTXT_LocalizationStrings[131]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
361 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 248, v27, a5, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
362 v28 = pGUIWindow_CurrentMenu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
363 v72 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
364 v82 = pArmorSkills;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
365 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
366 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
367 v29 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
368 v68 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
369 v64 = *v82;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
370 while ( v68 < (signed int)v28->uNumControls )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
371 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
372 v30 = v28->pControlsHead;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
373 if ( v29 > 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
374 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
375 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
376 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
377 v30 = v30->pNext;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
378 --v29;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
379 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
380 while ( v29 );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
381 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
382 v31 = v30->field_1C;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
383 if ( SBYTE1(v31) >= 0 || (BYTE1(v31) &= 0x7Fu, v31 != v64) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
384 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
385 v29 = v68++ + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
386 continue;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
387 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
388 v27 = v30->uY;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
389 ++v72;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
390 v60 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
391 v90 = pPlayer->pActiveSkills[v64];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
392 v32 = pPlayer->uSkillPoints;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
393 v33 = pPlayer->pActiveSkills[v64] & 0x3F;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
394 uYb = v33;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
395 if ( v32 >= v33 + 1 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
396 v60 = v84;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
397 if ( v85 == v68 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
398 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
399 v13 = v32 < v33;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
400 v14 = v32 == v33;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
401 v34 = v86;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
402 if ( !(v13 | v14) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
403 v34 = v79;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
404 v60 = v34;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
405 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
406 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
407 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
408 v34 = v60;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
409 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
410 if ( (pPlayer->pActiveSkills[v64] >> 8) & 1 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
411 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
412 if ( !v34 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
413 v34 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
414 v56 = uYb;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
415 v52 = v60;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
416 v48 = pGlobalTXT_LocalizationStrings[96];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
417 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
418 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
419 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
420 if ( !(v90 & 0xC0) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
421 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
422 sprintf(pTmpBuf, "%s\r177%2d", pSkillNames[v64], uYb);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
423 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 248, v27, v60, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
424 v28 = pGUIWindow_CurrentMenu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
425 v29 = v68++ + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
426 continue;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
427 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
428 v35 = pGlobalTXT_LocalizationStrings[432];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
429 if ( (v90 & 0x80u) == 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
430 v35 = pGlobalTXT_LocalizationStrings[433];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
431 v91 = v35;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
432 if ( !v34 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
433 v34 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
434 v56 = uYb;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
435 v52 = v60;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
436 v48 = v91;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
437 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
438 sprintf(pTmpBuf, "%s ", pSkillNames[v64], v34, v48, v52, v56);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
439 //LABEL_88:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
440 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 248, v27, v60, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
441 v28 = pGUIWindow_CurrentMenu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
442 //LABEL_89:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
443 v29 = v68++ + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
444 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
445 ++v82;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
446 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
447 while ( v82 <= &pArmorSkills[4]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
448 if ( !v72 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
449 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
450 v27 = v27 + LOBYTE(pFontLucida->uFontHeight) - 3;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
451 v28->DrawText(pFontLucida, 248, v27, 0, pGlobalTXT_LocalizationStrings[153], 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
452 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
453 uYc = v27 + 2 * LOBYTE(pFontLucida->uFontHeight) - 10;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
454 sprintf(pTmpBuf, "%s\r177%s", pGlobalTXT_LocalizationStrings[143], pGlobalTXT_LocalizationStrings[131]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
455 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 248, uYc, a5, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
456 v36 = pGUIWindow_CurrentMenu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
457 v73 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
458 v83 = pMiscSkills;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
459 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
460 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
461 v37 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
462 v69 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
463 v38 = (GUIButton *)*v83;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
464 v65 = *v83;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
465 while ( v69 < (signed int)v36->uNumControls )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
466 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
467 v38 = v36->pControlsHead;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
468 if ( v37 > 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
469 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
470 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
471 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
472 v38 = v38->pNext;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
473 --v37;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
474 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
475 while ( v37 );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
476 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
477 v39 = v38->field_1C;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
478 if ( SBYTE1(v39) >= 0 || (BYTE1(v39) &= 0x7Fu, v39 != v65) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
479 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
480 //goto LABEL_119;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
481 v37 = v69++ + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
482 continue;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
483 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
484 ++v73;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
485 uYc = v38->uY;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
486 v40 = pPlayer->pActiveSkills[v65];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
487 v41 = pPlayer->uSkillPoints;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
488 v42 = pPlayer->pActiveSkills[v65] & 0x3F;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
489 v61 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
490 if ( v41 >= v42 + 1 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
491 v61 = v84;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
492 if ( v85 == v69 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
493 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
494 v13 = v41 < v42;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
495 v14 = v41 == v42;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
496 v43 = v86;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
497 if ( !(v13 | v14) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
498 v43 = v79;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
499 v61 = v43;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
500 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
501 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
502 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
503 v43 = v61;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
504 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
505 if ( HIBYTE(v40) & 1 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
506 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
507 if ( !v43 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
508 v43 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
509 v57 = v42;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
510 v53 = v61;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
511 v49 = pGlobalTXT_LocalizationStrings[96];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
512 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
513 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
514 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
515 if ( !(v40 & 0xC0) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
516 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
517 sprintf(pTmpBuf, "%s\r177%2d", pSkillNames[v65], v42);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
518 LOBYTE(v38) = pGUIWindow_CurrentMenu->DrawText(pFontLucida, 248, uYc, v61, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
519 v36 = pGUIWindow_CurrentMenu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
520 v37 = v69++ + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
521 continue;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
522 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
523 v25 = (v40 & 0x80u) != 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
524 v44 = pGlobalTXT_LocalizationStrings[432];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
525 if ( !v25 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
526 v44 = pGlobalTXT_LocalizationStrings[433];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
527 v92 = v44;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
528 if ( !v43 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
529 v43 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
530 v57 = v42;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
531 v53 = v61;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
532 v49 = v92;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
533 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
534 sprintf(pTmpBuf, "%s ", pSkillNames[v65], v43, v49, v53, v57);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
535 LOBYTE(v38) = pGUIWindow_CurrentMenu->DrawText(pFontLucida, 248, uYc, v61, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
536 v36 = pGUIWindow_CurrentMenu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
537 v37 = v69++ + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
538 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
539 ++v83;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
540 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
541 while ( v83 <= &pMiscSkills[11]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
542 if ( !v73 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
543 LOBYTE(v38) = v36->DrawText(
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
544 pFontLucida,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
545 248,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
546 LOBYTE(pFontLucida->uFontHeight) + uYc - 3,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
547 0,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
548 pGlobalTXT_LocalizationStrings[153],
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
549 0,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
550 0,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
551 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
552 return (char)v38;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
553 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
554
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
555 //----- (0041A000) --------------------------------------------------------
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
556 void CharacterUI_AwardsTab_Draw( unsigned int uPlayerID )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
557 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
558 //unsigned int v1; // esi@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
559 unsigned int v2; // ebx@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
560 unsigned int award_texture_id; // eax@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
561 unsigned int result; // eax@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
562 int v5; // eax@15
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
563 char *v6; // ebx@15
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
564 int v7; // eax@23
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
565 int v8; // eax@24
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
566 int v9; // eax@25
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
567 int v10; // eax@27
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
568 int v11; // eax@32
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
569 int v12; // eax@33
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
570 int v13; // eax@34
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
571 signed int v14; // eax@43
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
572 unsigned int v15; // eax@43
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
573 int v16; // eax@43
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
574 int v17; // [sp-4h] [bp-D4h]@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
575 char Source[100]; // [sp+Ch] [bp-C4h]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
576 GUIWindow a1; // [sp+70h] [bp-60h]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
577 unsigned int v20; // [sp+C4h] [bp-Ch]@15
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
578 int v21; // [sp+C8h] [bp-8h]@14
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
579 int v22; // [sp+CCh] [bp-4h]@40
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
580
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
581 auto player = &pParty->pPlayers[uPlayerID - 1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
582 //v1 = uPlayerID;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
583 v2 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
584 award_texture_id = pIcons_LOD->LoadTexture("fr_award", TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
585 pRenderer->DrawTextureIndexed(8u, 8u, (Texture *)(award_texture_id != -1 ? &pIcons_LOD->pTextures[award_texture_id] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
586 sprintfex(pTmpBuf, "%s \f%05d", pGlobalTXT_LocalizationStrings[LOCSTR_AVARDS_FOR], v2);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
587 sprintfex(Source, pGlobalTXT_LocalizationStrings[LOCSTR_S_THE_S], player->pName, pClassNames[player->classType]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
588 strcat(pTmpBuf, Source);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
589 strcat(pTmpBuf, "\f00000");
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
590 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 24, 18, 0, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
591 result = dword_506528;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
592 a1.uFrameX = 12;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
593 a1.uFrameY = 48;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
594 a1.uFrameWidth = 424;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
595 a1.uFrameHeight = 290;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
596 a1.uFrameZ = 435;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
597 a1.uFrameW = 337;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
598 if ( dword_506544 && awards_count + dword_506528 < awards_count2 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
599 result = dword_506528++ + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
600 if ( dword_506548 && result )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
601 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
602 --result;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
603 dword_506528 = result;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
604 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
605 if ( dword_50651C < 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
606 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
607 result += awards_count;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
608 dword_506528 = result;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
609 if ( (signed int)(awards_count + result) > awards_count2 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
610 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
611 result = awards_count2 - awards_count;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
612 dword_506528 = result;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
613 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
614 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
615 else if ( dword_50651C > 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
616 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
617 result -= awards_count;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
618 dword_506528 = result;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
619 if ( (result & 0x80000000u) != 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
620 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
621 result = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
622 dword_506528 = result;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
623 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
624 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
625 //LABEL_14:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
626 dword_506544 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
627 dword_506548 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
628 awards_count = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
629 dword_50651C = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
630 v21 = result;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
631 if ( (signed int)result < awards_count2 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
632 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
633 while ( 1 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
634 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
635 v5 = achievedAwardsIndex[v21];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
636 v20 = achievedAwardsIndex[v21];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
637 v6 = (char *)pAwards[v20].pText;//(char *)dword_723E80_award_related[v20 / 4];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
638 if ( v5 != 1 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
639 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
640 if (!( (v5 < 85 || v5 > 91) && (v5 < 103 || v5 > 104) ))
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
641 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
642 if ( v5 > 89 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
643 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
644 if ( v5 == 90 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
645 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
646 v10 = (unsigned __int8)pParty->uNumArenaKnightWins;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
647 v22 = v10;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
648 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
649 else if ( v5 == 91 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
650 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
651 v10 = (unsigned __int8)pParty->uNumArenaLordWins;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
652 v22 = v10;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
653 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
654 else if ( v5 == 103 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
655 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
656 v10 = pParty->field_874;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
657 v22 = v10;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
658 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
659 else if ( v5 == 104 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
660 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
661 v10 = pParty->field_878;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
662 v22 = v10;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
663 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
664 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
665 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
666 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
667 if ( v5 == 89 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
668 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
669 v10 = (unsigned __int8)pParty->uNumArenaSquireWins;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
670 v22 = v10;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
671 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
672 else if ( v5 == 85 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
673 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
674 v10 = pParty->uNumDeaths;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
675 v22 = v10;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
676 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
677 else if ( v5 == 86 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
678 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
679 v10 = pParty->uNumBountiesCollected;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
680 v22 = v10;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
681 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
682 else if ( v5 == 87 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
683 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
684 v10 = pParty->uNumPrisonTerms;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
685 v22 = v10;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
686 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
687 else if ( v5 == 88)
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
688 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
689 v10 = (unsigned __int8)pParty->uNumArenaPageWins;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
690 v22 = v10;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
691 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
692 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
693 v17 = v22;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
694 sprintf(pTmpBuf, v6, v17);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
695 v6 = pTmpBuf;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
696 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
697 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
698 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
699 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
700 v17 = pParty->uFine;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
701 sprintf(pTmpBuf, v6, v17);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
702 v6 = pTmpBuf;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
703 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
704 v14 = pAwards[v20].uSort;//dword_723E84[v20 / 4];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
705 ++awards_count;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
706 v15 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
707 pAwardsTextColors[3 * v14 % 6],
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
708 pAwardsTextColors[3 * v14 % 6 + 1],
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
709 pAwardsTextColors[3 * v14 % 6 + 2]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
710 a1.DrawText(pFontArrus, 0, 0, v15, v6, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
711 v16 = pFontArrus->CalcTextHeight(v6, &a1, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
712 result = v16 + a1.uFrameY + 4;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
713 if ( (signed int)result <= (signed int)a1.uFrameHeight )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
714 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
715 ++v21;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
716 a1.uFrameY = result;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
717 result = v21;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
718 if ( v21 < awards_count2 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
719 continue;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
720 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
721 return;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
722 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
723
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
724 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
725 return;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
726 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
727
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
728
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
729
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
730
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
731
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
732
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
733 //----- (0041A2C1) --------------------------------------------------------
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
734 unsigned int __fastcall GetSizeInInventorySlots(unsigned int uNumPixels)
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
735 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
736 if ( (signed int)uNumPixels < 14 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
737 uNumPixels = 14;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
738 return ((signed int)(uNumPixels - 14) >> 5) + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
739 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
740
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
741 //----- (0041A2D1) --------------------------------------------------------
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
742 void __fastcall CharacterUI_InventoryTab_Draw(unsigned int uPlayerID, char a2)
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
743 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
744 Player *pPlayer; // esi@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
745 char v3; // bl@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
746 unsigned int v4; // eax@2
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
747 ItemGen *pItem; // ebx@5
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
748 unsigned int v6; // eax@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
749 Texture *v7; // esi@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
750 __int16 v8; // ax@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
751 signed int v9; // edi@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
752 signed int v10; // ecx@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
753 signed int v11; // edx@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
754 signed int v12; // eax@11
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
755 int v13; // eax@13
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
756 signed int v14; // edx@13
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
757 int v15; // eax@13
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
758 unsigned int v16; // ebx@15
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
759 unsigned int v17; // edi@15
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
760 Texture *pTexture; // ebx@24
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
761 double v19; // st7@26
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
762 const char *v20; // [sp-8h] [bp-40h]@20
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
763 Player *pPlayer2; // [sp+14h] [bp-24h]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
764 int uTextureId; // [sp+18h] [bp-20h]@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
765 int *v23; // [sp+1Ch] [bp-1Ch]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
766 int v24; // [sp+20h] [bp-18h]@5
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
767 ItemGen *pItem2; // [sp+24h] [bp-14h]@5
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
768 int v26; // [sp+28h] [bp-10h]@3
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
769 unsigned int uCellID; // [sp+2Ch] [bp-Ch]@3
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
770 unsigned int uCellX; // [sp+30h] [bp-8h]@5
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
771 unsigned int uCellY; // [sp+34h] [bp-4h]@5
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
772
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
773 v23 = pRenderer->pActiveZBuffer;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
774 pPlayer = pPlayers[uPlayerID];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
775 v3 = a2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
776 pPlayer2 = pPlayers[uPlayerID];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
777 pRenderer->DrawTextureIndexed(8, 8, (Texture *)(uTextureID_507958 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_507958] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
778 if ( v3 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
779 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
780 v4 = pIcons_LOD->LoadTexture("fr_strip", TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
781 pRenderer->DrawTextureIndexed(8u, 0x131u, (Texture *)(v4 != -1 ? (int)&pIcons_LOD->pTextures[v4] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
782 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
783 uCellID = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
784 v26 = (int)pPlayer->pInventoryIndices;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
785 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
786 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
787 if ( *(int *)v26 > 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
788 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
789 v24 = *(int *)v26 - 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
790 uCellY = 32 * (uCellID / 14) + 17;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
791 pItem = &pPlayer->pInventoryItems[v24];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
792 uCellX = 32 * (uCellID % 14) + 14;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
793 pItem2 = pItem;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
794 if ( pItem->uItemID )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
795 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
796 v6 = pIcons_LOD->LoadTexture(pItemsTable->pItems[pItem->uItemID].pIconName, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
797 uTextureId = v6;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
798 v7 = (Texture *)(v6 != -1 ? (int)&pIcons_LOD->pTextures[v6] : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
799 v8 = (v6 != -1 ? pIcons_LOD->pTextures[v6].uTextureWidth : 24);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
800 v9 = v7->uTextureHeight;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
801 v10 = v7->uTextureWidth;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
802 v11 = v7->uTextureWidth;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
803 if ( v10 < 14 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
804 v11 = 14;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
805 if ( (v11 - 14) >> 5 == 0 && v8 < 32 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
806 uCellX += (32 - v10) / 2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
807 v12 = v7->uTextureWidth;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
808 if ( v10 < 14 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
809 v12 = 14;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
810 v13 = v12 - 14;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
811 v14 = v7->uTextureHeight;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
812 LOBYTE(v13) = v13 & 0xE0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
813 v15 = v13 + 32;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
814 if ( v9 < 14 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
815 v14 = 14;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
816 v16 = pItem->uAttributes;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
817 v17 = uCellX + ((v15 - v10) >> 1) + pSRZBufferLineOffsets[uCellY + ((((v14 - 14) & 0xFFFFFFE0) - v9 + 32) >> 1)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
818 if ( !(v16 & 0xF0) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
819 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
820 if (pItem->Identified() || pCurrentScreen != SCREEN_HOUSE )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
821 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
822 if (pItem->Broken())
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
823 pRenderer->DrawTransparentRedShade(uCellX, uCellY, v7);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
824 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
825 pRenderer->DrawTextureTransparent(uCellX, uCellY, v7);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
826 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
827 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
828 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
829 pRenderer->DrawTransparentGreenShade(uCellX, uCellY, v7);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
830 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
831 ZBuffer_Fill(&v23[v17], uTextureId, v24 + 1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
832 pPlayer = pPlayer2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
833 //goto LABEL_34;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
834 ++uCellID;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
835 v26 += 4;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
836 continue;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
837 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
838 if ( (unsigned __int8)(v16 & 0xF0) != 16 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
839 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
840 if ( (unsigned __int8)(v16 & 0xF0) == 32 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
841 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
842 v20 = "sp28a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
843 pTexture = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v20, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
844 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
845 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
846 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
847 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
848 LOBYTE(pItem2->uAttributes) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
849 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
850 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
851 v19 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
852 pRenderer->_4A63E6(uCellX, uCellY, v7, pTexture, (signed __int64)v19, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
853 ZBuffer_Fill(&v23[v17], uTextureId, v24 + 1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
854 pPlayer = pPlayer2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
855 //goto LABEL_34;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
856 ++uCellID;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
857 v26 += 4;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
858 continue;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
859 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
860 if ( (unsigned __int8)(v16 & 0xF0) == 64 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
861 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
862 v20 = "sp30a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
863 pTexture = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v20, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
864 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
865 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
866 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
867 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
868 LOBYTE(pItem2->uAttributes) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
869 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
870 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
871 v19 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
872 pRenderer->_4A63E6(uCellX, uCellY, v7, pTexture, (signed __int64)v19, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
873 ZBuffer_Fill(&v23[v17], uTextureId, v24 + 1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
874 pPlayer = pPlayer2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
875 //goto LABEL_34;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
876 ++uCellID;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
877 v26 += 4;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
878 continue;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
879 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
880 if ( (unsigned __int8)(v16 & 0xF0) == 128 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
881 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
882 v20 = "sp91a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
883 pTexture = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v20, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
884 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
885 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
886 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
887 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
888 LOBYTE(pItem2->uAttributes) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
889 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
890 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
891 v19 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
892 pRenderer->_4A63E6(uCellX, uCellY, v7, pTexture, (signed __int64)v19, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
893 ZBuffer_Fill(&v23[v17], uTextureId, v24 + 1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
894 pPlayer = pPlayer2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
895 //goto LABEL_34;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
896 ++uCellID;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
897 v26 += 4;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
898 continue;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
899 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
900 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
901 v20 = "sptext01";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
902 pTexture = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v20, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
903 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
904 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
905 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
906 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
907 LOBYTE(pItem2->uAttributes) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
908 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
909 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
910 v19 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
911 pRenderer->_4A63E6(uCellX, uCellY, v7, pTexture, (signed __int64)v19, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
912 ZBuffer_Fill(&v23[v17], uTextureId, v24 + 1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
913 pPlayer = pPlayer2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
914 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
915 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
916 //LABEL_34:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
917 ++uCellID;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
918 v26 += 4;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
919 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
920 while ( uCellID < 126 );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
921 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
922
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
923 //----- (0041A556) --------------------------------------------------------
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
924 void __cdecl draw_leather()
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
925 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
926 pRenderer->DrawTextureIndexed(8, 8, pIcons_LOD->GetTexture(uTextureID_Leather));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
927 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
928
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
929 //----- (0041A57E) --------------------------------------------------------
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
930 void QuickRefDraw()
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
931 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
932 unsigned int v0; // ebx@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
933 //unsigned int v1; // eax@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
934 Player *pPlayer; // ebp@2
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
935 int v3; // eax@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
936 int v4; // edi@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
937 unsigned int v5; // eax@7
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
938 unsigned int v6; // edi@9
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
939 unsigned int v7; // edi@11
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
940 signed int v8; // eax@13
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
941 unsigned int v9; // eax@13
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
942 unsigned int v10; // edi@13
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
943 int v11; // eax@15
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
944 unsigned int v12; // eax@15
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
945 unsigned int v13; // edi@15
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
946 int v14; // eax@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
947 int v15; // ST18_4@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
948 int v16; // ebx@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
949 int v17; // eax@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
950 unsigned int v18; // eax@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
951 unsigned int v19; // edi@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
952 int v20; // eax@19
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
953 unsigned int v21; // edi@19
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
954 char *v22; // eax@21
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
955 unsigned int v23; // edi@21
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
956 int v24; // eax@23
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
957 unsigned int v25; // edi@23
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
958 char *v26; // eax@25
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
959 unsigned int v27; // edi@25
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
960 int v28; // ecx@27
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
961 char *v29; // eax@27
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
962 signed int v30; // edx@27
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
963 unsigned int v31; // edi@31
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
964 unsigned int v32; // edi@33
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
965 const char *v33; // ST10_4@35
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
966 unsigned int v34; // eax@35
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
967 unsigned int v35; // edi@35
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
968 unsigned __int8 v36; // al@37
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
969 char *v37; // eax@38
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
970 int v38; // eax@41
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
971 signed int v39; // edi@42
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
972 char *v40; // eax@45
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
973 unsigned int v41; // eax@45
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
974 signed int v43; // [sp+10h] [bp-1Ch]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
975 unsigned int v44; // [sp+14h] [bp-18h]@2
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
976 int v45; // [sp+18h] [bp-14h]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
977 unsigned int v46; // [sp+1Ch] [bp-10h]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
978 unsigned int v47; // [sp+20h] [bp-Ch]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
979 unsigned int v48; // [sp+24h] [bp-8h]@33
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
980 //unsigned int v49; // [sp+28h] [bp-4h]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
981
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
982 v0 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
983 v47 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
984 //v49 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
985 v46 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0xFFu, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
986 //v1 = pIcons_LOD->LoadTexture("quikref", TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
987 pRenderer->DrawTextureIndexed(8, 8, pIcons_LOD->LoadTexturePtr("quikref", TEXTURE_16BIT_PALETTE));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
988 v43 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
989 v45 = LOBYTE(pFontArrus->uFontHeight) + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
990 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
991 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
992 pPlayer = &pParty->pPlayers[v43];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
993 v44 = 94 * v43 + 89;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
994 if ( v43 == v0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
995 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, 0x12u, v0, pGlobalTXT_LocalizationStrings[149], 60, v0);//Name
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
996 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 94 * v43 + 89, 0x12u, v47, pPlayer->pName, 84, v0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
997 if ( v43 == v0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
998 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, 0x2Fu, v0, pGlobalTXT_LocalizationStrings[131], 60, v0); //Óðîâ.
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
999 v3 = pPlayer->GetActualLevel();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1000 sprintf(pTmpBuf, "%lu", v3);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1001 v4 = pPlayer->GetBaseLevel();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1002 if ( pPlayer->GetActualLevel() <= v4 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1003 v5 = pPlayer->GetExperienceDisplayColor();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1004 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1005 v5 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0xFFu, v0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1006 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, 0x2Fu, v5, pTmpBuf, 84, v0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1007 v6 = v45 + 47;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1008 if ( v43 == v0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1009 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v45 + 47, v0, pGlobalTXT_LocalizationStrings[41], 60, v0);//Êëàññ
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1010 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v6, v0, pClassNames[pPlayer->classType], 84, v0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1011 v7 = v45 + v6;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1012 if ( v43 == v0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1013 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v7, v0, pGlobalTXT_LocalizationStrings[107], 60, v0);//Çäîð.
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1014 sprintf(pTmpBuf, "%d", pPlayer->sHealth);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1015 v8 = pPlayer->GetMaxHealth();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1016 v9 = UI_GetHealthManaStringColor(pPlayer->sHealth, v8);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1017 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v7, v9, pTmpBuf, 84, v0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1018 v10 = v45 + v7;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1019 if ( v43 == v0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1020 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v10, v0, pGlobalTXT_LocalizationStrings[209], 60, v0);//Ìàíà
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1021 sprintf(pTmpBuf, "%d", pPlayer->sMana);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1022 v11 = pPlayer->GetMaxMana();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1023 v12 = UI_GetHealthManaStringColor(pPlayer->sMana, v11);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1024 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v10, v12, pTmpBuf, 84, v0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1025 v13 = v45 + v10;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1026 if ( v43 == v0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1027 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v13, v0, pGlobalTXT_LocalizationStrings[0], 60, v0);//Êëàññ áðîíè
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1028 v14 = pPlayer->GetActualAC();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1029 sprintf(pTmpBuf, "%d", v14);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1030 v15 = v0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1031 v16 = pPlayer->GetBaseAC();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1032 v17 = pPlayer->GetActualAC();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1033 v18 = UI_GetHealthManaStringColor(v17, v16);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1034 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v13, v18, pTmpBuf, 84, v15);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1035 v0 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1036 v19 = v45 + v13;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1037 if ( !v43 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1038 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v19, 0, pGlobalTXT_LocalizationStrings[18], 60, 0);//Àòàêà
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1039 v20 = pPlayer->GetActualAttack(0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1040 sprintf(pTmpBuf, "%+d", v20);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1041 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v19, 0, pTmpBuf, 84, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1042 v21 = v45 + v19;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1043 if ( !v43 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1044 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v21, 0, pGlobalTXT_LocalizationStrings[66], 60, 0);//Ïîâð.
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1045 v22 = pPlayer->GetMeleeDamageString();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1046 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v21, 0, v22, 84, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1047 v23 = v45 + v21;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1048 if ( !v43 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1049 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v23, 0, pGlobalTXT_LocalizationStrings[203], 60, 0);// Ñòðåëÿòü
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1050 v24 = pPlayer->GetRangedAttack();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1051 sprintf(pTmpBuf, "%+d", v24);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1052 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v23, 0, pTmpBuf, 84, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1053 v25 = v45 + v23;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1054 if ( !v43 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1055 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v25, 0, pGlobalTXT_LocalizationStrings[66], 60, 0);//Ïîâð.
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1056 v26 = pPlayer->GetRangedDamageString();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1057 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v25, 0, v26, 84, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1058 v27 = v45 + v25;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1059 if ( !v43 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1060 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v27, 0, pGlobalTXT_LocalizationStrings[205], 60, 0);//Íàâûêè
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1061 v28 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1062 v29 = (char *)pPlayer->pActiveSkills;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1063 v30 = 36;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1064 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1065 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1066 if ( *(short *)v29 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1067 ++v28;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1068 v29 += 2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1069 --v30;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1070 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1071 while ( v30 );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1072 sprintf(pTmpBuf, "%lu", v28);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1073 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v27, 0, pTmpBuf, 84, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1074 v31 = v45 + v27;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1075 if ( !v43 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1076 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v31, 0, pGlobalTXT_LocalizationStrings[168], 60, 0);//Î÷êè
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1077 sprintf(pTmpBuf, "%lu", pPlayer->uSkillPoints);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1078 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v31, pPlayer->uSkillPoints != 0 ? v46 : 0, pTmpBuf, 84, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1079 v32 = v45 + v31;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1080 v48 = pPlayer->GetMajorConditionIdx();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1081 if ( !v43 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1082 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v32, 0, pGlobalTXT_LocalizationStrings[45], 60, 0);//Ñîñò.
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1083 v33 = aCharacterConditionNames[v48];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1084 v34 = GetConditionDrawColor(v48);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1085 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v32, v34, v33, 84, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1086 v35 = v45 + v32;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1087 if ( !v43 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1088 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v35, 0, pGlobalTXT_LocalizationStrings[170], 60, 0);//Á.Ïðèì.
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1089 v36 = pPlayer->uQuickSpell;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1090 if ( v36 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1091 v37 = pSpellStats->pInfos[v36].pShortName;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1092 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1093 v37 = pGlobalTXT_LocalizationStrings[153];//Íåò
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1094 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v35, 0, v37, 84, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1095 ++v43;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1096 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1097 while ( v43 < 4 );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1098
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1099 v38 = GetPartyReputation();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1100 if ( v38 >= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1101 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1102 if ( v38 <= 5 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1103 v39 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFF, 0xFF, 0xFF);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1104 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1105 v39 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFF, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1106 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1107 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1108 v39 = v46;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1109
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1110 v40 = GetReputationString(v38);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1111 sprintf(pTmpBuf, "%s: \f%05d%s\f00000", pGlobalTXT_LocalizationStrings[180], v39, v40);//Reputation
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1112 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 22, 323, 0, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1113 v41 = pParty->GetPartyFame();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1114 sprintf(pTmpBuf, "\r261%s: %d", pGlobalTXT_LocalizationStrings[84], v41);// Fame Ñëàâà
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1115 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 0, 323, 0, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1116 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1117
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1118 //----- (0041ABFD) --------------------------------------------------------
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1119 void __thiscall CharacterUI_CharacterScreen_Draw(unsigned int uPlayerIdx)
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1120 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1121 unsigned int v1; // edi@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1122 unsigned int v2; // eax@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1123 Texture *pTexture; // ecx@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1124 GUIButton *pButton; // eax@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1125 unsigned int v5; // eax@7
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1126 unsigned int v6; // eax@10
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1127 unsigned int v7; // eax@11
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1128
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1129 v1 = uPlayerIdx;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1130 if ( uPlayerIdx )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1131 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1132 pRenderer->ClearZBuffer(0, 479);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1133 switch ( pWindowList_at_506F50_minus1_indexing_buttons____and_an_int_[0] )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1134 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1135 case WINDOW_CharacterWindow_Stats: // stats
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1136 sub_4196A0();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1137 sub_419379();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1138 CharacterUI_StatsTab_Draw(v1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1139 v7 = pIcons_LOD->LoadTexture("ib-cd1-d", TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1140 pTexture = (Texture *)(v7 != -1 ? (int)&pIcons_LOD->pTextures[v7] : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1141 pButton = pCharacterScreen_StatsBtn;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1142 pRenderer->DrawTextureIndexed(pButton->uX, pButton->uY, pTexture);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1143 break;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1144 case WINDOW_CharacterWindow_Skills: // skills
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1145 if ( dword_507CC0 != uActiveCharacter )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1146 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1147 sub_4196A0();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1148 CharacterUI_SkillScreen_Draw();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1149 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1150 sub_419379();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1151 CharacterUI_SkillsTab_Draw(v1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1152 v6 = pIcons_LOD->LoadTexture("ib-cd2-d", TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1153 pTexture = (Texture *)(v6 != -1 ? (int)&pIcons_LOD->pTextures[v6] : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1154 pButton = pCharacterScreen_SkillsBtn;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1155 pRenderer->DrawTextureIndexed(pButton->uX, pButton->uY, pTexture);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1156 break;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1157 case WINDOW_CharacterWindow_Awards: // awards
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1158 sub_4196A0();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1159 sub_419379();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1160 sub_419220();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1161 CharacterUI_AwardsTab_Draw(v1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1162 v5 = pIcons_LOD->LoadTexture("ib-cd4-d", TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1163 pTexture = (Texture *)(v5 != -1 ? (int)&pIcons_LOD->pTextures[v5] : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1164 pButton = pCharacterScreen_AwardsBtn;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1165 pRenderer->DrawTextureIndexed(pButton->uX, pButton->uY, pTexture);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1166 break;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1167 case WINDOW_CharacterWindow_Inventory: // inventory and other
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1168 sub_4196A0();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1169 sub_419379();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1170 CharacterUI_InventoryTab_Draw(v1, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1171 v2 = pIcons_LOD->LoadTexture("ib-cd3-d", TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1172 pTexture = (Texture *)(v2 != -1 ? (int)&pIcons_LOD->pTextures[v2] : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1173 pButton = pCharacterScreen_InventoryBtn;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1174 pRenderer->DrawTextureIndexed(pButton->uX, pButton->uY, pTexture);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1175 break;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1176 default:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1177 break;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1178 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1179 if ( bRingsShownInCharScreen )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1180 CharacterUI_DrawPaperdollWithRingOverlay(v1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1181 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1182 CharacterUI_DrawPaperdoll(v1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1183 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1184 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1185
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1186 //----- (0043CC7C) --------------------------------------------------------
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1187 void __fastcall CharacterUI_DrawPaperdoll(unsigned int uPlayerID)
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1188 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1189 //Player **ppPlayer; // esi@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1190 Player *pPlayer; // ebx@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1191 //enum CHARACTER_RACE pRace; // edi@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1192 signed int pSex; // eax@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1193 //int v5; // edi@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1194 unsigned int v6; // ecx@9
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1195 int v7; // ecx@10
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1196 unsigned int v8; // eax@14
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1197 int v9; // eax@15
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1198 int v10; // edx@15
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1199 int v11; // ecx@15
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1200 int v12; // eax@15
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1201 unsigned int v13; // edi@15
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1202 unsigned int v14; // ebx@18
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1203 int v15; // ecx@18
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1204 Texture *v16; // ebp@27
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1205 double v17; // st7@29
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1206 int v18; // edi@30
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1207 char *v19; // eax@30
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1208 Texture *v20; // edi@31
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1209 unsigned int v21; // eax@37
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1210 int v22; // edi@38
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1211 int v23; // eax@38
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1212 int v24; // ebx@38
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1213 int v25; // eax@38
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1214 LODFile_IconsBitmaps *v26; // ecx@42
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1215 Texture *v27; // edi@51
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1216 double v28; // st7@51
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1217 char v29; // zf@54
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1218 char *v30; // eax@54
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1219 unsigned int v31; // eax@59
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1220 int v32; // edx@60
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1221 int v33; // eax@65
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1222 int v34; // eax@74
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1223 int v35; // ebx@74
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1224 unsigned int v36; // ecx@74
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1225 int v37; // eax@74
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1226 LODFile_IconsBitmaps *v38; // ecx@78
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1227 Texture *v39; // edi@85
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1228 double v40; // st7@87
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1229 int v41; // edi@88
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1230 Texture *v42; // edi@89
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1231 unsigned int v43; // eax@93
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1232 int v44; // edx@94
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1233 int v45; // eax@98
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1234 int v46; // eax@106
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1235 int v47; // ecx@106
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1236 int v48; // ebx@106
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1237 int v49; // eax@106
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1238 LODFile_IconsBitmaps *v50; // ecx@110
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1239 Texture *v51; // edi@117
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1240 double v52; // st7@119
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1241 int v53; // edi@120
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1242 Texture *v54; // edi@121
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1243 char *v55; // eax@122
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1244 unsigned int v56; // eax@127
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1245 int v57; // edi@128
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1246 int v58; // ecx@128
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1247 int v59; // ebx@129
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1248 int v60; // ecx@132
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1249 int v61; // eax@134
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1250 int v62; // ecx@136
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1251 Texture *v63; // edi@145
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1252 double v64; // st7@147
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1253 int v65; // edi@148
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1254 char *v66; // eax@148
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1255 Texture *v67; // edi@149
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1256 //Player *v68; // ebx@155
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1257 unsigned int v69; // edx@155
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1258 int v70; // edx@156
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1259 unsigned int v71; // eax@160
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1260 int v72; // edi@161
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1261 int v73; // edx@163
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1262 int v74; // ecx@168
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1263 unsigned int v75; // ebx@170
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1264 int v76; // ecx@172
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1265 Texture *v77; // edi@181
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1266 double v78; // st7@183
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1267 int v79; // edi@184
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1268 char *v80; // eax@184
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1269 Texture *v81; // edi@185
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1270 unsigned int v82; // eax@192
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1271 int v83; // eax@193
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1272 int v84; // eax@197
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1273 int v85; // eax@197
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1274 int v86; // ecx@197
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1275 int v87; // eax@197
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1276 int v88; // eax@198
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1277 int v89; // eax@199
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1278 int v90; // edi@201
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1279 int v91; // edi@213
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1280 int v92; // ebx@213
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1281 int v93; // edi@214
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1282 int v94; // ebx@214
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1283 int v95; // eax@214
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1284 char *v96; // edi@226
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1285 double v97; // st7@228
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1286 int v98; // edi@229
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1287 char *v99; // eax@229
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1288 Render *v100; // ecx@229
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1289 Texture *v101; // edi@230
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1290 int v102; // edi@236
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1291 int v103; // eax@237
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1292 int v104; // ecx@237
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1293 int v105; // edx@237
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1294 int v106; // edx@238
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1295 int v107; // edx@239
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1296 int v108; // edx@240
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1297 int v109; // edi@250
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1298 char *v110; // edx@250
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1299 unsigned int v111; // eax@259
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1300 int v112; // eax@260
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1301 int v113; // eax@260
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1302 int v114; // eax@265
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1303 int v115; // eax@274
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1304 int v116; // ebx@274
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1305 unsigned int v117; // edi@274
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1306 double v118; // st7@286
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1307 int v119; // edi@287
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1308 char *v120; // eax@287
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1309 Texture *v121; // edi@288
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1310 unsigned int v122; // edi@295
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1311 int v123; // ebx@297
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1312 int v124; // edi@298
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1313 int v125; // ecx@303
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1314 int v126; // eax@312
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1315 unsigned int v127; // ebx@314
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1316 int v128; // ecx@316
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1317 Texture *v129; // edi@325
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1318 double v130; // st7@327
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1319 int v131; // edi@328
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1320 char *v132; // eax@328
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1321 Texture *v133; // edi@329
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1322 unsigned int v134; // eax@335
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1323 int v135; // eax@336
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1324 int v136; // edx@336
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1325 int v137; // eax@336
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1326 unsigned int v138; // ebx@339
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1327 int v139; // ecx@339
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1328 Texture *v140; // edi@348
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1329 double v141; // st7@350
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1330 int v142; // edi@351
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1331 char *v143; // eax@351
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1332 Texture *v144; // edi@352
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1333 unsigned int v145; // eax@358
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1334 int v146; // eax@359
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1335 int v147; // ecx@359
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1336 int v148; // eax@359
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1337 int v149; // edx@359
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1338 int v150; // ebx@362
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1339 int v151; // ecx@363
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1340 int v152; // ecx@364
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1341 unsigned int v153; // eax@370
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1342 unsigned int v154; // edi@370
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1343 int v155; // eax@370
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1344 LODFile_IconsBitmaps *v156; // ecx@374
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1345 Texture *v157; // ebp@381
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1346 double v158; // st7@383
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1347 Texture *v159; // edi@385
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1348 char *v160; // eax@386
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1349 unsigned int v161; // eax@393
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1350 int v162; // eax@394
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1351 unsigned int v163; // [sp-Ch] [bp-58h]@230
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1352 unsigned int v164; // [sp-Ch] [bp-58h]@233
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1353 signed int v165; // [sp-Ch] [bp-58h]@235
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1354 char *v166; // [sp-8h] [bp-54h]@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1355 const char *v167; // [sp-8h] [bp-54h]@23
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1356 const char *v168; // [sp-8h] [bp-54h]@43
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1357 const char *v169; // [sp-8h] [bp-54h]@79
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1358 const char *v170; // [sp-8h] [bp-54h]@111
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1359 const char *v171; // [sp-8h] [bp-54h]@141
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1360 const char *v172; // [sp-8h] [bp-54h]@177
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1361 const char *v173; // [sp-8h] [bp-54h]@222
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1362 int v174; // [sp-8h] [bp-54h]@228
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1363 unsigned int v175; // [sp-8h] [bp-54h]@230
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1364 unsigned int v176; // [sp-8h] [bp-54h]@233
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1365 signed int v177; // [sp-8h] [bp-54h]@235
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1366 const char *v178; // [sp-8h] [bp-54h]@242
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1367 const char *v179; // [sp-8h] [bp-54h]@280
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1368 const char *v180; // [sp-8h] [bp-54h]@321
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1369 char *v181; // [sp-8h] [bp-54h]@337
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1370 const char *v182; // [sp-8h] [bp-54h]@344
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1371 const char *v183; // [sp-8h] [bp-54h]@375
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1372 signed int v184; // [sp-4h] [bp-50h]@66
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1373 signed int v185; // [sp-4h] [bp-50h]@99
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1374 signed int v186; // [sp-4h] [bp-50h]@202
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1375 int v187; // [sp-4h] [bp-50h]@228
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1376 Texture *v188; // [sp-4h] [bp-50h]@230
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1377 Texture *v189; // [sp-4h] [bp-50h]@233
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1378 Texture *v190; // [sp-4h] [bp-50h]@235
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1379 signed int v191; // [sp-4h] [bp-50h]@266
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1380 signed int v192; // [sp-4h] [bp-50h]@304
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1381 unsigned int a3; // [sp+10h] [bp-3Ch]@7
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1382 int a3a; // [sp+10h] [bp-3Ch]@15
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1383 int a3b; // [sp+10h] [bp-3Ch]@38
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1384 unsigned int a3c; // [sp+10h] [bp-3Ch]@74
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1385 unsigned int a3d; // [sp+10h] [bp-3Ch]@106
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1386 int a3e; // [sp+10h] [bp-3Ch]@129
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1387 int a3f; // [sp+10h] [bp-3Ch]@168
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1388 unsigned int a3g; // [sp+10h] [bp-3Ch]@216
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1389 unsigned int a3h; // [sp+10h] [bp-3Ch]@274
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1390 int a3i; // [sp+10h] [bp-3Ch]@312
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1391 int a3j; // [sp+10h] [bp-3Ch]@336
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1392 int a3k; // [sp+10h] [bp-3Ch]@362
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1393 signed int a2; // [sp+14h] [bp-38h]@7
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1394 unsigned int a2a; // [sp+14h] [bp-38h]@15
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1395 Texture *a2b; // [sp+14h] [bp-38h]@49
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1396 int a2c; // [sp+14h] [bp-38h]@74
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1397 int a2d; // [sp+14h] [bp-38h]@106
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1398 int a2e; // [sp+14h] [bp-38h]@129
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1399 int a2f; // [sp+14h] [bp-38h]@168
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1400 int a2g; // [sp+14h] [bp-38h]@214
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1401 int a2h; // [sp+14h] [bp-38h]@274
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1402 Texture *a2i; // [sp+14h] [bp-38h]@284
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1403 int a2j; // [sp+14h] [bp-38h]@312
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1404 int a2k; // [sp+14h] [bp-38h]@336
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1405 //Player *v217; // [sp+18h] [bp-34h]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1406 int v218; // [sp+1Ch] [bp-30h]@15
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1407 int v219; // [sp+1Ch] [bp-30h]@60
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1408 int v220; // [sp+1Ch] [bp-30h]@94
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1409 int v221; // [sp+1Ch] [bp-30h]@128
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1410 int v222; // [sp+1Ch] [bp-30h]@161
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1411 int v223; // [sp+1Ch] [bp-30h]@213
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1412 char v224; // [sp+1Ch] [bp-30h]@237
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1413 int v225; // [sp+1Ch] [bp-30h]@260
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1414 int v226; // [sp+1Ch] [bp-30h]@298
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1415 int v227; // [sp+1Ch] [bp-30h]@336
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1416 int v228; // [sp+1Ch] [bp-30h]@359
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1417 int v229; // [sp+20h] [bp-2Ch]@15
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1418 int v230; // [sp+20h] [bp-2Ch]@38
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1419 int v231; // [sp+20h] [bp-2Ch]@60
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1420 int v232; // [sp+20h] [bp-2Ch]@94
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1421 int v233; // [sp+20h] [bp-2Ch]@128
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1422 int v234; // [sp+20h] [bp-2Ch]@161
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1423 int v235; // [sp+20h] [bp-2Ch]@197
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1424 int v236; // [sp+20h] [bp-2Ch]@260
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1425 int v237; // [sp+20h] [bp-2Ch]@298
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1426 int v238; // [sp+20h] [bp-2Ch]@336
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1427 int pBodyComplection; // [sp+24h] [bp-28h]@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1428 int v240; // [sp+28h] [bp-24h]@7
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1429 unsigned int v241; // [sp+2Ch] [bp-20h]@38
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1430 int v242; // [sp+2Ch] [bp-20h]@197
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1431 unsigned int v243; // [sp+2Ch] [bp-20h]@370
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1432 int v244; // [sp+34h] [bp-18h]@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1433 signed int v245; // [sp+34h] [bp-18h]@361
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1434 unsigned int uPlayerID_; // [sp+38h] [bp-14h]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1435 int uPlayerID_a; // [sp+38h] [bp-14h]@9
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1436 signed int IsDwarf; // [sp+40h] [bp-Ch]@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1437 int v249; // [sp+40h] [bp-Ch]@358
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1438 //signed int v250; // [sp+44h] [bp-8h]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1439
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1440 pPlayer = pPlayers[uPlayerID];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1441 uPlayerID_ = uPlayerID;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1442 pIcons_LOD->LoadTexture("sptext01", TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1443 pSex = pPlayer->GetSexByVoice();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1444 if ( pPlayer->GetRace() && pPlayer->GetRace() != 1 && pPlayer->GetRace() != 2 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1445 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1446 IsDwarf = 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1447 pBodyComplection = (pSex != 0) + 2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1448 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1449 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1450 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1451 IsDwarf = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1452 pBodyComplection = pSex != 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1453 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1454 v244 = pPlayer->uFace;
727
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 710
diff changeset
1455 pRenderer->ResetTextureClipRect();
da130dd3092a Big time Travel ouverhaul
Nomad
parents: 710
diff changeset
1456 pRenderer->DrawTextureIndexed(0x1D3u, 0, pIcons_LOD->GetTexture(uTextureID_BACKDOLL));//Ïîäëîæêà
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1457 if ( !IsPlayerWearingWatersuit[uPlayerID_] )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1458 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1459 v21 = pPlayer->pEquipment.uBow; //ñíà÷àëà ðèñóåòñÿ ëóê
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1460 if ( !v21 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1461 goto LABEL_59;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1462 v230 = pPlayer->pEquipment.uBow;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1463 v22 = (int)&pPlayer->pInventoryItems[v21-1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1464 v23 = *(int *)v22;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1465 v24 = pPaperdoll_BodyX + paperdoll_Weapon[pBodyComplection][2][0] - pItemsTable->pItems[v23].uEquipX;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1466 a3b = pPaperdoll_BodyY + paperdoll_Weapon[pBodyComplection][2][1] - pItemsTable->pItems[v23].uEquipY;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1467 v241 = pIcons_LOD->LoadTexture(pItemsTable->pItems[v23].pIconName, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1468 v25 = *(int *)(v22 + 20);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1469 if ( !(*(int *)(v22 + 20) & 0xF0) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1470 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1471 if ( v25 & 2 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1472 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1473 v27 = (Texture *)(v241 != -1 ? (int)&pIcons_LOD->pTextures[v241] : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1474 pRenderer->DrawTransparentRedShade(v24, a3b, v27);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1475 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1476 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1477 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1478 v29 = (v25 & 1) == 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1479 v30 = (char *)&pIcons_LOD->pTextures[v241];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1480 if ( v29 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1481 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1482 v27 = (Texture *)(v241 != -1 ? (int)v30 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1483 pRenderer->DrawTransparentGreenShade(v24, a3b, (Texture *)(v241 != -1 ? (int)v30 : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1484 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1485 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1486 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1487 v27 = (Texture *)(v241 != -1 ? (int)v30 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1488 pRenderer->DrawTextureTransparent(v24, a3b, (Texture *)(v241 != -1 ? (int)v30 : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1489 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1490 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1491 LABEL_57:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1492 if ( !bRingsShownInCharScreen )
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 706
diff changeset
1493 pRenderer->DrawMaskToZBuffer(v24, a3b, v27, v230);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1494 LABEL_59:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1495 v31 = pPlayer->pEquipment.uCloak;// ïîòîì ïëàù
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1496 if ( !v31 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1497 goto LABEL_93;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1498 v231 = pPlayer->pEquipment.uCloak;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1499 v32 = (int)&pPlayer->pInventoryItems[v31-1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1500 v219 = v32;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1501 if ( *(int *)v32 != 525 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1502 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1503 switch ( *(int *)v32 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1504 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1505 case 0x212:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1506 v184 = 6;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1507 break;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1508 case 0x223:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1509 v184 = 7;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1510 break;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1511 case 0x224:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1512 v184 = 8;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1513 break;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1514 default:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1515 if ( *(int *)v32 != 550 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1516 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1517 v33 = *(int *)v32 - 105;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1518 LABEL_72:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1519 if ( v33 < 0 || v33 >= 10 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1520 goto LABEL_93;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1521 LABEL_74:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1522 v34 = v33 + 10 * pBodyComplection;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1523 v35 = paperdoll_array_511828[0][v34];//Texture_Cloak
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1524 a2c = pPaperdoll_BodyX + paperdoll_Cloak[0][v34][0];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1525 v36 = pPaperdoll_BodyY + paperdoll_Cloak[0][v34][1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1526 v37 = *(int *)(v32 + 20);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1527 a3c = v36;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1528 if ( !(v37 & 0xF0) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1529 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1530 v41 = v35 + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1531 if ( v37 & 2 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1532 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1533 v42 = (Texture *)(v41 != 0 ? (int)&pIcons_LOD->pTextures[v35] : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1534 pRenderer->DrawTransparentRedShade(a2c, v36, v42);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1535 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1536 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1537 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1538 v42 = (Texture *)(v41 != 0 ? (int)&pIcons_LOD->pTextures[v35] : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1539 pRenderer->DrawTextureTransparent(a2c, v36, v42);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1540 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1541 if ( !bRingsShownInCharScreen )
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 706
diff changeset
1542 pRenderer->DrawMaskToZBuffer(a2c, a3c, v42, v231);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1543 LABEL_93:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1544 v240 = 4 * uPlayerID_ - 4;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1545 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX, pPaperdoll_BodyY,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1546 (Texture *)(*(unsigned int *)((char *)papredoll_dbods + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dbods + v240)] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1547 v43 = pPlayer->pEquipment.uBody;// ïîòîì òåëî
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1548 if ( !v43 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1549 goto LABEL_127;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1550 v232 = pPlayer->pEquipment.uBody;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1551 v44 = (int)&pPlayer->pInventoryItems[v43-1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1552 v220 = v44;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1553 if ( *(int *)v44 != 504 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1554 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1555 if ( *(int *)v44 == 505 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1556 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1557 v185 = 14;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1558 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1559 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1560 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1561 if ( *(int *)v44 == 516 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1562 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1563 v185 = 13;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1564 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1565 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1566 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1567 if ( *(int *)v44 != 533 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1568 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1569 v45 = *(int *)v44 - 66;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1570 LABEL_104:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1571 if ( v45 < 0 || v45 >= 17 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1572 goto LABEL_127;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1573 LABEL_106:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1574 v46 = 17 * pBodyComplection + v45;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1575 a2d = pPaperdoll_BodyX + paperdoll_Armor[0][v46][0];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1576 v47 = pPaperdoll_BodyY + paperdoll_Armor[0][v46][1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1577 v48 = paperdoll_array_511290[0][v46][0];//Texture_Armor
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1578 v49 = *(int *)(v44 + 20);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1579 a3d = v47;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1580 if ( !(v49 & 0xF0) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1581 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1582 v53 = v48 + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1583 if ( v49 & 2 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1584 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1585 v54 = (Texture *)(v53 != 0 ? (int)&pIcons_LOD->pTextures[v48] : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1586 pRenderer->DrawTransparentRedShade(a2d, v47, v54);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1587 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1588 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1589 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1590 v29 = (v49 & 1) == 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1591 v55 = (char *)&pIcons_LOD->pTextures[v48];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1592 if ( v29 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1593 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1594 v54 = (Texture *)(v53 != 0 ? (int)v55 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1595 pRenderer->DrawTransparentGreenShade(a2d, v47, v54);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1596 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1597 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1598 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1599 v54 = (Texture *)(v53 != 0 ? (int)v55 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1600 pRenderer->DrawTextureTransparent(a2d, v47, v54);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1601 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1602 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1603 if ( !bRingsShownInCharScreen )
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 706
diff changeset
1604 pRenderer->DrawMaskToZBuffer(a2d, a3d, v54, v232);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1605 LABEL_127:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1606 v56 = pPlayer->pEquipment.field_20;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1607 if ( !v56 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1608 goto LABEL_155;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1609 v233 = pPlayer->pEquipment.field_20;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1610 v57 = (int)&pPlayer->pInventoryItems[v56-1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1611 v221 = v57;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1612 v58 = *(int *)v57;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1613 if ( *(int *)v57 == 529 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1614 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1615 a3e = pPaperdoll_BodyY + paperdoll_Boot[pBodyComplection][5][1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1616 a2e = pPaperdoll_BodyX + paperdoll_Boot[pBodyComplection][5][0];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1617 v59 = papredoll_flying_feet[v244];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1618 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1619 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1620 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1621 if ( v58 == 512 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1622 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1623 a3e = pPaperdoll_BodyY + paperdoll_Boot[pBodyComplection][6][1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1624 a2e = pPaperdoll_BodyX + paperdoll_Boot[pBodyComplection][6][0];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1625 v59 = dword_511638[pBodyComplection][5];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1626 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1627 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1628 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1629 v60 = v58 - 115;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1630 if ( v60 < 0 || v60 >= 5 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1631 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1632 a2e = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1633 a3e = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1634 v59 = dword_511638[pBodyComplection][0];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1635 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1636 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1637 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1638 v61 = v60 + 7 * pBodyComplection;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1639 a3e = pPaperdoll_BodyY + paperdoll_Boot[0][v61][1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1640 a2e = pPaperdoll_BodyX + paperdoll_Boot[0][v61][0];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1641 v59 = dword_511638[0][v60 + 6 * pBodyComplection];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1642 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1643 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1644 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1645 v62 = *(int *)(v57 + 20);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1646 if ( !(*(int *)(v57 + 20) & 0xF0) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1647 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1648 v65 = v59 + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1649 v66 = (char *)&pIcons_LOD->pTextures[v59];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1650 if ( v62 & 2 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1651 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1652 v67 = (Texture *)(v65 != 0 ? (int)v66 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1653 pRenderer->DrawTransparentRedShade(a2e, a3e, v67);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1654 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1655 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1656 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1657 if ( v62 & 1 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1658 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1659 v67 = (Texture *)(v65 != 0 ? (int)v66 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1660 pRenderer->DrawTextureTransparent(a2e, a3e, v67);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1661 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1662 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1663 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1664 v67 = (Texture *)(v65 != 0 ? (int)v66 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1665 pRenderer->DrawTransparentGreenShade(a2e, a3e, v67);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1666 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1667 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1668 if ( !bRingsShownInCharScreen )
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 706
diff changeset
1669 pRenderer->DrawMaskToZBuffer(a2e, a3e, v67, v233);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1670 LABEL_155:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1671 v69 = pPlayer->pEquipment.uMainHand;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1672 uPlayerID_a = 2 * pBodyComplection;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1673 if ( !v69 || (v70 = *(int *)&pPlayer->pInventoryItems[v69-1], pItemsTable->pItems[v70].uEquipType != 1)
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1674 && (pItemsTable->pItems[v70].uSkillType != 4 || pPlayer->pEquipment.uOffHand) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1675 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_LeftHand[pBodyComplection][0],
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1676 pPaperdoll_BodyY + pPaperdoll_LeftHand[pBodyComplection][1],
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1677 (Texture *)(*(unsigned int *)((char *)papredoll_dlads + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlads + v240)] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1678 v71 = pPlayer->pEquipment.uBelt;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1679 if ( v71 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1680 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1681 v234 = pPlayer->pEquipment.uBelt;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1682 v72 = (int)&pPlayer->pInventoryItems[v71-1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1683 v222 = v72;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1684 if ( *(int *)v72 == 524 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1685 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1686 v73 = 5;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1687 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1688 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1689 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1690 if ( *(int *)v72 == 535 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1691 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1692 v73 = 6;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1693 goto LABEL_168;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1694 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1695 v73 = *(int *)v72 - 100;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1696 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1697 if ( v73 >= 0 && v73 < 7 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1698 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1699 LABEL_168:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1700 v74 = 7 * pBodyComplection + v73;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1701 a2f = pPaperdoll_BodyX + paperdoll_Belt[0][v74][0];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1702 a3f = pPaperdoll_BodyY + paperdoll_Belt[0][v74][1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1703 if ( IsDwarf != 1 || v73 == 5 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1704 v75 = stru_511718[pBodyComplection].texids[v73];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1705 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1706 v75 = stru_511718[pBodyComplection - 2].texids[v73];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1707 v76 = *(int *)&pPlayer->field_1F5[36 * v71 + 15];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1708 if ( !(*(int *)&pPlayer->field_1F5[36 * v71 + 15] & 0xF0) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1709 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1710 v79 = v75 + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1711 v80 = (char *)&pIcons_LOD->pTextures[v75];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1712 if ( v76 & 2 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1713 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1714 v81 = (Texture *)(v79 != 0 ? (int)v80 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1715 pRenderer->DrawTransparentRedShade(a2f, a3f, v81);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1716 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1717 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1718 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1719 if ( v76 & 1 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1720 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1721 v81 = (Texture *)(v79 != 0 ? (int)v80 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1722 pRenderer->DrawTextureTransparent(a2f, a3f, v81);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1723 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1724 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1725 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1726 v81 = (Texture *)(v79 != 0 ? (int)v80 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1727 pRenderer->DrawTransparentGreenShade(a2f, a3f, v81);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1728 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1729 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1730 if ( !bRingsShownInCharScreen )
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 706
diff changeset
1731 pRenderer->DrawMaskToZBuffer(a2f, a3f, v81, v234);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1732 goto LABEL_192;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1733 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1734 if ( (*(int *)&pPlayer->field_1F5[36 * v71 + 15] & 0xF0) != 16 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1735 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1736 if ( (*(int *)&pPlayer->field_1F5[36 * v71 + 15] & 0xF0) == 32 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1737 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1738 v172 = "sp28a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1739 v77 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v172, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1740 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1741 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1742 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1743 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1744 *(char *)(v222 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1745 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1746 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1747 v78 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1748 pRenderer->_4A63E6(a2f, a3f, (Texture *)(v75 != -1 ? (int)&pIcons_LOD->pTextures[v75] : 0), v77, (signed __int64)v78, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1749 goto LABEL_192;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1750 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1751 if ( (*(int *)&pPlayer->field_1F5[36 * v71 + 15] & 0xF0) == 64 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1752 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1753 v172 = "sp30a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1754 v77 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v172, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1755 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1756 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1757 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1758 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1759 *(char *)(v222 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1760 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1761 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1762 v78 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1763 pRenderer->_4A63E6(a2f, a3f, (Texture *)(v75 != -1 ? (int)&pIcons_LOD->pTextures[v75] : 0), v77, (signed __int64)v78, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1764 goto LABEL_192;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1765 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1766 if ( (*(int *)&pPlayer->field_1F5[36 * v71 + 15] & 0xF0) == 128 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1767 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1768 v172 = "sp91a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1769 v77 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v172, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1770 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1771 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1772 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1773 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1774 *(char *)(v222 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1775 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1776 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1777 v78 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1778 pRenderer->_4A63E6(a2f, a3f, (Texture *)(v75 != -1 ? (int)&pIcons_LOD->pTextures[v75] : 0), v77, (signed __int64)v78, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1779 goto LABEL_192;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1780 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1781 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1782 v172 = "sptext01";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1783 v77 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v172, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1784 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1785 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1786 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1787 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1788 *(char *)(v222 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1789 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1790 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1791 v78 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1792 pRenderer->_4A63E6(a2f, a3f, (Texture *)(v75 != -1 ? (int)&pIcons_LOD->pTextures[v75] : 0), v77, (signed __int64)v78, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1793 goto LABEL_192;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1794 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1795 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1796 LABEL_192:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1797 v82 = pPlayer->pEquipment.uMainHand;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1798 if ( v82 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1799 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1800 v83 = *(int *)&pPlayer->pInventoryItems[v82-1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1801 if ( pItemsTable->pItems[v83].uEquipType == 1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1802 || pItemsTable->pItems[v83].uSkillType == 4 && !pPlayer->pEquipment.uOffHand )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1803 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_SecondLeftHand[0][uPlayerID_a],
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1804 pPaperdoll_BodyY + pPaperdoll_SecondLeftHand[0][uPlayerID_a + 1],
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1805 (Texture *)(*(unsigned int *)((char *)papredoll_dlaus + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlaus + v240)] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1806 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1807 v84 = pPlayer->pEquipment.uBody;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1808 v235 = v84;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1809 v85 = (int)((char *)pPlayer + 36 * v84);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1810 v242 = v85;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1811 v86 = *(int *)(v85 + 496);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1812 v87 = *(int *)(v85 + 496) - 504;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1813 if ( v87 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1814 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1815 v88 = v87 - 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1816 if ( v88 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1817 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1818 v89 = v88 - 11;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1819 if ( v89 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1820 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1821 if ( v89 != 17 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1822 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1823 v90 = v86 - 66;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1824 LABEL_207:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1825 if ( v90 < 0 || v90 > 17 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1826 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1827 LABEL_259:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1828 v111 = pPlayer->pEquipment.uCloak;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1829 if ( !v111 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1830 goto LABEL_293;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1831 v236 = pPlayer->pEquipment.uCloak;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1832 v112 = (int)&pPlayer->pInventoryItems[v111-1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1833 v225 = v112;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1834 v113 = *(int *)v112;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1835 if ( v113 != 525 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1836 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1837 switch ( v113 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1838 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1839 case 530:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1840 v191 = 6;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1841 break;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1842 case 547:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1843 v191 = 7;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1844 break;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1845 case 548:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1846 v191 = 8;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1847 break;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1848 default:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1849 if ( v113 != 550 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1850 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1851 v114 = v113 - 105;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1852 LABEL_272:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1853 if ( v114 < 0 || v114 >= 10 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1854 goto LABEL_293;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1855 LABEL_274:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1856 v115 = v114 + 10 * pBodyComplection;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1857 v116 = dword_511788[v115];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1858 v115 *= 8;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1859 v117 = pPaperdoll_BodyX + *(int *)((char *)&dword_4E56B0 + v115);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1860 a2h = pPaperdoll_BodyX + *(int *)((char *)&dword_4E56B0 + v115);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1861 a3h = pPaperdoll_BodyY + *(int *)((char *)&dword_4E56B4 + v115);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1862 if ( v116 == pIcons_LOD->FindTextureByName("pending") )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1863 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1864 LABEL_292:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1865 LABEL_293:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1866 if ( v244 == 12 || v244 == 13 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1867 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1868 v122 = papredoll_dbrds[v244];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1869 if ( v122 != pIcons_LOD->FindTextureByName("Pending") )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1870 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_Beards[2 * v244 - 24],
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1871 pPaperdoll_BodyY + pPaperdoll_Beards[2 * v244 - 23],
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1872 (Texture *)(v122 != -1 ? (int)&pIcons_LOD->pTextures[v122] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1873 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1874 v123 = pPlayer->pEquipment.uHelm;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1875 if ( !v123 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1876 goto LABEL_335;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1877 v237 = v123;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1878 v124 = (int)&pPlayer->pInventoryItems[v123-1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1879 v226 = v124;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1880 if ( *(int *)v124 != 521 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1881 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1882 switch ( *(int *)v124 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1883 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1884 case 0x20A:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1885 v192 = 12;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1886 break;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1887 case 0x20B:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1888 v192 = 13;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1889 break;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1890 case 0x214:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1891 v192 = 14;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1892 break;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1893 default:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1894 if ( *(int *)v124 != 544 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1895 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1896 v125 = *(int *)v124 - 89;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1897 if ( v125 < 0 || v125 >= 16 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1898 goto LABEL_335;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1899 goto LABEL_312;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1900 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1901 v192 = 15;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1902 break;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1903 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1904 v125 = v192;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1905 LABEL_312:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1906 v126 = 2 * (v125 + 16 * pBodyComplection);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1907 a2j = pPaperdoll_BodyX + dword_4E58D0[v126];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1908 a3i = pPaperdoll_BodyY + dword_4E58D4[v126];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1909 if ( IsDwarf != 1 || *(int *)v124 != 92 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1910 v127 = stru_511698[0].texids[v125 + 16 * pSex];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1911 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1912 v127 = papredoll_dbrds[11];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1913 v128 = *(int *)(v124 + 20);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1914 if ( *(int *)(v124 + 20) & 0xF0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1915 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1916 if ( (*(int *)(v124 + 20) & 0xF0) != 16 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1917 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1918 if ( (*(int *)(v124 + 20) & 0xF0) == 32 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1919 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1920 v180 = "sp28a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1921 v129 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v180, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1922 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1923 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1924 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1925 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1926 *(char *)(v226 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1927 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1928 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1929 v130 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1930 pRenderer->_4A63E6(a2j, a3i, (Texture *)(v127 != -1 ? (int)&pIcons_LOD->pTextures[v127] : 0),
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1931 v129, (signed __int64)v130, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1932 goto LABEL_335;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1933 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1934 if ( (*(int *)(v124 + 20) & 0xF0) == 64 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1935 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1936 v180 = "sp30a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1937 v129 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v180, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1938 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1939 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1940 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1941 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1942 *(char *)(v226 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1943 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1944 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1945 v130 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1946 pRenderer->_4A63E6(a2j, a3i, (Texture *)(v127 != -1 ? (int)&pIcons_LOD->pTextures[v127] : 0),
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1947 v129, (signed __int64)v130, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1948 goto LABEL_335;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1949 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1950 if ( (*(int *)(v124 + 20) & 0xF0) == 128 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1951 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1952 v180 = "sp91a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1953 v129 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v180, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1954 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1955 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1956 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1957 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1958 *(char *)(v226 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1959 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1960 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1961 v130 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1962 pRenderer->_4A63E6(a2j, a3i, (Texture *)(v127 != -1 ? (int)&pIcons_LOD->pTextures[v127] : 0),
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1963 v129, (signed __int64)v130, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1964 goto LABEL_335;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1965 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1966 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1967 v180 = "sptext01";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1968 v129 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v180, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1969 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1970 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1971 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1972 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1973 *(char *)(v226 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1974 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1975 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1976 v130 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1977 pRenderer->_4A63E6(a2j, a3i, (Texture *)(v127 != -1 ? (int)&pIcons_LOD->pTextures[v127] : 0),
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1978 v129, (signed __int64)v130, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1979 goto LABEL_335;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1980 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1981 v131 = v127 + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1982 v132 = (char *)&pIcons_LOD->pTextures[v127];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1983 if ( v128 & 2 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1984 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1985 v133 = (Texture *)(v131 != 0 ? (int)v132 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1986 pRenderer->DrawTransparentRedShade(a2j, a3i, v133);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1987 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1988 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1989 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1990 if ( v128 & 1 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1991 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1992 v133 = (Texture *)(v131 != 0 ? (int)v132 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1993 pRenderer->DrawTextureTransparent(a2j, a3i, v133);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1994 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1995 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1996 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1997 v133 = (Texture *)(v131 != 0 ? (int)v132 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1998 pRenderer->DrawTransparentGreenShade(a2j, a3i, v133);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1999 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2000 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2001 if ( !bRingsShownInCharScreen )
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 706
diff changeset
2002 pRenderer->DrawMaskToZBuffer(a2j, a3i, v133, v237);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2003 LABEL_335:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2004 v134 = pPlayer->pEquipment.uMainHand;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2005 if ( !v134 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2006 goto LABEL_358;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2007 v238 = pPlayer->pEquipment.uMainHand;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2008 v135 = (int)&pPlayer->pInventoryItems[v134-1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2009 v227 = v135;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2010 v136 = *(int *)v135;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2011 v137 = *(int *)v135;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2012 a2k = pPaperdoll_BodyX + paperdoll_Weapon[pBodyComplection][1][0] - pItemsTable->pItems[v137].uEquipX;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2013 a3j = pPaperdoll_BodyY + paperdoll_Weapon[pBodyComplection][1][1] - pItemsTable->pItems[v137].uEquipY;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2014 if ( v136 == 64 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2015 v181 = "item64v1";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2016 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2017 v181 = pItemsTable->pItems[v137].pIconName;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2018 v138 = pIcons_LOD->LoadTexture(v181, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2019 v139 = *(int *)(v227 + 20);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2020 if ( !(*(int *)(v227 + 20) & 0xF0) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2021 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2022 v142 = v138 + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2023 v143 = (char *)&pIcons_LOD->pTextures[v138];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2024 if ( v139 & 2 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2025 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2026 v144 = (Texture *)(v142 != 0 ? (int)v143 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2027 pRenderer->DrawTransparentRedShade(a2k, a3j, v144);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2028 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2029 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2030 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2031 if ( v139 & 1 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2032 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2033 v144 = (Texture *)(v142 != 0 ? (int)v143 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2034 pRenderer->DrawTextureTransparent(a2k, a3j, v144);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2035 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2036 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2037 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2038 v144 = (Texture *)(v142 != 0 ? (int)v143 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2039 pRenderer->DrawTransparentGreenShade(a2k, a3j, v144);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2040 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2041 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2042 if ( !bRingsShownInCharScreen )
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 706
diff changeset
2043 pRenderer->DrawMaskToZBuffer(a2k, a3j, v144, v238);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2044 LABEL_358:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2045 v145 = pPlayer->pEquipment.uOffHand;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2046 v249 = pPlayer->pEquipment.uOffHand;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2047 if ( !v145 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2048 goto LABEL_393;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2049 v146 = (int)&pPlayer->pInventoryItems[v145-1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2050 v228 = v146;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2051 v147 = *(int *)v146;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2052 v148 = *(int *)v146;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2053 v149 = pItemsTable->pItems[v148].uSkillType;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2054 if ( v149 != 2 && v149 != 1 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2055 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2056 v245 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2057 v150 = pPaperdoll_BodyX + paperdoll_Weapon[pBodyComplection][0][0] - pItemsTable->pItems[v148].uEquipX;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2058 a3k = pPaperdoll_BodyY + paperdoll_Weapon[pBodyComplection][0][1] - pItemsTable->pItems[v148].uEquipY;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2059 goto LABEL_370;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2060 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2061 v151 = v147 - 400;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2062 v245 = 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2063 if ( v151 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2064 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2065 v152 = v151 - 3;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2066 if ( v152 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2067 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2068 if ( v152 != 12 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2069 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2070 v150 = pPaperdoll_BodyX + paperdoll_Weapon[pBodyComplection][0][0] - pItemsTable->pItems[v148].uEquipX;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2071 a3k = pPaperdoll_BodyY + paperdoll_Weapon[pBodyComplection][0][1] - pItemsTable->pItems[v148].uEquipY;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2072 goto LABEL_370;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2073 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2074 v150 = 595;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2075 a3k = 33;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2076 LABEL_370:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2077 v153 = pIcons_LOD->LoadTexture(pItemsTable->pItems[v148].pIconName, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2078 v154 = v153;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2079 v243 = v153;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2080 v155 = *(int *)(v228 + 20);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2081 if ( !(*(int *)(v228 + 20) & 0xF0) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2082 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2083 if ( v155 & 2 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2084 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2085 v159 = (Texture *)(v243 != -1 ? (int)&pIcons_LOD->pTextures[v243] : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2086 pRenderer->DrawTransparentRedShade(v150, a3k, v159);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2087 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2088 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2089 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2090 v29 = (v155 & 1) == 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2091 v160 = (char *)&pIcons_LOD->pTextures[v243];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2092 if ( v29 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2093 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2094 v159 = (Texture *)(v243 != -1 ? (int)v160 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2095 pRenderer->DrawTransparentGreenShade(v150, a3k, (Texture *)(v243 != -1 ? (int)v160 : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2096 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2097 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2098 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2099 v159 = (Texture *)(v243 != -1 ? (int)v160 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2100 pRenderer->DrawTextureTransparent(v150, a3k, (Texture *)(v243 != -1 ? (int)v160 : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2101 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2102 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2103 if ( !bRingsShownInCharScreen )
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 706
diff changeset
2104 pRenderer->DrawMaskToZBuffer(v150, a3k, v159, v249);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2105 if ( v245 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2106 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdollLeftEmptyHand[uPlayerID_a],
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2107 pPaperdoll_BodyY + pPaperdollLeftEmptyHand[uPlayerID_a + 1],
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2108 (Texture *)(*(unsigned int *)((char *)papredoll_dlhs
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2109 + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlhs + v240)] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2110 goto LABEL_393;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2111 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2112 if ( (*(int *)(v228 + 20) & 0xF0) != 16 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2113 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2114 if ( (*(int *)(v228 + 20) & 0xF0) == 32 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2115 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2116 v183 = "sp28a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2117 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2118 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2119 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2120 if ( (*(int *)(v228 + 20) & 0xF0) != 64 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2121 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2122 v156 = pIcons_LOD;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2123 if ( (*(int *)(v228 + 20) & 0xF0) == 128 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2124 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2125 v183 = "sp91a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2126 v157 = &pIcons_LOD->pTextures[v156->LoadTexture(v183, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2127 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2128 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2129 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2130 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2131 *(char *)(v228 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2132 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2133 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2134 v158 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2135 pRenderer->_4A63E6(v150, a3k, (Texture *)(v154 != -1 ? (int)&pIcons_LOD->pTextures[v154] : 0),
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2136 v157, (signed __int64)v158, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2137 if ( v245 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2138 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdollLeftEmptyHand[uPlayerID_a],
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2139 pPaperdoll_BodyY + pPaperdollLeftEmptyHand[uPlayerID_a + 1],
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2140 (Texture *)(*(unsigned int *)((char *)papredoll_dlhs
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2141 + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlhs + v240)] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2142 goto LABEL_393;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2143 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2144 v183 = "sptext01";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2145 v157 = &pIcons_LOD->pTextures[v156->LoadTexture(v183, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2146 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2147 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2148 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2149 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2150 *(char *)(v228 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2151 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2152 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2153 v158 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2154 pRenderer->_4A63E6(v150, a3k, (Texture *)(v154 != -1 ? (int)&pIcons_LOD->pTextures[v154] : 0),
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2155 v157, (signed __int64)v158, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2156 if ( v245 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2157 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdollLeftEmptyHand[uPlayerID_a],
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2158 pPaperdoll_BodyY + pPaperdollLeftEmptyHand[uPlayerID_a + 1],
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2159 (Texture *)(*(unsigned int *)((char *)papredoll_dlhs
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2160 + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlhs + v240)] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2161 goto LABEL_393;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2162 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2163 v183 = "sp30a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2164 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2165 v156 = pIcons_LOD;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2166 v157 = &pIcons_LOD->pTextures[v156->LoadTexture(v183, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2167 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2168 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2169 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2170 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2171 *(char *)(v228 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2172 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2173 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2174 v158 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2175 pRenderer->_4A63E6(v150, a3k, (Texture *)(v154 != -1 ? (int)&pIcons_LOD->pTextures[v154] : 0),
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2176 v157, (signed __int64)v158, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2177 if ( v245 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2178 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdollLeftEmptyHand[uPlayerID_a],
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2179 pPaperdoll_BodyY + pPaperdollLeftEmptyHand[uPlayerID_a + 1],
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2180 (Texture *)(*(unsigned int *)((char *)papredoll_dlhs
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2181 + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlhs + v240)] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2182 goto LABEL_393;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2183 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2184 v156 = pIcons_LOD;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2185 v183 = "sptext01";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2186 v157 = &pIcons_LOD->pTextures[v156->LoadTexture(v183, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2187 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2188 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2189 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2190 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2191 *(char *)(v228 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2192 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2193 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2194 v158 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2195 pRenderer->_4A63E6(v150, a3k, (Texture *)(v154 != -1 ? (int)&pIcons_LOD->pTextures[v154] : 0),
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2196 v157, (signed __int64)v158, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2197 if ( v245 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2198 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdollLeftEmptyHand[uPlayerID_a],
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2199 pPaperdoll_BodyY + pPaperdollLeftEmptyHand[uPlayerID_a + 1],
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2200 (Texture *)(*(unsigned int *)((char *)papredoll_dlhs
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2201 + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlhs + v240)] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2202 goto LABEL_393;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2203 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2204 a3k = 28;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2205 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2206 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2207 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2208 a3k = 86;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2209 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2210 v150 = 596;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2211 goto LABEL_370;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2212 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2213 if ( (*(int *)(v227 + 20) & 0xF0) != 16 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2214 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2215 if ( (*(int *)(v227 + 20) & 0xF0) == 32 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2216 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2217 v182 = "sp28a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2218 v140 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v182, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2219 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2220 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2221 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2222 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2223 *(char *)(v227 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2224 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2225 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2226 v141 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2227 pRenderer->_4A63E6(a2k, a3j, (Texture *)(v138 != -1 ? (int)&pIcons_LOD->pTextures[v138] : 0),
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2228 v140, (signed __int64)v141, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2229 goto LABEL_358;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2230 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2231 if ( (*(int *)(v227 + 20) & 0xF0) == 64 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2232 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2233 v182 = "sp30a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2234 v140 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v182, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2235 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2236 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2237 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2238 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2239 *(char *)(v227 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2240 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2241 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2242 v141 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2243 pRenderer->_4A63E6(a2k, a3j, (Texture *)(v138 != -1 ? (int)&pIcons_LOD->pTextures[v138] : 0),
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2244 v140, (signed __int64)v141, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2245 goto LABEL_358;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2246 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2247 if ( (*(int *)(v227 + 20) & 0xF0) == 128 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2248 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2249 v182 = "sp91a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2250 v140 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v182, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2251 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2252 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2253 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2254 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2255 *(char *)(v227 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2256 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2257 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2258 v141 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2259 pRenderer->_4A63E6(a2k, a3j, (Texture *)(v138 != -1 ? (int)&pIcons_LOD->pTextures[v138] : 0),
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2260 v140, (signed __int64)v141, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2261 goto LABEL_358;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2262 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2263 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2264 v182 = "sptext01";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2265 v140 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v182, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2266 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2267 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2268 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2269 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2270 *(char *)(v227 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2271 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2272 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2273 v141 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2274 pRenderer->_4A63E6(a2k, a3j, (Texture *)(v138 != -1 ? (int)&pIcons_LOD->pTextures[v138] : 0),
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2275 v140, (signed __int64)v141, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2276 goto LABEL_358;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2277 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2278 v125 = 11;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2279 if ( v125 < 0 || v125 >= 16 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2280 goto LABEL_335;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2281 goto LABEL_312;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2282 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2283 if ( !(*(int *)(v225 + 20) & 0xF0) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2284 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2285 v119 = v116 + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2286 v120 = (char *)&pIcons_LOD->pTextures[v116];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2287 if ( *(int *)(v225 + 20) & 2 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2288 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2289 v121 = (Texture *)(v119 != 0 ? (int)v120 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2290 pRenderer->DrawTransparentRedShade(a2h, a3h, v121);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2291 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2292 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2293 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2294 v121 = (Texture *)(v119 != 0 ? (int)v120 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2295 pRenderer->DrawTextureTransparent(a2h, a3h, v121);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2296 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2297 if ( !bRingsShownInCharScreen )
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 706
diff changeset
2298 pRenderer->DrawMaskToZBuffer(a2h, a3h, v121, v236);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2299 goto LABEL_292;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2300 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2301 if ( (*(int *)(v225 + 20) & 0xF0) != 16 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2302 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2303 if ( (*(int *)(v225 + 20) & 0xF0) == 32 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2304 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2305 v179 = "sp28a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2306 a2i = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v179, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2307 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2308 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2309 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2310 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2311 *(char *)(v225 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2312 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2313 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2314 v118 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2315 pRenderer->_4A63E6(v117, a3h, (Texture *)(v116 != -1 ? (int)&pIcons_LOD->pTextures[v116] : 0),
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2316 a2i, (signed __int64)v118, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2317 goto LABEL_292;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2318 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2319 if ( (*(int *)(v225 + 20) & 0xF0) == 64 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2320 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2321 v179 = "sp30a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2322 a2i = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v179, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2323 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2324 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2325 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2326 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2327 *(char *)(v225 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2328 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2329 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2330 v118 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2331 pRenderer->_4A63E6(v117, a3h, (Texture *)(v116 != -1 ? (int)&pIcons_LOD->pTextures[v116] : 0),
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2332 a2i, (signed __int64)v118, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2333 goto LABEL_292;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2334 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2335 if ( (*(int *)(v225 + 20) & 0xF0) == 128 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2336 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2337 v179 = "sp91a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2338 a2i = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v179, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2339 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2340 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2341 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2342 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2343 *(char *)(v225 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2344 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2345 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2346 v118 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2347 pRenderer->_4A63E6(v117, a3h, (Texture *)(v116 != -1 ? (int)&pIcons_LOD->pTextures[v116] : 0),
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2348 a2i, (signed __int64)v118, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2349 goto LABEL_292;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2350 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2351 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2352 v179 = "sptext01";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2353 a2i = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v179, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2354 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2355 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2356 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2357 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2358 *(char *)(v225 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2359 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2360 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2361 v118 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2362 pRenderer->_4A63E6(v117, a3h, (Texture *)(v116 != -1 ? (int)&pIcons_LOD->pTextures[v116] : 0),
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2363 a2i, (signed __int64)v118, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2364 goto LABEL_292;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2365 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2366 v191 = 9;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2367 break;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2368 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2369 v114 = v191;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2370 goto LABEL_274;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2371 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2372 v114 = 5;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2373 goto LABEL_272;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2374 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2375 LABEL_209:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2376 if ( pPlayer->pEquipment.uMainHand
816
cfc65feef029 * Player Recovery Times
Nomad
parents: 809
diff changeset
2377 && (pPlayer->GetEquippedItemEquipType(EQUIP_MAIN_HAND) == EQUIP_MAIN_HAND ||
cfc65feef029 * Player Recovery Times
Nomad
parents: 809
diff changeset
2378 pPlayer->GetEquippedItemSkillType(EQUIP_MAIN_HAND) == EQUIP_SHIELD &&
cfc65feef029 * Player Recovery Times
Nomad
parents: 809
diff changeset
2379 !pPlayer->pEquipment.uOffHand) )
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2380 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2381 v91 = 17 * pBodyComplection + v90;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2382 v92 = v91;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2383 v223 = paperdoll_array_511290[0][v91][2];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2384 if ( v223 == pIcons_LOD->FindTextureByName("pending") )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2385 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2386 v93 = 2 * v91;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2387 v94 = paperdoll_array_511290[0][v92][1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2388 a2g = pPaperdoll_BodyX + paperdoll_shoulder[0][0][v93];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2389 v95 = paperdoll_shoulder[0][0][v93 + 1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2390 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2391 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2392 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2393 v94 = v223;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2394 a2g = pPaperdoll_BodyX + dword_4E5270[2 * v91];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2395 v95 = dword_4E5270[2 * v91 + 1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2396 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2397 a3g = pPaperdoll_BodyY + v95;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2398 if ( v94 == pIcons_LOD->FindTextureByName("pending") )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2399 goto LABEL_259;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2400 if ( *(int *)(v242 + 516) & 0xF0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2401 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2402 if ( (*(int *)(v242 + 516) & 0xF0) != 16 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2403 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2404 if ( (*(int *)(v242 + 516) & 0xF0) == 32 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2405 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2406 v173 = "sp28a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2407 v96 = (char *)&pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v173, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2408 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2409 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2410 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2411 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2412 *(char *)(v242 + 516) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2413 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2414 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2415 v187 = 255;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2416 v174 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2417 v97 = (double)GetTickCount();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2418 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0),
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2419 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2420 goto LABEL_259;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2421 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2422 if ( (*(int *)(v242 + 516) & 0xF0) == 64 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2423 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2424 v173 = "sp30a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2425 v96 = (char *)&pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v173, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2426 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2427 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2428 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2429 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2430 *(char *)(v242 + 516) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2431 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2432 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2433 v187 = 255;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2434 v174 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2435 v97 = (double)GetTickCount();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2436 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0),
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2437 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2438 goto LABEL_259;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2439 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2440 if ( (*(int *)(v242 + 516) & 0xF0) == 128 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2441 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2442 v173 = "sp91a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2443 v96 = (char *)&pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v173, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2444 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2445 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2446 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2447 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2448 *(char *)(v242 + 516) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2449 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2450 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2451 v187 = 255;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2452 v174 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2453 v97 = (double)GetTickCount();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2454 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0),
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2455 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2456 goto LABEL_259;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2457 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2458 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2459 v173 = "sptext01";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2460 v96 = (char *)&pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v173, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2461 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2462 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2463 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2464 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2465 *(char *)(v242 + 516) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2466 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2467 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2468 v187 = 255;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2469 v174 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2470 v97 = (double)GetTickCount();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2471 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0),
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2472 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2473 goto LABEL_259;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2474 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2475 v98 = v94 + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2476 v99 = (char *)&pIcons_LOD->pTextures[v94];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2477 v100 = pRenderer;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2478 if ( *(int *)(v242 + 516) & 2 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2479 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2480 v101 = (Texture *)(v98 != 0 ? (int)v99 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2481 v188 = v101;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2482 v175 = a3g;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2483 v163 = a2g;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2484 v100->DrawTransparentRedShade(v163, v175, v188);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2485 if ( !bRingsShownInCharScreen )
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 706
diff changeset
2486 pRenderer->DrawMaskToZBuffer(a2g, a3g, v101, v235);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2487 goto LABEL_259;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2488 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2489 if ( *(char *)(v242 + 516) & 1 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2490 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2491 v101 = (Texture *)(v98 != 0 ? (int)v99 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2492 v189 = v101;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2493 v176 = a3g;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2494 v164 = a2g;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2495 pRenderer->DrawTextureTransparent(v164, v176, v189);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2496 if ( !bRingsShownInCharScreen )
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 706
diff changeset
2497 pRenderer->DrawMaskToZBuffer(a2g, a3g, v101, v235);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2498 goto LABEL_259;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2499 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2500 v101 = (Texture *)(v98 != 0 ? (int)v99 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2501 v190 = v101;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2502 v177 = a3g;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2503 v165 = a2g;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2504 pRenderer->DrawTransparentGreenShade(v165, v177, v190);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2505 if ( !bRingsShownInCharScreen )
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 706
diff changeset
2506 pRenderer->DrawMaskToZBuffer(a2g, a3g, v101, v235);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2507 goto LABEL_259;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2508 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2509 v102 = 17 * pBodyComplection + v90;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2510 v94 = paperdoll_array_511290[0][v102][1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2511 if ( v94 == pIcons_LOD->FindTextureByName("pending") )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2512 goto LABEL_259;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2513 v103 = pPaperdoll_BodyX + paperdoll_shoulder[0][v102][0];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2514 v104 = pPaperdoll_BodyY + paperdoll_shoulder[0][v102][1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2515 v224 = *(int *)(v242 + 516);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2516 v105 = *(int *)(v242 + 516) & 0xF0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2517 a2g = pPaperdoll_BodyX + paperdoll_shoulder[0][v102][0];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2518 a3g = pPaperdoll_BodyY + paperdoll_shoulder[0][v102][1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2519 if ( !v105 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2520 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2521 v109 = v94 + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2522 v110 = (char *)&pIcons_LOD->pTextures[v94];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2523 if ( v224 & 2 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2524 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2525 v101 = (Texture *)(v109 != 0 ? (int)v110 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2526 v188 = v101;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2527 v175 = v104;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2528 v163 = v103;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2529 v100 = pRenderer;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2530 v100->DrawTransparentRedShade(v163, v175, v188);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2531 if ( !bRingsShownInCharScreen )
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 706
diff changeset
2532 pRenderer->DrawMaskToZBuffer(a2g, a3g, v101, v235);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2533 goto LABEL_259;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2534 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2535 if ( v224 & 1 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2536 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2537 v101 = (Texture *)(v109 != 0 ? (int)v110 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2538 v189 = v101;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2539 v176 = v104;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2540 v164 = v103;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2541 v100 = pRenderer;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2542 pRenderer->DrawTextureTransparent(v164, v176, v189);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2543 if ( !bRingsShownInCharScreen )
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 706
diff changeset
2544 pRenderer->DrawMaskToZBuffer(a2g, a3g, v101, v235);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2545 goto LABEL_259;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2546 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2547 v101 = (Texture *)(v109 != 0 ? (int)v110 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2548 v190 = v101;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2549 v177 = v104;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2550 v165 = v103;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2551 v100 = pRenderer;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2552 pRenderer->DrawTransparentGreenShade(v165, v177, v190);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2553 if ( !bRingsShownInCharScreen )
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 706
diff changeset
2554 pRenderer->DrawMaskToZBuffer(a2g, a3g, v101, v235);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2555 goto LABEL_259;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2556 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2557 v106 = v105 - 16;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2558 if ( v106 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2559 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2560 v107 = v106 - 16;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2561 if ( !v107 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2562 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2563 v178 = "sp28a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2564 v96 = (char *)&pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v178, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2565 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2566 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2567 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2568 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2569 *(char *)(v242 + 516) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2570 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2571 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2572 v187 = 255;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2573 v174 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2574 v97 = (double)GetTickCount();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2575 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0),
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2576 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2577 goto LABEL_259;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2578 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2579 v108 = v107 - 32;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2580 if ( !v108 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2581 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2582 v178 = "sp30a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2583 v96 = (char *)&pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v178, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2584 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2585 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2586 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2587 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2588 *(char *)(v242 + 516) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2589 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2590 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2591 v187 = 255;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2592 v174 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2593 v97 = (double)GetTickCount();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2594 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0),
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2595 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2596 goto LABEL_259;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2597 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2598 if ( v108 == 64 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2599 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2600 v178 = "sp91a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2601 v96 = (char *)&pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v178, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2602 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2603 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2604 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2605 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2606 *(char *)(v242 + 516) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2607 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2608 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2609 v187 = 255;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2610 v174 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2611 v97 = (double)GetTickCount();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2612 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0),
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2613 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2614 goto LABEL_259;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2615 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2616 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2617 v178 = "sptext01";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2618 v96 = (char *)&pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v178, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2619 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2620 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2621 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2622 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2623 *(char *)(v242 + 516) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2624 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2625 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2626 v187 = 255;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2627 v174 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2628 v97 = (double)GetTickCount();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2629 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0),
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2630 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2631 goto LABEL_259;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2632 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2633 v186 = 16;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2634 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2635 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2636 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2637 v186 = 13;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2638 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2639 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2640 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2641 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2642 v186 = 14;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2643 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2644 v90 = v186;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2645 goto LABEL_209;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2646 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2647 v90 = 15;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2648 goto LABEL_207;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2649 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2650 if ( (*(int *)(v57 + 20) & 0xF0) != 16 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2651 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2652 if ( (*(int *)(v57 + 20) & 0xF0) == 32 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2653 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2654 v171 = "sp28a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2655 v63 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v171, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2656 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2657 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2658 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2659 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2660 *(char *)(v221 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2661 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2662 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2663 v64 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2664 pRenderer->_4A63E6(a2e, a3e, (Texture *)(v59 != -1 ? (int)&pIcons_LOD->pTextures[v59] : 0), v63,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2665 (signed __int64)v64, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2666 goto LABEL_155;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2667 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2668 if ( (*(int *)(v57 + 20) & 0xF0) == 64 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2669 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2670 v171 = "sp30a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2671 v63 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v171, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2672 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2673 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2674 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2675 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2676 *(char *)(v221 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2677 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2678 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2679 v64 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2680 pRenderer->_4A63E6(a2e, a3e, (Texture *)(v59 != -1 ? (int)&pIcons_LOD->pTextures[v59] : 0), v63,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2681 (signed __int64)v64, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2682 goto LABEL_155;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2683 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2684 if ( (*(int *)(v57 + 20) & 0xF0) == 128 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2685 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2686 v171 = "sp91a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2687 v63 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v171, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2688 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2689 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2690 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2691 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2692 *(char *)(v221 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2693 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2694 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2695 v64 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2696 pRenderer->_4A63E6(a2e, a3e, (Texture *)(v59 != -1 ? (int)&pIcons_LOD->pTextures[v59] : 0), v63,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2697 (signed __int64)v64, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2698 goto LABEL_155;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2699 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2700 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2701 v171 = "sptext01";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2702 v63 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v171, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2703 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2704 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2705 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2706 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2707 *(char *)(v221 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2708 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2709 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2710 v64 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2711 pRenderer->_4A63E6(a2e, a3e, (Texture *)(v59 != -1 ? (int)&pIcons_LOD->pTextures[v59] : 0), v63,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2712 (signed __int64)v64, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2713 goto LABEL_155;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2714 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2715 if ( (*(int *)(v44 + 20) & 0xF0) != 16 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2716 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2717 if ( (*(int *)(v44 + 20) & 0xF0) == 32 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2718 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2719 v170 = "sp28a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2720 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2721 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2722 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2723 if ( (*(int *)(v44 + 20) & 0xF0) != 64 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2724 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2725 v50 = pIcons_LOD;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2726 if ( (*(int *)(v44 + 20) & 0xF0) == 128 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2727 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2728 v170 = "sp91a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2729 v51 = &pIcons_LOD->pTextures[v50->LoadTexture(v170, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2730 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2731 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2732 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2733 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2734 *(char *)(v220 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2735 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2736 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2737 v52 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2738 pRenderer->_4A63E6(a2d, a3d, (Texture *)(v48 != -1 ? (int)&pIcons_LOD->pTextures[v48] : 0),
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2739 v51, (signed __int64)v52, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2740 goto LABEL_127;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2741 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2742 v170 = "sptext01";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2743 v51 = &pIcons_LOD->pTextures[v50->LoadTexture(v170, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2744 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2745 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2746 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2747 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2748 *(char *)(v220 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2749 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2750 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2751 v52 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2752 pRenderer->_4A63E6(a2d, a3d, (Texture *)(v48 != -1 ? (int)&pIcons_LOD->pTextures[v48] : 0),
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2753 v51, (signed __int64)v52, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2754 goto LABEL_127;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2755 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2756 v170 = "sp30a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2757 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2758 v50 = pIcons_LOD;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2759 v51 = &pIcons_LOD->pTextures[v50->LoadTexture(v170, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2760 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2761 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2762 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2763 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2764 *(char *)(v220 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2765 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2766 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2767 v52 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2768 pRenderer->_4A63E6(a2d, a3d, (Texture *)(v48 != -1 ? (int)&pIcons_LOD->pTextures[v48] : 0),
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2769 v51, (signed __int64)v52, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2770 goto LABEL_127;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2771 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2772 v50 = pIcons_LOD;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2773 v170 = "sptext01";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2774 v51 = &pIcons_LOD->pTextures[v50->LoadTexture(v170, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2775 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2776 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2777 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2778 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2779 *(char *)(v220 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2780 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2781 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2782 v52 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2783 pRenderer->_4A63E6(a2d, a3d, (Texture *)(v48 != -1 ? (int)&pIcons_LOD->pTextures[v48] : 0),
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2784 v51, (signed __int64)v52, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2785 goto LABEL_127;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2786 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2787 v185 = 16;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2788 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2789 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2790 v45 = v185;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2791 goto LABEL_106;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2792 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2793 v45 = 15;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2794 goto LABEL_104;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2795 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2796 if ( (*(int *)(v32 + 20) & 0xF0) != 16 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2797 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2798 if ( (*(int *)(v32 + 20) & 0xF0) == 32 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2799 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2800 v169 = "sp28a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2801 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2802 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2803 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2804 if ( (*(int *)(v32 + 20) & 0xF0) != 64 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2805 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2806 v38 = pIcons_LOD;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2807 if ( (*(int *)(v32 + 20) & 0xF0) == 128 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2808 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2809 v169 = "sp91a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2810 v39 = &pIcons_LOD->pTextures[v38->LoadTexture(v169, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2811 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2812 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2813 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2814 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2815 *(char *)(v219 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2816 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2817 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2818 v40 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2819 pRenderer->_4A63E6(a2c, a3c, (Texture *)(v35 != -1 ? (int)&pIcons_LOD->pTextures[v35] : 0), v39,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2820 (signed __int64)v40, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2821 goto LABEL_93;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2822 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2823 v169 = "sptext01";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2824 v39 = &pIcons_LOD->pTextures[v38->LoadTexture(v169, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2825 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2826 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2827 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2828 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2829 *(char *)(v219 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2830 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2831 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2832 v40 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2833 pRenderer->_4A63E6(a2c, a3c, (Texture *)(v35 != -1 ? (int)&pIcons_LOD->pTextures[v35] : 0), v39,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2834 (signed __int64)v40, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2835 goto LABEL_93;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2836 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2837 v169 = "sp30a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2838 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2839 v38 = pIcons_LOD;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2840 v39 = &pIcons_LOD->pTextures[v38->LoadTexture(v169, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2841 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2842 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2843 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2844 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2845 *(char *)(v219 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2846 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2847 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2848 v40 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2849 pRenderer->_4A63E6(a2c, a3c, (Texture *)(v35 != -1 ? (int)&pIcons_LOD->pTextures[v35] : 0), v39,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2850 (signed __int64)v40, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2851 goto LABEL_93;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2852 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2853 v38 = pIcons_LOD;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2854 v169 = "sptext01";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2855 v39 = &pIcons_LOD->pTextures[v38->LoadTexture(v169, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2856 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2857 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2858 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2859 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2860 *(char *)(v219 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2861 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2862 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2863 v40 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2864 pRenderer->_4A63E6(a2c, a3c, (Texture *)(v35 != -1 ? (int)&pIcons_LOD->pTextures[v35] : 0), v39,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2865 (signed __int64)v40, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2866 goto LABEL_93;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2867 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2868 v184 = 9;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2869 break;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2870 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2871 v33 = v184;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2872 goto LABEL_74;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2873 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2874 v33 = 5;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2875 goto LABEL_72;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2876 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2877 if ( (*(int *)(v22 + 20) & 0xF0) != 16 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2878 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2879 if ( (*(int *)(v22 + 20) & 0xF0) == 32 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2880 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2881 v168 = "sp28a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2882 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2883 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2884 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2885 if ( (*(int *)(v22 + 20) & 0xF0) != 64 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2886 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2887 v26 = pIcons_LOD;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2888 if ( (*(int *)(v22 + 20) & 0xF0) == 128 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2889 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2890 v168 = "sp91a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2891 a2b = &pIcons_LOD->pTextures[v26->LoadTexture(v168, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2892 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2893 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2894 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2895 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2896 *(char *)(v22 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2897 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2898 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2899 v27 = (Texture *)(v241 != -1 ? (int)&pIcons_LOD->pTextures[v241] : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2900 v28 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2901 pRenderer->_4A63E6(v24, a3b, v27, a2b, (signed __int64)v28, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2902 goto LABEL_57;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2903 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2904 v168 = "sptext01";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2905 a2b = &pIcons_LOD->pTextures[v26->LoadTexture(v168, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2906 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2907 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2908 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2909 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2910 *(char *)(v22 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2911 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2912 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2913 v27 = (Texture *)(v241 != -1 ? (int)&pIcons_LOD->pTextures[v241] : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2914 v28 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2915 pRenderer->_4A63E6(v24, a3b, v27, a2b, (signed __int64)v28, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2916 goto LABEL_57;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2917 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2918 v168 = "sp30a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2919 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2920 v26 = pIcons_LOD;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2921 a2b = &pIcons_LOD->pTextures[v26->LoadTexture(v168, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2922 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2923 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2924 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2925 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2926 *(char *)(v22 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2927 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2928 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2929 v27 = (Texture *)(v241 != -1 ? (int)&pIcons_LOD->pTextures[v241] : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2930 v28 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2931 pRenderer->_4A63E6(v24, a3b, v27, a2b, (signed __int64)v28, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2932 goto LABEL_57;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2933 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2934 v26 = pIcons_LOD;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2935 v168 = "sptext01";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2936 a2b = &pIcons_LOD->pTextures[v26->LoadTexture(v168, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2937 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2938 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2939 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2940 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2941 *(char *)(v22 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2942 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2943 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2944 v27 = (Texture *)(v241 != -1 ? (int)&pIcons_LOD->pTextures[v241] : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2945 v28 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2946 pRenderer->_4A63E6(v24, a3b, v27, a2b, (signed __int64)v28, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2947 goto LABEL_57;;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2948 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2949 a3 = pPaperdoll_BodyY;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2950 a2 = pPaperdoll_BodyX;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2951 v240 = 4 * uPlayerID_ - 4;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2952 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX, pPaperdoll_BodyY,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2953 (Texture *)(*(unsigned int *)((char *)papredoll_dbods + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dbods + v240)] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2954 if ( !bRingsShownInCharScreen )
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 706
diff changeset
2955 pRenderer->DrawMaskToZBuffer(a2, a3,
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2956 (Texture *)(*(unsigned int *)((char *)papredoll_dbods + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dbods + v240)] : 0),
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2957 pPlayer->pEquipment.uBody);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2958 uPlayerID_a = 2 * pBodyComplection;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2959 v6 = pPlayer->pEquipment.uMainHand;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2960 if ( !v6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2961 || (v7 = *(int *)&pPlayer->pInventoryItems[v6-1], pItemsTable->pItems[v7].uEquipType != 1)
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2962 && (pItemsTable->pItems[v7].uSkillType != 4 || pPlayer->pEquipment.uOffHand) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2963 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_LeftHand[pBodyComplection][0], pPaperdoll_BodyY + pPaperdoll_LeftHand[pBodyComplection][1],
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2964 (Texture *)(*(unsigned int *)((char *)papredoll_dlads + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlads + v240)] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2965 v8 = pPlayer->pEquipment.uMainHand;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2966 if ( v8 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2967 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2968 v229 = pPlayer->pEquipment.uMainHand;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2969 v9 = (int)&pPlayer->pInventoryItems[v8-1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2970 // v10 = pBodyComplection << 7;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2971 v218 = v9;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2972 v11 = *(int *)v9;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2973 v12 = *(int *)v9;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2974 v13 = pPaperdoll_BodyX + paperdoll_Weapon[pBodyComplection][1][0] - pItemsTable->pItems[v12].uEquipX;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2975 a2a = v13;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2976 a3a = pPaperdoll_BodyY + paperdoll_Weapon[pBodyComplection][1][1] - pItemsTable->pItems[v12].uEquipY;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2977 if ( v11 == 64 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2978 v166 = "item64v1";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2979 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2980 v166 = pItemsTable->pItems[v12].pIconName;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2981 v14 = pIcons_LOD->LoadTexture(v166, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2982 v15 = *(int *)(v218 + 20);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2983 if ( *(int *)(v218 + 20) & 0xF0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2984 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2985 if ( (*(int *)(v218 + 20) & 0xF0) != 16 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2986 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2987 if ( (*(int *)(v218 + 20) & 0xF0) == 32 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2988 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2989 v167 = "sp28a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2990 //v16 = (Texture *)(72 * pIcons_LOD->LoadTexture(v167, TEXTURE_16BIT_PALETTE) + 7145548);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2991 v16 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v167, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2992 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2993 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2994 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2995 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2996 *(char *)(v218 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2997 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2998 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2999 v17 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3000 pRenderer->_4A63E6(v13, a3a, (Texture *)(v14 != -1 ? (int)&pIcons_LOD->pTextures[v14] : 0), v16, (signed __int64)v17, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3001 goto LABEL_393;;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3002 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3003 if ( (*(int *)(v218 + 20) & 0xF0) == 64 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3004 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3005 v167 = "sp30a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3006 //v16 = (Texture *)(72 * pIcons_LOD->LoadTexture(v167, TEXTURE_16BIT_PALETTE) + 7145548);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3007 v16 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v167, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3008 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3009 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3010 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3011 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3012 *(char *)(v218 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3013 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3014 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3015 v17 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3016 pRenderer->_4A63E6(v13, a3a, (Texture *)(v14 != -1 ? (int)&pIcons_LOD->pTextures[v14] : 0), v16, (signed __int64)v17, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3017 goto LABEL_393;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3018 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3019 if ( (*(int *)(v218 + 20) & 0xF0) == 128 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3020 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3021 v167 = "sp91a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3022 //v16 = (Texture *)(72 * pIcons_LOD->LoadTexture(v167, TEXTURE_16BIT_PALETTE) + 7145548);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3023 v16 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v167, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3024 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3025 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3026 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3027 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3028 *(char *)(v218 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3029 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3030 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3031 v17 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3032 pRenderer->_4A63E6(v13, a3a, (Texture *)(v14 != -1 ? (int)&pIcons_LOD->pTextures[v14] : 0), v16, (signed __int64)v17, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3033 goto LABEL_393;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3034 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3035 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3036 v167 = "sptext01";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3037 //v16 = (Texture *)(72 * pIcons_LOD->LoadTexture(v167, TEXTURE_16BIT_PALETTE) + 7145548);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3038 v16 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v167, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3039 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3040 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3041 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3042 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3043 *(char *)(v218 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3044 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3045 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3046 v17 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3047 pRenderer->_4A63E6(v13, a3a, (Texture *)(v14 != -1 ? (int)&pIcons_LOD->pTextures[v14] : 0), v16, (signed __int64)v17, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3048 goto LABEL_393;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3049 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3050 v18 = v14 + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3051 v19 = (char *)&pIcons_LOD->pTextures[v14];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3052 if ( v15 & 2 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3053 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3054 v20 = (Texture *)(v18 != 0 ? (int)v19 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3055 pRenderer->DrawTransparentRedShade(a2a, a3a, v20);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3056 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3057 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3058 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3059 if ( v15 & 1 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3060 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3061 v20 = (Texture *)(v18 != 0 ? (int)v19 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3062 pRenderer->DrawTextureTransparent(a2a, a3a, v20);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3063 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3064 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3065 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3066 v20 = (Texture *)(v18 != 0 ? (int)v19 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3067 pRenderer->DrawTransparentGreenShade(a2a, a3a, v20);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3068 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3069 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3070 if ( !bRingsShownInCharScreen )
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 706
diff changeset
3071 pRenderer->DrawMaskToZBuffer(a2a, a3a, v20, v229);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3072 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3073 LABEL_393:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3074 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_RightHand[uPlayerID_a],
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3075 pPaperdoll_BodyY + pPaperdoll_RightHand[uPlayerID_a + 1],
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3076 (Texture *)(*(unsigned int *)((char *)papredoll_drhs + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_drhs + v240)] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3077 v161 = pPlayer->pEquipment.uMainHand;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3078 if ( v161 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3079 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3080 v162 = *(int *)&pPlayer->pInventoryItems[v161-1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3081 if ( pItemsTable->pItems[v162].uEquipType == 1 || pItemsTable->pItems[v162].uSkillType == 4 && !pPlayer->pEquipment.uOffHand )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3082 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_SecondLeftHand[0][uPlayerID_a],
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3083 pPaperdoll_BodyY + pPaperdoll_SecondLeftHand[0][uPlayerID_a + 1],
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3084 (Texture *)(*(unsigned int *)((char *)papredoll_dlhus + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlhus + v240)] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3085 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3086 if ( !bRingsShownInCharScreen )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3087 pRenderer->DrawTextureTransparent(0x25Bu, 0x12Bu,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3088 (Texture *)(uTextureID_MAGNIF_B != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_MAGNIF_B] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3089 pRenderer->DrawTextureTransparent(0x1D4u, 0,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3090 (Texture *)(uTextureID_507B04 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_507B04] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3091 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3092
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3093
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3094 //----- (0043E825) --------------------------------------------------------
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3095 void __fastcall CharacterUI_DrawPaperdollWithRingOverlay(unsigned int uPlayerID)
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3096 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3097 unsigned int v1; // ebx@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3098 Player *pPlayer; // edi@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3099 int v3; // ecx@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3100 int *v4; // edi@3
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3101 unsigned int v5; // ebx@3
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3102 int v6; // eax@3
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3103 LODFile_IconsBitmaps *v7; // ecx@7
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3104 double v8; // st7@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3105 int v9; // edi@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3106 Texture *v10; // edi@18
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3107 unsigned __int8 v11; // zf@19
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3108 Texture *v12; // eax@19
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3109 char v13; // sf@24
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3110 unsigned __int8 v14; // of@24
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3111 unsigned int v15; // eax@25
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3112 unsigned int v16; // ebx@26
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3113 int v17; // eax@26
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3114 LODFile_IconsBitmaps *v18; // ecx@30
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3115 double v19; // st7@39
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3116 int v20; // edi@40
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3117 int v21; // eax@41
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3118 signed int v22; // ebx@41
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3119 Texture *v23; // edi@41
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3120 int v24; // eax@42
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3121 char *v25; // eax@42
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3122 unsigned int v26; // eax@46
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3123 int v27; // edi@47
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3124 unsigned int v28; // ebx@47
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3125 int v29; // eax@47
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3126 LODFile_IconsBitmaps *v30; // ecx@51
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3127 Texture *v31; // esi@58
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3128 double v32; // st7@60
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3129 int v33; // esi@61
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3130 int v34; // esi@62
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3131 Texture *v35; // eax@63
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3132 const char *v36; // [sp-8h] [bp-38h]@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3133 const char *v37; // [sp-8h] [bp-38h]@31
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3134 const char *v38; // [sp-8h] [bp-38h]@52
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3135 int v39; // [sp+10h] [bp-20h]@3
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3136 Texture *v40; // [sp+10h] [bp-20h]@14
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3137 int v41; // [sp+10h] [bp-20h]@26
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3138 Texture *v42; // [sp+10h] [bp-20h]@37
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3139 int v43; // [sp+10h] [bp-20h]@47
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3140 unsigned int a3; // [sp+14h] [bp-1Ch]@3
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3141 unsigned int a2; // [sp+18h] [bp-18h]@3
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3142 unsigned int *v46; // [sp+1Ch] [bp-14h]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3143 Player *v47; // [sp+20h] [bp-10h]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3144 int v48; // [sp+24h] [bp-Ch]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3145 int v49; // [sp+24h] [bp-Ch]@26
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3146
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3147 v1 = uPlayerID;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3148 pPlayer = pPlayers[uPlayerID];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3149 v47 = pPlayers[uPlayerID];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3150 pIcons_LOD->LoadTexture("sptext01", TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3151 CharacterUI_DrawPaperdoll(v1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3152 pRenderer->DrawTextureTransparent(0x1D9u, 0, (Texture *)(uTextureID_BACKHAND != -1 ? &pIcons_LOD->pTextures[uTextureID_BACKHAND] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3153 pRenderer->DrawTextureTransparent(0x1D4u, 0, (Texture *)(uTextureID_507B04 != -1 ? &pIcons_LOD->pTextures[uTextureID_507B04] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3154 pRenderer->DrawTextureIndexed(pCharacterScreen_DetalizBtn->uX, pCharacterScreen_DetalizBtn->uY,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3155 (Texture *)(uTextureID_5118C8 != -1 ? &pIcons_LOD->pTextures[uTextureID_5118C8] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3156 v3 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3157 v46 = &pPlayer->pEquipment.field_28;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3158 v48 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3159 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3160 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3161 if ( !*v46 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3162 goto LABEL_24;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3163 v39 = *v46;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3164 v4 = (int *)&pPlayer->pInventoryItems[*v46-1].uItemID;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3165 a3 = pPaperdollRingsY[v3];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3166 a2 = pPaperdollRingsX[v3];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3167 v5 = pIcons_LOD->LoadTexture(pItemsTable->pItems[*v4].pIconName, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3168 v6 = *(int *)(v4 + 20);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3169 if ( *(int *)(v4 + 20) & 0xF0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3170 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3171 if ( (*(int *)(v4 + 20) & 0xF0) != 16 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3172 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3173 if ( (*(int *)(v4 + 20) & 0xF0) == 32 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3174 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3175 v36 = "sp28a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3176 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3177 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3178 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3179 if ( (*(int *)(v4 + 20) & 0xF0) != 64 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3180 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3181 v7 = pIcons_LOD;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3182 if ( (*(int *)(v4 + 20) & 0xF0) == 128 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3183 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3184 v36 = "sp91a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3185 LABEL_14:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3186 v40 = &pIcons_LOD->pTextures[v7->LoadTexture(v36, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3187 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3188 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3189 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3190 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3191 *(char *)(v4 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3192 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3193 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3194 v8 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3195 pRenderer->_4A63E6(a2, a3, (Texture *)(v5 != -1 ? (int)&pIcons_LOD->pTextures[v5] : 0),
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3196 v40, (signed __int64)v8, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3197 goto LABEL_23;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3198 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3199 LABEL_13:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3200 v36 = "sptext01";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3201 goto LABEL_14;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3202 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3203 v36 = "sp30a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3204 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3205 v7 = pIcons_LOD;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3206 goto LABEL_14;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3207 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3208 v7 = pIcons_LOD;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3209 goto LABEL_13;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3210 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3211 v9 = v5 + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3212 if ( v6 & 2 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3213 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3214 v10 = (Texture *)(v9 != 0 ? (int)&pIcons_LOD->pTextures[v5] : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3215 pRenderer->DrawTransparentRedShade(a2, a3, v10);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3216 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3217 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3218 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3219 v11 = (v6 & 1) == 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3220 v12 = &pIcons_LOD->pTextures[v5];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3221 if ( v11 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3222 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3223 v10 = (Texture *)(v9 != 0 ? (int)v12 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3224 pRenderer->DrawTransparentGreenShade(a2, a3, v10);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3225 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3226 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3227 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3228 v10 = (Texture *)(v9 != 0 ? (int)v12 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3229 pRenderer->DrawTextureTransparent(a2, a3, v10);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3230 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3231 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3232 pRenderer->_4A601E(a2, a3, v10, v39);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3233 LABEL_23:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3234 pPlayer = v47;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3235 LABEL_24:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3236 v46 += 4;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3237 v3 = v48 + 4;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3238 v14 = __OFSUB__(v48 + 4, 20);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3239 v11 = v48 == 16;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3240 v13 = v48 - 16 < 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3241 v48 += 4;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3242 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3243 while ( (unsigned __int8)(v13 ^ v14) | v11 );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3244 v15 = pPlayer->pEquipment.field_24;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3245 if ( !v15 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3246 goto LABEL_46;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3247 v41 = pPlayer->pEquipment.field_24;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3248 v49 = (int)&pPlayer->pInventoryItems[v15-1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3249 v16 = pIcons_LOD->LoadTexture(pItemsTable->pItems[*(int *)v49].pIconName, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3250 v17 = *(int *)(v49 + 20);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3251 if ( !(*(int *)(v49 + 20) & 0xF0) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3252 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3253 v20 = v16 + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3254 if ( v17 & 2 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3255 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3256 v21 = 9 * v16;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3257 v22 = 493;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3258 v23 = (Texture *)(v20 != 0 ? (int)&pIcons_LOD->pTextures[8 * v21 / 0x48u] : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3259 pRenderer->DrawTransparentRedShade(0x1EDu, 0x5Bu, v23);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3260 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3261 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3262 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3263 v11 = (v17 & 1) == 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3264 v24 = 9 * v16;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3265 v22 = 493;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3266 v25 = (char *)&pIcons_LOD->pTextures[8 * v24 / 0x48u];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3267 if ( v11 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3268 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3269 v23 = (Texture *)(v20 != 0 ? (int)v25 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3270 pRenderer->DrawTransparentGreenShade(493, 91, v23);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3271 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3272 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3273 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3274 v23 = (Texture *)(v20 != 0 ? (int)v25 : 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3275 pRenderer->DrawTextureTransparent(0x1EDu, 0x5Bu, v23);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3276 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3277 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3278 pRenderer->_4A601E(v22, 91, v23, v41);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3279 pPlayer = v47;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3280 goto LABEL_46;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3281 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3282 if ( (*(int *)(v49 + 20) & 0xF0) == 16 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3283 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3284 v18 = pIcons_LOD;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3285 goto LABEL_36;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3286 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3287 if ( (*(int *)(v49 + 20) & 0xF0) == 32 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3288 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3289 v37 = "sp28a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3290 goto LABEL_34;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3291 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3292 if ( (*(int *)(v49 + 20) & 0xF0) == 64 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3293 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3294 v37 = "sp30a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3295 LABEL_34:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3296 v18 = pIcons_LOD;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3297 goto LABEL_37;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3298 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3299 v18 = pIcons_LOD;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3300 if ( (*(int *)(v49 + 20) & 0xF0) == 128 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3301 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3302 v37 = "sp91a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3303 goto LABEL_37;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3304 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3305 LABEL_36:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3306 v37 = "sptext01";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3307 LABEL_37:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3308 v42 = &pIcons_LOD->pTextures[v18->LoadTexture(v37, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3309 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3310 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3311 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3312 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3313 *(char *)(v49 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3314 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3315 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3316 v19 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3317 pRenderer->_4A63E6(
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3318 0x1EDu,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3319 0x5Bu,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3320 (Texture *)(v16 != -1 ? (int)&pIcons_LOD->pTextures[v16] : 0),
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3321 v42,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3322 (signed __int64)v19,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3323 0,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3324 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3325 LABEL_46:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3326 v26 = pPlayer->pEquipment.field_1C;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3327 if ( !v26 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3328 return;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3329 v43 = pPlayer->pEquipment.field_1C;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3330 v27 = (int)&pPlayer->pInventoryItems[v26-1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3331 v28 = pIcons_LOD->LoadTexture(pItemsTable->pItems[*(int *)v27].pIconName, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3332 v29 = *(int *)(v27 + 20);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3333 if ( !(*(int *)(v27 + 20) & 0xF0) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3334 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3335 v33 = v28 + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3336 if ( v29 & 2 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3337 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3338 v34 = v33 != 0 ? (int)&pIcons_LOD->pTextures[v28] : 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3339 pRenderer->DrawTransparentRedShade(0x24Au, 0x58u, (Texture *)v34);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3340 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3341 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3342 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3343 v11 = (v29 & 1) == 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3344 v35 = &pIcons_LOD->pTextures[v28];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3345 if ( v11 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3346 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3347 v34 = v33 != 0 ? (int)v35 : 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3348 pRenderer->DrawTransparentGreenShade(586, 88, (Texture *)v34);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3349 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3350 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3351 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3352 v34 = v33 != 0 ? (int)v35 : 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3353 pRenderer->DrawTextureTransparent(0x24Au, 0x58u, (Texture *)v34);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3354 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3355 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3356 pRenderer->_4A601E(586, 88, (Texture *)v34, v43);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3357 return;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3358 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3359 if ( (*(int *)(v27 + 20) & 0xF0) == 16 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3360 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3361 v30 = pIcons_LOD;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3362 goto LABEL_57;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3363 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3364 if ( (*(int *)(v27 + 20) & 0xF0) == 32 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3365 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3366 v38 = "sp28a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3367 goto LABEL_55;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3368 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3369 if ( (*(int *)(v27 + 20) & 0xF0) == 64 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3370 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3371 v38 = "sp30a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3372 LABEL_55:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3373 v30 = pIcons_LOD;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3374 goto LABEL_58;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3375 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3376 v30 = pIcons_LOD;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3377 if ( (*(int *)(v27 + 20) & 0xF0) == 128 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3378 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3379 v38 = "sp91a";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3380 goto LABEL_58;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3381 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3382 LABEL_57:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3383 v38 = "sptext01";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3384 LABEL_58:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3385 v31 = &pIcons_LOD->pTextures[v30->LoadTexture(v38, TEXTURE_16BIT_PALETTE)];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3386 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3387 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3388 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3389 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3390 *(char *)(v27 + 20) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3391 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3392 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3393 v32 = (double)GetTickCount() * 0.1;
831
9c3f28b31b4a Party actions in blv
Nomad
parents: 816
diff changeset
3394 pRenderer->_4A63E6(0x24Au, 0x58u, pIcons_LOD->GetTexture(v28), v31, (signed __int64)v32, 0, 255);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3395 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3396
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3397 //----- (0043BCA7) --------------------------------------------------------
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3398 void CharacterUI_LoadPaperdollTextures()
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3399 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3400 int v0; // edi@7
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3401 enum CHARACTER_RACE pRace; // ebx@7
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3402 signed int pSex; // eax@7
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3403 int v3; // ebx@10
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3404 Player *pPlayer; // edi@12
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3405 unsigned __int8 v5; // cl@12
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3406 int v6; // edi@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3407 unsigned int v7; // eax@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3408 Player *pPlayer2; // ebx@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3409 char *v9; // ebx@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3410 char v10; // al@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3411 signed int v11; // edi@21
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3412 Player *pPlayer3; // ebx@23
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3413 //Player *pPlayer4; // edi@29
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3414 //int v14; // ebp@29
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3415 //stru331 *v15; // edi@65
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3416 //signed int v16; // ebx@66
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3417 //unsigned int v17; // eax@67
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3418 //unsigned int *v18; // ecx@67
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3419 //unsigned int *v19; // ebx@68
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3420 //int v20; // edi@73
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3421 int v21; // ebp@73
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3422 unsigned int v22; // eax@76
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3423 int v23; // ecx@76
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3424 unsigned int v24; // eax@78
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3425 int v25; // ecx@78
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3426 int v26; // ebx@79
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3427 unsigned int v27; // eax@80
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3428 int v28; // ecx@80
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3429 //int result; // eax@83
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3430 int v30; // [sp+10h] [bp-28h]@5
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3431 //signed int v31; // [sp+10h] [bp-28h]@68
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3432 signed int v32; // [sp+10h] [bp-28h]@75
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3433 signed int v33; // [sp+10h] [bp-28h]@77
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3434 int v34; // [sp+10h] [bp-28h]@79
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3435 //char *v35; // [sp+14h] [bp-24h]@65
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3436 int v36; // [sp+14h] [bp-24h]@75
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3437 int v37; // [sp+14h] [bp-24h]@77
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3438 signed int v38; // [sp+14h] [bp-24h]@79
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3439 //unsigned int *v39; // [sp+18h] [bp-20h]@66
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3440 int *v40; // [sp+18h] [bp-20h]@73
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3441 //unsigned int *v41; // [sp+1Ch] [bp-1Ch]@73
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3442 int v42; // [sp+20h] [bp-18h]@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3443 int v43; // [sp+20h] [bp-18h]@73
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3444 char pContainer[128]; // [sp+24h] [bp-14h]@12
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3445
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3446 uTextureID_MAGNIF_B = pIcons_LOD->LoadTexture("MAGNIF-B", TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3447 //if ( !pParty->uAlignment || pParty->uAlignment == 1 || pParty->uAlignment == 2 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3448 uTextureID_BACKDOLL = pIcons_LOD->LoadTexture("BACKDOLL", TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3449 uTextureID_507B04 = uTextureID_right_panel;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3450 v30 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3451 uTextureID_BACKHAND = pIcons_LOD->LoadTexture("BACKHAND", TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3452 uTextureID_5118C8 = uExitCancelTextureId;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3453 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3454 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3455 v42 = v30 + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3456 if ( sub_43EE77_ProbablyIfUnderwaterSuitIsEquipped(v30 + 1) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3457 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3458 v0 = v30;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3459 pRace = pPlayers[v30 + 1]->GetRace();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3460 pSex = pPlayers[v30 + 1]->GetSexByVoice();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3461 if ( pRace && pRace != 1 && pRace != 2 )//race == 3
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3462 v3 = (pSex != 0) + 3;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3463 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3464 v3 = (pSex != 0) + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3465 wsprintfA(pContainer, "pc23v%dBod", v3);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3466 papredoll_dbods[v0] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);//Body texture
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3467 wsprintfA(pContainer, "pc23v%dlad", v3);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3468 papredoll_dlads[v0] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);// Left Hand
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3469 wsprintfA(pContainer, "pc23v%dlau", v3);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3470 papredoll_dlaus[v0] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);// Left Hand2
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3471 wsprintfA(pContainer, "pc23v%drh", v3);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3472 papredoll_drhs[v0] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);// Right Hand
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3473 wsprintfA(pContainer, "pc23v%dlh", v3);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3474 papredoll_dlhs[v0] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);// Left Fist
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3475 wsprintfA(pContainer, "pc23v%dlhu", v3);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3476 papredoll_dlhus[v0] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE); // Left Fist 2
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3477 pPlayer = pPlayers[v0 + 1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3478 v5 = pPlayer->uFace;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3479 if ( v5 == 12 || v5 == 13 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3480 papredoll_dbrds[(char)v5] = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3481 papredoll_flying_feet[pPlayer->uFace] = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3482 IsPlayerWearingWatersuit[v30 + 1] = 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3483 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3484 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3485 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3486 v6 = v30;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3487 papredoll_dbods[v30] = pIcons_LOD->LoadTexture(dbod_texnames_by_face[pPlayers[v30 + 1]->uFace], TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3488 papredoll_dlads[v30] = pIcons_LOD->LoadTexture(dlad_texnames_by_face[pPlayers[v30 + 1]->uFace], TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3489 papredoll_dlaus[v30] = pIcons_LOD->LoadTexture(dlau_texnames_by_face[pPlayers[v30 + 1]->uFace], TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3490 papredoll_drhs[v30] = pIcons_LOD->LoadTexture(drh_texnames_by_face[pPlayers[v30 + 1]->uFace], TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3491 papredoll_dlhs[v30] = pIcons_LOD->LoadTexture(dlh_texnames_by_face[pPlayers[v30 + 1]->uFace], TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3492 v7 = pIcons_LOD->LoadTexture(dlhu_texnames_by_face[pPlayers[v30 + 1]->uFace], TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3493 pPlayer2 = pPlayers[v30 + 1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3494 papredoll_dlhus[v30] = v7;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3495 v9 = (char *)&pPlayer2->uFace;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3496 v10 = *v9;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3497 if ( *v9 == 12 || v10 == 13 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3498 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3499 wsprintfA(pContainer, "pc%02dbrd", v10 + 1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3500 v9 = (char *)&pPlayers[v6 + 1]->uFace;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3501 papredoll_dbrds[*v9] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3502 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3503 wsprintfA(pContainer, "item281pc%02d", *v9 + 1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3504 papredoll_flying_feet[pPlayers[v6 + 1]->uFace] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3505 IsPlayerWearingWatersuit[v30 + 1] = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3506 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3507 ++v30;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3508 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3509 while ( v42 < 4 );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3510 uTextureID_ar_up_up = pIcons_LOD->LoadTexture("ar_up_up", TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3511 uTextureID_ar_up_dn = pIcons_LOD->LoadTexture("ar_up_dn", TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3512 uTextureID_ar_dn_up = pIcons_LOD->LoadTexture("ar_dn_up", TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3513 uTextureID_ar_dn_dn = pIcons_LOD->LoadTexture("ar_dn_dn", TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3514 papredoll_dbrds[9] = pIcons_LOD->LoadTexture("ib-cd1-d", TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3515 papredoll_dbrds[7] = pIcons_LOD->LoadTexture("ib-cd2-d", TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3516 papredoll_dbrds[5] = pIcons_LOD->LoadTexture("ib-cd3-d", TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3517 papredoll_dbrds[3] = pIcons_LOD->LoadTexture("ib-cd4-d", TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3518 papredoll_dbrds[1] = pIcons_LOD->LoadTexture("ib-cd5-d", TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3519 v11 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3520 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3521 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3522 byte_5111C0[v11] = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3523 if ( pParty->pPickedItem.uItemID != v11 + 66 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3524 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3525 pPlayer3 = pParty->pPlayers;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3526 while ( !sub_43EE15_player_has_item(v11 + 66, pPlayer3, 0) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3527 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3528 ++pPlayer3;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3529 if ( (signed int)pPlayer3 >= (signed int)pParty->pHirelings )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3530 goto LABEL_28;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3531 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3532 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3533 byte_5111C0[v11] = 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3534 LABEL_28:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3535 ++v11;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3536 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3537 while ( v11 < 54 );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3538
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3539 memset(byte_5111F6, 0, 16);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3540 for (uint i = 0; i < 4; ++i)
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3541 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3542 auto player = pParty->pPlayers + i;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3543
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3544 if (sub_43EE15_player_has_item(ITEM_ARTICACT_GOVERNONS_ARMOR, player, 1)) byte_5111F6[0] = 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3545 if (sub_43EE15_player_has_item(ITEM_ARTIFACT_YORUBA, player, 1)) byte_5111F6[1] = 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3546 if (sub_43EE15_player_has_item(ITEM_RELIC_HARECS_LEATHER, player, 1)) byte_5111F6[2] = 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3547 if (sub_43EE15_player_has_item(ITEM_ARTIFACT_LEAGUE_BOOTS, player, 1)) byte_5111F6[3] = 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3548 if (sub_43EE15_player_has_item(ITEM_RELIC_TALEDONS_HELM, player, 1)) byte_5111F6[4] = 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3549 if (sub_43EE15_player_has_item(ITEM_RELIC_SCHOLARS_CAP, player, 1)) byte_5111F6[5] = 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3550 if (sub_43EE15_player_has_item(ITEM_RELIC_PHYNAXIAN_CROWN, player, 1)) byte_5111F6[6] = 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3551 if (sub_43EE15_player_has_item(ITEM_ARTIFACT_MINDS_EYE, player, 1)) byte_5111F6[7] = 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3552 if (sub_43EE15_player_has_item(ITEM_RARE_SHADOWS_MASK, player, 1)) byte_5111F6[8] = 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3553 if (sub_43EE15_player_has_item(ITEM_RILIC_TITANS_BELT, player, 1)) byte_5111F6[9] = 1;
831
9c3f28b31b4a Party actions in blv
Nomad
parents: 816
diff changeset
3554 if (sub_43EE15_player_has_item(ITEM_ARTIFACT_HEROS_BELT, player, 1)) byte_5111F6[10] = 1;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3555 if (sub_43EE15_player_has_item(ITEM_RELIC_TWILIGHT, player, 1)) byte_5111F6[11] = 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3556 if (sub_43EE15_player_has_item(ITEM_ARTIFACT_CLOAK_OF_THE_SHEEP, player, 1)) byte_5111F6[12] = 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3557 if (sub_43EE15_player_has_item(ITEM_RARE_SUN_CLOAK, player, 1)) byte_5111F6[13] = 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3558 if (sub_43EE15_player_has_item(ITEM_RARE_MOON_CLOAK, player, 1)) byte_5111F6[14] = 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3559 if (sub_43EE15_player_has_item(ITEM_RARE_VAMPIRES_CAPE, player, 1)) byte_5111F6[15] = 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3560 if (sub_43EE15_player_has_item(ITEM_ELVEN_CHAINMAIL, player, 1)) byte_5111F6[16] = 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3561 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3562
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3563 //v14 = 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3564 //v15 = &stru_511698.field_2C;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3565 //v35 = (char *)&stru_511718.field_18;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3566 for (uint i = 0; i < 2; ++i)
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3567 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3568 //v16 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3569 //v39 = (unsigned int *)(v35 - 24);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3570 for (uint j = 0; j < 5; ++j)
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3571 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3572 _43C91D_FormItemTextureFilename(pContainer, j + 100, i + 1, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3573 //v17 = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3574 //++v16;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3575 //v18 = v39;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3576 //++v39;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3577 //*v18 = v17;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3578 stru_511718[i].texids[j] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3579 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3580 //while ( v16 < 5 );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3581
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3582 //*(int *)v35 = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3583 _43C91D_FormItemTextureFilename(pContainer, 535, i + 1, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3584 stru_511718[i].texid2 = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3585
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3586 //v31 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3587 //v19 = (unsigned int *)((char *)v15 - 44);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3588 for (uint j = 0; j < 11; ++j)
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3589 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3590 _43C91D_FormItemTextureFilename(pContainer, j + 89, i + 1, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3591 //*v19 = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3592 //++v19;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3593 stru_511698[i].texids[j] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3594 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3595 //while ( v31 < 11 );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3596
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3597 _43C91D_FormItemTextureFilename(pContainer, 521, i + 1, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3598 stru_511698[i].texid1 = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3599 _43C91D_FormItemTextureFilename(pContainer, 522, i + 1, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3600 stru_511698[i].texid2 = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3601 _43C91D_FormItemTextureFilename(pContainer, 523, i + 1, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3602 stru_511698[i].texid3 = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3603 _43C91D_FormItemTextureFilename(pContainer, 532, i + 1, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3604 stru_511698[i].texid4 = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3605 _43C91D_FormItemTextureFilename(pContainer, 544, i + 1, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3606 stru_511698[i].texid5 = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3607 if ( _43ED6F_check_party_races(true) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3608 papredoll_dbrds[11] = pIcons_LOD->LoadTexture("item092v3", TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3609 //v35 += 28;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3610 //++v14;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3611 //++v15;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3612 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3613 //while ( v14 - 1 < 2 );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3614
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3615 v43 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3616 //v20 = 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3617 v40 = &dword_511638[0][5];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3618 v21 = (int)paperdoll_array_511290[0][13];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3619 //v41 = (unsigned int *)&stru_511718.texid1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3620 for (uint i = 0; i < 4; ++i)
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3621 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3622 if ( sub_43EDB9_get_some_race_sex_relation_2(i) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3623 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3624 _43C91D_FormItemTextureFilename(pContainer, 524, i + 1, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3625 v32 = 66;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3626 stru_511718[i].texid1 = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3627 v36 = v21 - 152;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3628 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3629 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3630 _43C91D_FormItemTextureFilename(pContainer, v32, i + 1, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3631 *(int *)(v36 - 4) = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3632 _43C91D_FormItemTextureFilename(pContainer, v32, i + 1, 1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3633 *(int *)v36 = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3634 _43C91D_FormItemTextureFilename(pContainer, v32, i + 1, 2);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3635 v22 = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3636 v23 = v36;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3637 v36 += 12;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3638 ++v32;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3639 *(int *)(v23 + 4) = v22;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3640 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3641 while ( v32 - 66 < 13 );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3642 _43C91D_FormItemTextureFilename(pContainer, 516, i + 1, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3643 *(int *)v21 = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3644 _43C91D_FormItemTextureFilename(pContainer, 516, i + 1, 1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3645 *(int *)(v21 + 4) = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3646 _43C91D_FormItemTextureFilename(pContainer, 516, i + 1, 2);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3647 *(int *)(v21 + 8) = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3648 _43C91D_FormItemTextureFilename(pContainer, 505, i + 1, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3649 *(int *)(v21 + 12) = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3650 _43C91D_FormItemTextureFilename(pContainer, 505, i + 1, 1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3651 *(int *)(v21 + 16) = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3652 _43C91D_FormItemTextureFilename(pContainer, 505, i + 1, 2);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3653 *(int *)(v21 + 20) = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3654 _43C91D_FormItemTextureFilename(pContainer, 504, i + 1, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3655 *(int *)(v21 + 24) = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3656 _43C91D_FormItemTextureFilename(pContainer, 504, i + 1, 1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3657 *(int *)(v21 + 28) = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3658 _43C91D_FormItemTextureFilename(pContainer, 504, i + 1, 2);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3659 *(int *)(v21 + 32) = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3660 _43C91D_FormItemTextureFilename(pContainer, 533, i + 1, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3661 *(int *)(v21 + 36) = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3662 _43C91D_FormItemTextureFilename(pContainer, 533, i + 1, 1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3663 *(int *)(v21 + 40) = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3664 _43C91D_FormItemTextureFilename(pContainer, 533, i + 1, 2);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3665 *(int *)(v21 + 44) = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3666 v33 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3667 v37 = (int)(v40 - 5);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3668 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3669 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3670 _43C91D_FormItemTextureFilename(pContainer, v33 + 115, i + 1, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3671 v24 = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3672 ++v33;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3673 v25 = v37;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3674 v37 += 4;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3675 *(int *)v25 = v24;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3676 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3677 while ( v33 < 5 );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3678 _43C91D_FormItemTextureFilename(pContainer, 512, i + 1, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3679 v26 = v43;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3680 v38 = 105;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3681 v34 = v43;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3682 *v40 = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3683 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3684 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3685 _43C91D_FormItemTextureFilename(pContainer, v38, i + 1, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3686 *(int *)((char *)paperdoll_array_511828 + v34) = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3687 _43C91D_FormItemTextureFilename(pContainer, v38, i + 1, 1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3688 v27 = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3689 v28 = v34;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3690 v34 += 4;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3691 ++v38;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3692 *(int *)((char *)dword_511788 + v28) = v27;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3693 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3694 while ( v38 - 105 < 5 );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3695 _43C91D_FormItemTextureFilename(pContainer, 525, i + 1, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3696 *(int *)((char *)&paperdoll_array_511828[0][5] + v43) = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3697 _43C91D_FormItemTextureFilename(pContainer, 530, i + 1, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3698 *(int *)((char *)&paperdoll_array_511828[0][6] + v43) = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3699 _43C91D_FormItemTextureFilename(pContainer, 547, i + 1, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3700 *(int *)((char *)&paperdoll_array_511828[0][7] + v43) = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3701 _43C91D_FormItemTextureFilename(pContainer, 548, i + 1, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3702 *(int *)((char *)&paperdoll_array_511828[0][8] + v43) = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3703 _43C91D_FormItemTextureFilename(pContainer, 550, i + 1, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3704 *(int *)((char *)&paperdoll_array_511828[0][9] + v43) = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3705 _43C91D_FormItemTextureFilename(pContainer, 525, i + 1, 1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3706 *(int *)((char *)&dword_51179C + v43) = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3707 _43C91D_FormItemTextureFilename(pContainer, 530, i + 1, 1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3708 *(int *)((char *)&dword_5117A0 + v43) = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3709 _43C91D_FormItemTextureFilename(pContainer, 547, i + 1, 1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3710 *(int *)((char *)&dword_5117A4 + v43) = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3711 _43C91D_FormItemTextureFilename(pContainer, 548, i + 1, 1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3712 *(int *)((char *)&dword_5117A8 + v43) = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3713 _43C91D_FormItemTextureFilename(pContainer, 550, i + 1, 1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3714 *(int *)((char *)&dword_5117AC + v43) = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3715 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3716 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3717 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3718 v26 = v43;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3719 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3720 //v41 += 7;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3721 v40 += 6;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3722 v21 += 204;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3723 //++v20;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3724 //result = v20 - 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3725 v43 = v26 + 40;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3726 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3727 //while ( v20 - 1 < 4 );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3728 //return result;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3729 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3730
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3731 //----- (00419401) --------------------------------------------------------
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3732 void __cdecl CharacterUI_SkillScreen_Draw()
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3733 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3734 unsigned int v0; // ecx@3
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3735 GUIButton *pButton; // eax@3
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3736 GUIFont *v2; // eax@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3737 unsigned int v3; // esi@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3738 int v4; // eax@10
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3739 unsigned int v5; // esi@14
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3740 int v6; // eax@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3741 unsigned int v7; // esi@19
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3742 int v8; // eax@21
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3743 unsigned int v9; // esi@25
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3744 int v10; // eax@27
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3745 int a2; // [sp+10h] [bp-14h]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3746 int v12; // [sp+14h] [bp-10h]@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3747 int v13; // [sp+14h] [bp-10h]@19
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3748 int *v14; // [sp+18h] [bp-Ch]@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3749 int *v15; // [sp+18h] [bp-Ch]@14
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3750 int *v16; // [sp+18h] [bp-Ch]@19
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3751 int *v17; // [sp+18h] [bp-Ch]@25
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3752 Player *v18; // [sp+1Ch] [bp-8h]@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3753 int a5; // [sp+20h] [bp-4h]@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3754
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3755 a2 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3756 if ( dword_507CC0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3757 sub_4196A0();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3758 v0 = uActiveCharacter;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3759 dword_507CC0 = uActiveCharacter;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3760 for ( pButton = pGUIWindow_CurrentMenu->pControlsHead; pButton; pButton = pButton->pNext )
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 831
diff changeset
3761 {
dfd683c4f538 Hotkeys fixed
Nomad
parents: 831
diff changeset
3762 if ( pButton->msg == UIMSG_InventoryLeftClick )
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3763 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3764 dword_50698C = pButton->uX;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3765 dword_506988 = pButton->uY;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3766 dword_506984 = pButton->uZ;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3767 dword_506980 = pButton->uW;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3768 pButton->uW = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3769 pButton->uZ = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3770 pButton->uY = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3771 pButton->uX = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3772 v0 = uActiveCharacter;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3773 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3774 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3775 v12 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3776 a5 = pGUIWindow_CurrentMenu->uNumControls;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3777 v18 = &pParty->pPlayers[v0-1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3778 v2 = pFontLucida;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3779 v14 = pWeaponSkills;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3780 v3 = 2 * LOBYTE(pFontLucida->uFontHeight) + 13;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3781 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3782 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3783 if ( v18->pActiveSkills[*v14] & 0x3F )//crash
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3784 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3785 v4 = LOBYTE(v2->uFontHeight);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3786 v3 = v3 + v4 - 3;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3787 ++a2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3788 ++v12;
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 831
diff changeset
3789 pGUIWindow_CurrentMenu->CreateButton(0x18u, v3, 0xCCu, v4 - 3, 3, *v14 | 0x8000, UIMSG_SkillUp, *v14, 0, "", 0, 0);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3790 v2 = pFontLucida;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3791 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3792 ++v14;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3793 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3794 while ( v14 <= &pWeaponSkills[8] );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3795 if ( !v12 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3796 v3 = v3 + LOBYTE(v2->uFontHeight) - 3;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3797 v15 = pMagicSkills;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3798 v5 = v3 + 2 * LOBYTE(v2->uFontHeight) - 6;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3799 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3800 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3801 if ( v18->pActiveSkills[*v15] & 0x3F && a2 < 15 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3802 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3803 v6 = LOBYTE(v2->uFontHeight);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3804 v5 = v5 + v6 - 3;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3805 ++a2;
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 831
diff changeset
3806 pGUIWindow_CurrentMenu->CreateButton(0x18u, v5, 0xCCu, v6 - 3, 3, *v15 | 0x8000, UIMSG_SkillUp, *v15, 0, "", 0, 0);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3807 v2 = pFontLucida;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3808 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3809 ++v15;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3810 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3811 while ( v15 <= &pMagicSkills[8] );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3812 v13 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3813 v16 = pArmorSkills;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3814 v7 = 2 * LOBYTE(v2->uFontHeight) + 13;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3815 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3816 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3817 if ( v18->pActiveSkills[*v16] & 0x3F )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3818 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3819 v8 = LOBYTE(v2->uFontHeight);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3820 v7 = v7 + v8 - 3;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3821 ++a2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3822 ++v13;
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 831
diff changeset
3823 pGUIWindow_CurrentMenu->CreateButton(0xF6u, v7, 0xCCu, v8 - 3, 3, *v16 | 0x8000, UIMSG_SkillUp, *v16, 0, "", 0, 0);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3824 v2 = pFontLucida;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3825 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3826 ++v16;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3827 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3828 while ( v16 <= &pArmorSkills[4] );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3829 if ( !v13 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3830 v7 = v7 + LOBYTE(v2->uFontHeight) - 3;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3831 v17 = pMiscSkills;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3832 v9 = v7 + 2 * LOBYTE(v2->uFontHeight) - 6;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3833 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3834 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3835 if ( v18->pActiveSkills[*v17] & 0x3F )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3836 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3837 v10 = LOBYTE(v2->uFontHeight);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3838 v9 = v9 + v10 - 3;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3839 ++a2;
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 831
diff changeset
3840 pGUIWindow_CurrentMenu->CreateButton(0xF6u, v9, 0xCCu, v10 - 3, 3, *v17 | 0x8000, UIMSG_SkillUp, *v17, 0, "", 0, 0);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3841 v2 = pFontLucida;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3842 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3843 ++v17;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3844 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3845 while ( v17 <= &pMiscSkills[11] );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3846 if ( a2 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3847 pGUIWindow_CurrentMenu->_41D08F(a2, 1, 0, a5);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3848 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3849
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3850
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3851 //----- (00418511) --------------------------------------------------------
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3852 char __fastcall CharacterUI_StatsTab_Draw(unsigned int uPlayerID)
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3853 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3854 Player *pPlayer; // edi@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3855 unsigned int v2; // eax@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3856 unsigned int v3; // eax@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3857 unsigned int v4; // eax@2
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3858 int v5; // ST20_4@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3859 int v6; // ST1C_4@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3860 int v7; // ebp@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3861 int v8; // eax@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3862 unsigned int v9; // eax@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3863 int v10; // ST34_4@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3864 int v11; // ST20_4@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3865 int v12; // ST1C_4@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3866 int v13; // ebp@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3867 int v14; // eax@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3868 unsigned int v15; // eax@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3869 int v16; // ST34_4@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3870 int v17; // ST20_4@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3871 int v18; // ST1C_4@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3872 int v19; // ebp@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3873 int v20; // eax@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3874 unsigned int v21; // eax@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3875 int v22; // ST34_4@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3876 int v23; // ST20_4@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3877 int v24; // ST1C_4@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3878 int v25; // ebp@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3879 int v26; // eax@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3880 unsigned int v27; // eax@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3881 int v28; // ST34_4@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3882 int v29; // ST20_4@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3883 int v30; // ST1C_4@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3884 int v31; // ebp@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3885 int v32; // eax@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3886 unsigned int v33; // eax@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3887 int v34; // ST34_4@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3888 int v35; // ST20_4@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3889 int v36; // ST1C_4@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3890 int v37; // ebp@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3891 int v38; // eax@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3892 unsigned int v39; // eax@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3893 int v40; // ST34_4@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3894 int v41; // ST20_4@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3895 int v42; // ST1C_4@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3896 int v43; // ebp@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3897 int v44; // eax@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3898 unsigned int v45; // eax@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3899 int v46; // ebp@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3900 signed int v47; // ST20_4@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3901 int v48; // ST1C_4@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3902 signed int v49; // eax@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3903 unsigned int v50; // eax@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3904 int v51; // ST20_4@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3905 int v52; // ST1C_4@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3906 int v53; // eax@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3907 unsigned int v54; // eax@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3908 int v55; // ST34_4@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3909 int v56; // ST20_4@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3910 int v57; // ST1C_4@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3911 int v58; // ebp@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3912 int v59; // eax@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3913 unsigned int v60; // eax@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3914 unsigned int v61; // ebp@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3915 unsigned int v62; // eax@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3916 char *v63; // ST20_4@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3917 signed int v64; // eax@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3918 unsigned int v65; // ebp@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3919 unsigned __int8 v66; // al@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3920 char *v67; // eax@9
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3921 unsigned int v68; // ST20_4@11
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3922 unsigned int v69; // ST1C_4@11
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3923 signed int v70; // ebp@11
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3924 signed int v71; // eax@11
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3925 unsigned int v72; // eax@11
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3926 int v73; // ST20_4@13
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3927 int v74; // ST1C_4@13
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3928 int v75; // ebp@13
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3929 int v76; // eax@13
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3930 unsigned int v77; // eax@13
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3931 char *v78; // ecx@14
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3932 int v79; // ST20_4@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3933 char *v80; // ST40_4@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3934 unsigned int v81; // eax@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3935 int v82; // ST34_4@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3936 int v83; // eax@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3937 int v84; // ST34_4@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3938 char *v85; // eax@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3939 int v86; // ST34_4@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3940 int v87; // eax@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3941 int v88; // ST34_4@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3942 char *v89; // eax@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3943 int v90; // eax@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3944 int v91; // ST20_4@19
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3945 unsigned int v92; // eax@19
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3946 int v93; // eax@19
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3947 int v94; // ST20_4@22
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3948 unsigned int v95; // eax@22
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3949 int v96; // eax@22
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3950 int v97; // ST20_4@25
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3951 unsigned int v98; // eax@25
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3952 int v99; // eax@25
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3953 int v100; // ST20_4@27
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3954 unsigned int v101; // eax@27
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3955 int v102; // eax@27
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3956 int v103; // ST20_4@30
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3957 unsigned int v104; // eax@30
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3958 char *v105; // ST20_4@32
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3959 unsigned int v106; // eax@32
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3960 int v107; // eax@33
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3961 int v108; // ST20_4@36
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3962 unsigned int v109; // eax@36
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3963 char *v110; // ST20_4@38
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3964 unsigned int v111; // eax@38
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3965 int uY; // [sp+10h] [bp-10h]@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3966 int uYa; // [sp+10h] [bp-10h]@11
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3967 int uYb; // [sp+10h] [bp-10h]@13
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3968 int uYc; // [sp+10h] [bp-10h]@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3969 int uYd; // [sp+10h] [bp-10h]@19
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3970 int uYe; // [sp+10h] [bp-10h]@22
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3971 int uYf; // [sp+10h] [bp-10h]@25
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3972 int uYg; // [sp+10h] [bp-10h]@27
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3973 int uYh; // [sp+10h] [bp-10h]@33
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3974 const char *a2; // [sp+14h] [bp-Ch]@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3975 const char *a2a; // [sp+14h] [bp-Ch]@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3976 const char *a2b; // [sp+14h] [bp-Ch]@11
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3977 const char *a2c; // [sp+14h] [bp-Ch]@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3978 const char *a2d; // [sp+14h] [bp-Ch]@19
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3979 const char *a2e; // [sp+14h] [bp-Ch]@22
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3980 const char *a2f; // [sp+14h] [bp-Ch]@25
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3981 const char *a2g; // [sp+14h] [bp-Ch]@27
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3982 const char *a2h; // [sp+14h] [bp-Ch]@33
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3983 int v131; // [sp+18h] [bp-8h]@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3984 int v132; // [sp+18h] [bp-8h]@19
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3985 int v133; // [sp+18h] [bp-8h]@22
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3986 int v134; // [sp+18h] [bp-8h]@25
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3987 int v135; // [sp+18h] [bp-8h]@27
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3988 int v136; // [sp+18h] [bp-8h]@33
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3989 int v137; // [sp+1Ch] [bp-4h]@27
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3990 int v138; // [sp+1Ch] [bp-4h]@33
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3991
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3992 pPlayer = &pParty->pPlayers[uPlayerID-1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3993 v2 = pIcons_LOD->LoadTexture("fr_stats", TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3994 pRenderer->DrawTextureIndexed(8, 8, (Texture *)(v2 != -1 ? (int)&pIcons_LOD->pTextures[v2] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3995 v3 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3996 sprintf(pTmpBuf, "\f%05d", v3);
809
7bb33867d2cb Pv[] in sprintfex
Ritor1
parents: 727
diff changeset
3997 sprintfex(pTmpBuf2, pGlobalTXT_LocalizationStrings[429], pPlayer->pName, pClassNames[pPlayer->classType]);//^Pi[%s] %s
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3998 strcat(pTmpBuf, pTmpBuf2);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3999 if ( pPlayer->uSkillPoints )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4000 v4 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0xFFu, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4001 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4002 v4 = 0xFFFFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4003 sprintf(pTmpBuf2, "\f00000\r180%s: \f%05d%d\f00000\n\n\n", pGlobalTXT_LocalizationStrings[207], v4, pPlayer->uSkillPoints);//Skill points
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4004 strcat(pTmpBuf, pTmpBuf2);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4005 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, 18, 0, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4006 v5 = pPlayer->GetBaseStrength();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4007 v6 = pPlayer->GetActualMight();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4008 v7 = pPlayer->GetBaseStrength();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4009 v8 = pPlayer->GetActualMight();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4010 v9 = UI_GetHealthManaStringColor(v8, v7);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4011 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[144], v9, v6, v5);//Might
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4012 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, 53, 0, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4013 v10 = LOBYTE(pFontArrus->uFontHeight) + 51;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4014 v11 = pPlayer->GetBaseIntelligence();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4015 v12 = pPlayer->GetActualIntelligence();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4016 v13 = pPlayer->GetBaseIntelligence();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4017 v14 = pPlayer->GetActualIntelligence();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4018 v15 = UI_GetHealthManaStringColor(v14, v13);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4019 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[116], v15, v12, v11);//Intellect
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4020 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v10, 0, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4021 v16 = LOBYTE(pFontArrus->uFontHeight) + v10 - 2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4022 v17 = pPlayer->GetBaseWillpower();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4023 v18 = pPlayer->GetActualWillpower();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4024 v19 = pPlayer->GetBaseWillpower();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4025 v20 = pPlayer->GetActualWillpower();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4026 v21 = UI_GetHealthManaStringColor(v20, v19);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4027 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[163], v21, v18, v17);//
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4028 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v16, 0, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4029 v22 = LOBYTE(pFontArrus->uFontHeight) + v16 - 2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4030 v23 = pPlayer->GetBaseEndurance();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4031 v24 = pPlayer->GetActualEndurance();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4032 v25 = pPlayer->GetBaseEndurance();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4033 v26 = pPlayer->GetActualEndurance();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4034 v27 = UI_GetHealthManaStringColor(v26, v25);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4035 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[75], v27, v24, v23);//
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4036 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v22, 0, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4037 v28 = LOBYTE(pFontArrus->uFontHeight) + v22 - 2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4038 v29 = pPlayer->GetBaseAccuracy();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4039 v30 = pPlayer->GetActualAccuracy();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4040 v31 = pPlayer->GetBaseAccuracy();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4041 v32 = pPlayer->GetActualAccuracy();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4042 v33 = UI_GetHealthManaStringColor(v32, v31);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4043 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[1], v33, v30, v29);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4044 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v28, 0, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4045 v34 = LOBYTE(pFontArrus->uFontHeight) + v28 - 2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4046 v35 = pPlayer->GetBaseSpeed();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4047 v36 = pPlayer->GetActualSpeed();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4048 v37 = pPlayer->GetBaseSpeed();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4049 v38 = pPlayer->GetActualSpeed();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4050 v39 = UI_GetHealthManaStringColor(v38, v37);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4051 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[211], v39, v36, v35);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4052 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v34, 0, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4053 v40 = LOBYTE(pFontArrus->uFontHeight) + v34 - 2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4054 v41 = pPlayer->GetBaseLuck();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4055 v42 = pPlayer->GetActualLuck();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4056 v43 = pPlayer->GetBaseLuck();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4057 v44 = pPlayer->GetActualLuck();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4058 v45 = UI_GetHealthManaStringColor(v44, v43);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4059 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n\n", pGlobalTXT_LocalizationStrings[136], v45, v42, v41);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4060 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v40, 0, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4061 a2 = "%s\f%05u\r424%d\f00000 /\t185%d\n";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4062 v46 = v40 + 2 * LOBYTE(pFontArrus->uFontHeight) + 5;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4063 if ( pPlayer->GetMaxHealth() >= 1000 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4064 a2 = "%s\f%05u\r388%d\f00000 / %d\n";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4065 v47 = pPlayer->GetMaxHealth();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4066 v48 = pPlayer->sHealth;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4067 v49 = pPlayer->GetMaxHealth();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4068 v50 = UI_GetHealthManaStringColor(pPlayer->sHealth, v49);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4069 sprintf(pTmpBuf, a2, pGlobalTXT_LocalizationStrings[108], v50, v48, v47);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4070 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v46, 0, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4071 a2a = "%s\f%05u\r424%d\f00000 /\t185%d\n";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4072 uY = LOBYTE(pFontArrus->uFontHeight) + v46 - 2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4073 if ( pPlayer->GetMaxMana() >= 1000 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4074 a2a = "%s\f%05u\r388%d\f00000 / %d\n";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4075 v51 = pPlayer->GetMaxMana();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4076 v52 = pPlayer->sMana;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4077 v53 = pPlayer->GetMaxMana();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4078 v54 = UI_GetHealthManaStringColor(pPlayer->sMana, v53);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4079 sprintf(pTmpBuf, a2a, pGlobalTXT_LocalizationStrings[212], v54, v52, v51);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4080 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, uY, 0, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4081 v55 = LOBYTE(pFontArrus->uFontHeight) + uY - 2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4082 v56 = pPlayer->GetBaseAC();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4083 v57 = pPlayer->GetActualAC();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4084 v58 = pPlayer->GetBaseAC();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4085 v59 = pPlayer->GetActualAC();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4086 v60 = UI_GetHealthManaStringColor(v59, v58);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4087 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n\n", pGlobalTXT_LocalizationStrings[12], v60, v57, v56);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4088 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v55, 0, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4089 v61 = v55 + 2 * LOBYTE(pFontArrus->uFontHeight) - 2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4090 v62 = pPlayer->GetMajorConditionIdx();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4091 v63 = aCharacterConditionNames[v62];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4092 v64 = GetConditionDrawColor(v62);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4093 sprintf(pTmpBuf, "%s: \f%05d%s\n", pGlobalTXT_LocalizationStrings[47], v64, v63);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4094 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x1Au, v61, 0, pTmpBuf, 226, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4095 v65 = LOBYTE(pFontArrus->uFontHeight) + v61 - 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4096 v66 = pPlayer->uQuickSpell;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4097 if ( v66 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4098 v67 = pSpellStats->pInfos[v66].pShortName;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4099 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4100 v67 = pGlobalTXT_LocalizationStrings[153];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4101 sprintf(pTmpBuf, "%s: %s", pGlobalTXT_LocalizationStrings[172], v67);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4102 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x1Au, v65, 0, pTmpBuf, 226, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4103 v68 = pPlayer->GetBaseAge();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4104 v69 = pPlayer->GetActualAge();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4105 v70 = pPlayer->GetBaseAge();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4106 v71 = pPlayer->GetActualAge();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4107 v72 = UI_GetHealthManaStringColor(v71, v70);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4108 sprintf(pTmpBuf, "%s\f%05u\t100%d\f00000 / %d\n", pGlobalTXT_LocalizationStrings[5], v72, v69, v68);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4109 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, 50, 0, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4110 a2b = "%s\f%05u\t100%d\f00000 / %d\n";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4111 uYa = LOBYTE(pFontArrus->uFontHeight) + 48;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4112 if ( pPlayer->GetBaseLevel() > 99 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4113 a2b = format_4E2E68;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4114 v73 = pPlayer->GetBaseLevel();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4115 v74 = pPlayer->GetActualLevel();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4116 v75 = pPlayer->GetBaseLevel();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4117 v76 = pPlayer->GetActualLevel();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4118 v77 = UI_GetHealthManaStringColor(v76, v75);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4119 sprintf(pTmpBuf, a2b, pGlobalTXT_LocalizationStrings[131], v77, v74, v73);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4120 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, uYa, 0, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4121 uYb = uYa + LOBYTE(pFontArrus->uFontHeight) - 2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4122 if ( (signed __int64)pPlayer->uExperience <= 9999999 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4123 v78 = pGlobalTXT_LocalizationStrings[83];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4124 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4125 v78 = pGlobalTXT_LocalizationStrings[17];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4126 v79 = LODWORD(pPlayer->uExperience);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4127 v80 = v78;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4128 v81 = pPlayer->GetExperienceDisplayColor();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4129 sprintf(pTmpBuf, "%s\r180\f%05d%lu\f00000\n\n", v80, v81, v79);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4130 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, uYb, 0, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4131 v82 = uYb + 2 * LOBYTE(pFontArrus->uFontHeight);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4132 v83 = pPlayer->GetActualAttack(0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4133 sprintf(pTmpBuf, "%s\t100%+d\n", pGlobalTXT_LocalizationStrings[18], v83);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4134 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, v82, 0, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4135 v84 = v82 + LOBYTE(pFontArrus->uFontHeight) - 2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4136 v85 = pPlayer->GetMeleeDamageString();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4137 sprintf(pTmpBuf, "%s\t100 %s\n", pGlobalTXT_LocalizationStrings[53], v85);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4138 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, v84, 0, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4139 v86 = v84 + LOBYTE(pFontArrus->uFontHeight) - 2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4140 v87 = pPlayer->GetRangedAttack();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4141 sprintf(pTmpBuf, "%s\t100%+d\n", pGlobalTXT_LocalizationStrings[203], v87);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4142 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, v86, 0, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4143 v88 = v86 + LOBYTE(pFontArrus->uFontHeight) - 2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4144 v89 = pPlayer->GetRangedDamageString();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4145 sprintf(pTmpBuf, "%s\t100 %s\n\n", pGlobalTXT_LocalizationStrings[53], v89);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4146 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, v88, 0, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4147 a2c = format_4E2E10;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4148 uYc = v88 + 2 * LOBYTE(pFontArrus->uFontHeight) - 4;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4149 v131 = pPlayer->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_FIRE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4150 v90 = pPlayer->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_FIRE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4151 if ( v131 > 99 || v90 > 99 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4152 a2c = format_4E2E68;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4153 v91 = v90;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4154 v92 = UI_GetHealthManaStringColor(v131, v90);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4155 sprintf(pTmpBuf, a2c, pGlobalTXT_LocalizationStrings[87], v92, v131, v91);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4156 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, uYc, 0, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4157 a2d = format_4E2E10;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4158 uYd = uYc + LOBYTE(pFontArrus->uFontHeight) - 2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4159 v132 = pPlayer->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_AIR);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4160 v93 = pPlayer->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_AIR);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4161 if ( v132 > 99 || v93 > 99 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4162 a2d = format_4E2E68;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4163 v94 = v93;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4164 v95 = UI_GetHealthManaStringColor(v132, v93);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4165 sprintf(pTmpBuf, a2d, pGlobalTXT_LocalizationStrings[6], v95, v132, v94);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4166 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, uYd, 0, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4167 a2e = format_4E2E10;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4168 uYe = uYd + LOBYTE(pFontArrus->uFontHeight) - 2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4169 v133 = pPlayer->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_WATER);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4170 v96 = pPlayer->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_WATER);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4171 if ( v133 > 99 || v96 > 99 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4172 a2e = format_4E2E68;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4173 v97 = v96;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4174 v98 = UI_GetHealthManaStringColor(v133, v96);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4175 sprintf(pTmpBuf, a2e, pGlobalTXT_LocalizationStrings[240], v98, v133, v97);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4176 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, uYe, 0, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4177 a2f = format_4E2E10;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4178 uYf = uYe + LOBYTE(pFontArrus->uFontHeight) - 2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4179 v134 = pPlayer->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_EARTH);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4180 v99 = pPlayer->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_EARTH);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4181 if ( v134 > 99 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4182 a2f = format_4E2E68;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4183 v100 = v99;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4184 v101 = UI_GetHealthManaStringColor(v134, v99);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4185 sprintf(pTmpBuf, a2f, pGlobalTXT_LocalizationStrings[70], v101, v134, v100);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4186 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, uYf, 0, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4187 a2g = format_4E2E10;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4188 uYg = uYf + LOBYTE(pFontArrus->uFontHeight) - 2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4189 v135 = pPlayer->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_MIND);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4190 v102 = pPlayer->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_MIND);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4191 v137 = v102;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4192 if ( v135 > 99 || v102 > 99 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4193 a2g = format_4E2E68;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4194 v103 = v102;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4195 v104 = UI_GetHealthManaStringColor(v135, v102);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4196 sprintf(pTmpBuf, a2g, pGlobalTXT_LocalizationStrings[142], v104, v135, v103);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4197 if ( pPlayer->classType == PLAYER_CLASS_LICH && v137 == 200 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4198 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4199 v105 = pGlobalTXT_LocalizationStrings[625];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4200 v106 = UI_GetHealthManaStringColor(v135, 200);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4201 sprintf(pTmpBuf, format_4E2E00, pGlobalTXT_LocalizationStrings[142], v106, v105);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4202 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4203 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, uYg, 0, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4204 a2h = format_4E2E10;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4205 uYh = uYg + LOBYTE(pFontArrus->uFontHeight) - 2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4206 v136 = pPlayer->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_BODY);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4207 v107 = pPlayer->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_BODY);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4208 v138 = v107;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4209 if ( v136 > 99 || v107 > 99 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4210 a2h = format_4E2E68;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4211 v108 = v107;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4212 v109 = UI_GetHealthManaStringColor(v136, v107);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4213 sprintf(pTmpBuf, a2h, pGlobalTXT_LocalizationStrings[29], v109, v136, v108);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4214 if ( pPlayer->classType == PLAYER_CLASS_LICH && v138 == 200 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4215 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4216 v110 = pGlobalTXT_LocalizationStrings[625];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4217 v111 = UI_GetHealthManaStringColor(v136, 200);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4218 sprintf(pTmpBuf, format_4E2E00, pGlobalTXT_LocalizationStrings[29], v111, v110);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4219 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4220 return pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, uYh, 0, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4221 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4222
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4223 //----- (00419100) --------------------------------------------------------
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4224 void FillAwardsData()
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4225 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4226 Player *pPlayer; // esi@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4227
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4228 pPlayer = pPlayers[uActiveCharacter];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4229 memset(&achievedAwardsIndex, 0, 4000);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4230 memset(pTmpBuf2, 0, 0x7D0u);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4231 dword_506544 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4232 dword_506548 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4233 awards_count = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4234 dword_50651C = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4235 dword_506528 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4236 for(int i=0; i<105; ++i)
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4237 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4238 if ( _449B57_test_bit((unsigned char*)&pPlayer->_guilds_member_bits, i) && pAwards[i].pText )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4239 achievedAwardsIndex[awards_count++] = i;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4240 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4241 awards_count2 = awards_count;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4242 awards_count = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4243 //sort awards index
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4244 if ( awards_count2>0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4245 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4246 for(int i=0; i<awards_count2; ++i)
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4247 achievedAwardsIndex[awards_count2 + i] = rand() % 16;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4248
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4249 for(int i=1; i<awards_count2-1; ++i)
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4250 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4251 for (int j = i; j < awards_count2-1; ++j )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4252 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4253 int tmp=achievedAwardsIndex[j];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4254 if(pAwards[j].uSort < pAwards[i].uSort)
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4255 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4256 achievedAwardsIndex[j] = achievedAwardsIndex[i];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4257 achievedAwardsIndex[i] = tmp;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4258 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4259 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4260 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4261 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4262 }