annotate UICharacter.cpp @ 782:c47efaf23642

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