annotate UICharacter.cpp @ 980:a079c489118d

Speed Turn
author Ritor1
date Thu, 09 May 2013 21:19:59 +0600
parents c8a0f6d89c70
children 1462a5f12b65
rev   line source
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1 #include <assert.h>
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3 #include "MM7.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
5 #include "MapInfo.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
6 #include "Game.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
7 #include "GUIWindow.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
8 #include "GUIFont.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
9 #include "GUIProgressBar.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
10 #include "Party.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
11 #include "AudioPlayer.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
12 #include "Outdoor.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
13 #include "IndoorCamera.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
14 #include "Overlays.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
15 #include "Monsters.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
16 #include "Arcomage.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
17 #include "LOD.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
18 #include "Actor.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
19 #include "Allocator.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
20 #include "Events.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
21 #include "Viewport.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
22 #include "FrameTableInc.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
23 #include "Math.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
24 #include "SpriteObject.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
25 #include "ObjectList.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
26 #include "Chest.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
27 #include "PaletteManager.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
28 #include "DecorationList.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
29 #include "SaveLoad.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
30 #include "stru123.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
31 #include "Time.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
32 #include "IconFrameTable.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
33 #include "Awards.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
34 #include "Autonotes.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
35 #include "stru160.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
36 #include "TurnEngine.h"
924
a78f08dbeb88 CastSpellInfo
Ritor1
parents: 919
diff changeset
37 #include "CastSpellInfo.h"
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
38 #include "Weather.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
39 #include "stru298.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
40 #include "StorylineTextTable.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
41 #include "Events2D.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
42 #include "texts.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
43
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
44 #include "mm7_data.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
45
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
46
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
47
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
48
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
49
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
50 //----- (00419719) --------------------------------------------------------
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
51 char __fastcall CharacterUI_SkillsTab_Draw(unsigned int uPlayerID)
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 unsigned int v1; // esi@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
54 Player *pPlayer; // ebp@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
55 unsigned int v3; // eax@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
56 signed int v4; // ecx@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
57 int v5; // edi@3
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
58 GUIWindow *v6; // ecx@3
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
59 int v7; // eax@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
60 GUIButton *v8; // edx@5
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
61 int v9; // eax@7
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
62 unsigned int v10; // ecx@9
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
63 unsigned __int16 v11; // ax@9
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
64 int v12; // eax@9
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
65 unsigned __int8 v13; // cf@12
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
66 unsigned __int8 v14; // zf@12
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
67 unsigned int v15; // eax@12
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
68 char *v16; // ecx@22
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
69 GUIWindow *v17; // ecx@33
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
70 int v18; // edx@34
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
71 GUIButton *v19; // eax@35
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
72 int v20; // edx@37
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
73 unsigned __int16 v21; // cx@39
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
74 unsigned int v22; // eax@39
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
75 int v23; // edi@39
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
76 unsigned int v24; // eax@42
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
77 char v25; // sf@52
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
78 char *v26; // ecx@52
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
79 int v27; // edi@63
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
80 GUIWindow *v28; // ecx@63
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
81 int v29; // edx@64
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
82 GUIButton *v30; // eax@65
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
83 int v31; // edx@67
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
84 unsigned int v32; // ecx@69
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
85 int v33; // eax@69
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
86 unsigned int v34; // eax@72
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
87 char *v35; // ecx@82
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
88 GUIWindow *v36; // ecx@93
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
89 int v37; // edx@94
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
90 GUIButton *v38; // eax@94
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
91 int v39; // edx@97
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
92 unsigned __int16 v40; // cx@99
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
93 unsigned int v41; // eax@99
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
94 int v42; // edi@99
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
95 unsigned int v43; // eax@102
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
96 char *v44; // ecx@112
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
97 char *v46; // [sp-Ch] [bp-4Ch]@19
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
98 char *v47; // [sp-Ch] [bp-4Ch]@49
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
99 char *v48; // [sp-Ch] [bp-4Ch]@79
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
100 char *v49; // [sp-Ch] [bp-4Ch]@109
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
101 unsigned int v50; // [sp-8h] [bp-48h]@19
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
102 unsigned int v51; // [sp-8h] [bp-48h]@49
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
103 unsigned int v52; // [sp-8h] [bp-48h]@79
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
104 unsigned int v53; // [sp-8h] [bp-48h]@109
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
105 int v54; // [sp-4h] [bp-44h]@19
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
106 int v55; // [sp-4h] [bp-44h]@49
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
107 int v56; // [sp-4h] [bp-44h]@79
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
108 int v57; // [sp-4h] [bp-44h]@109
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
109 unsigned int v58; // [sp+10h] [bp-30h]@9
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
110 unsigned int v59; // [sp+10h] [bp-30h]@39
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
111 unsigned int v60; // [sp+10h] [bp-30h]@69
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
112 unsigned int v61; // [sp+10h] [bp-30h]@99
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
113 int v62; // [sp+14h] [bp-2Ch]@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
114 int v63; // [sp+14h] [bp-2Ch]@34
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
115 int v64; // [sp+14h] [bp-2Ch]@64
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
116 int v65; // [sp+14h] [bp-2Ch]@94
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
117 signed int i; // [sp+18h] [bp-28h]@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
118 signed int v67; // [sp+18h] [bp-28h]@34
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
119 signed int v68; // [sp+18h] [bp-28h]@64
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
120 signed int v69; // [sp+18h] [bp-28h]@94
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
121 int v70; // [sp+1Ch] [bp-24h]@3
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
122 int v71; // [sp+1Ch] [bp-24h]@33
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
123 int v72; // [sp+1Ch] [bp-24h]@63
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
124 int v73; // [sp+1Ch] [bp-24h]@93
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
125 int uY; // [sp+20h] [bp-20h]@9
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
126 int uYa; // [sp+20h] [bp-20h]@33
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
127 int uYb; // [sp+20h] [bp-20h]@69
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
128 int uYc; // [sp+20h] [bp-20h]@93
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
129 unsigned int a5; // [sp+24h] [bp-1Ch]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
130 unsigned int v79; // [sp+28h] [bp-18h]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
131 int *v80; // [sp+2Ch] [bp-14h]@3
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
132 int *v81; // [sp+2Ch] [bp-14h]@33
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
133 int *v82; // [sp+2Ch] [bp-14h]@63
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
134 int *v83; // [sp+2Ch] [bp-14h]@93
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
135 unsigned int v84; // [sp+30h] [bp-10h]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
136 int v85; // [sp+34h] [bp-Ch]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
137 unsigned int v86; // [sp+38h] [bp-8h]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
138 unsigned __int16 v87; // [sp+3Ch] [bp-4h]@9
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
139 char *v88; // [sp+3Ch] [bp-4h]@24
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
140 char *v89; // [sp+3Ch] [bp-4h]@54
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
141 unsigned __int16 v90; // [sp+3Ch] [bp-4h]@69
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
142 char *v91; // [sp+3Ch] [bp-4h]@84
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
143 char *v92; // [sp+3Ch] [bp-4h]@114
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
144
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
145 v1 = uPlayerID;
949
Nomad
parents: 948
diff changeset
146 a5 = TargetColor(0xFFu, 0xFFu, 0x9Bu);
Nomad
parents: 948
diff changeset
147 v84 = TargetColor(0, 0xAFu, 0xFFu);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
148 v85 = pGUIWindow_CurrentMenu->pCurrentPosActiveItem;
949
Nomad
parents: 948
diff changeset
149 v86 = TargetColor(0xFFu, 0, 0);
Nomad
parents: 948
diff changeset
150 v79 = TargetColor(0, 0xFFu, 0);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
151 pPlayer = &pParty->pPlayers[v1-1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
152 v3 = pIcons_LOD->LoadTexture("fr_skill", TEXTURE_16BIT_PALETTE);
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
153 pRenderer->DrawTextureIndexed(8, 8, pIcons_LOD->GetTexture(v3));
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
154 v4 = v79;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
155 if ( !pPlayer->uSkillPoints )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
156 v4 = 65535;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
157 sprintf(
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
158 pTmpBuf,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
159 "%s \f%05d%s\f00000\r177%s: \f%05d%d\f00000",
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
160 pGlobalTXT_LocalizationStrings[206], // Skills for
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
161 a5,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
162 pPlayer->pName,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
163 pGlobalTXT_LocalizationStrings[207], // Skill Points
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
164 v4,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
165 pPlayer->uSkillPoints);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
166 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 24, 18, 0, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
167 v5 = 2 * LOBYTE(pFontLucida->uFontHeight) + 13;// Weapons, Level
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
168 sprintf(pTmpBuf, "%s\r400%s", pGlobalTXT_LocalizationStrings[242], pGlobalTXT_LocalizationStrings[131]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
169 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 24, v5, a5, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
170 v6 = pGUIWindow_CurrentMenu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
171 v70 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
172 v80 = pWeaponSkills;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
173 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
174 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
175 v62 = *v80;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
176 v7 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
177 for ( i = 0; i < (signed int)v6->uNumControls; v7 = i++ + 1 )
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 v8 = v6->pControlsHead;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
180 if ( v7 > 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
181 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
182 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
183 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
184 v8 = v8->pNext;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
185 --v7;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
186 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
187 while ( v7 );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
188 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
189 v9 = v8->field_1C;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
190 if ( SBYTE1(v9) >= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
191 continue;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
192 BYTE1(v9) &= 0x7Fu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
193 if ( v9 != v62 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
194 continue;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
195 v5 = v8->uY;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
196 v10 = pPlayer->uSkillPoints;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
197 ++v70;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
198 v11 = pPlayer->pActiveSkills[v62];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
199 v87 = pPlayer->pActiveSkills[v62];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
200 v12 = v11 & 0x3F;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
201 v58 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
202 uY = v12;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
203 if ( v10 >= v12 + 1 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
204 v58 = v84;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
205 if ( v85 == i )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
206 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
207 v13 = v10 < v12;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
208 v14 = v10 == v12;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
209 v15 = v86;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
210 if ( !(v13 | v14) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
211 v15 = v79;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
212 v58 = v15;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
213 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
214 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
215 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
216 v15 = v58;
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 if ( HIBYTE(v87) & 1 )
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 if ( !v15 )
949
Nomad
parents: 948
diff changeset
221 v15 = TargetColor(0xFFu, 0xFFu, 0x9Bu);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
222 v54 = uY;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
223 v50 = v58;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
224 v46 = pGlobalTXT_LocalizationStrings[96];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
225 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
226 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
227 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
228 if ( !(v87 & 0xC0) )
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 sprintf(pTmpBuf, "%s\r400%2d", pSkillNames[v62], uY);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
231 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 24, v5, v58, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
232 v6 = pGUIWindow_CurrentMenu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
233 continue;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
234 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
235 v16 = pGlobalTXT_LocalizationStrings[432];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
236 if ( (v87 & 0x80u) == 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
237 v16 = pGlobalTXT_LocalizationStrings[433];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
238 v88 = v16;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
239 if ( !v15 )
949
Nomad
parents: 948
diff changeset
240 v15 = TargetColor(0xFFu, 0xFFu, 0x9Bu);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
241 v54 = uY;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
242 v50 = v58;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
243 v46 = v88;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
244 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
245 sprintf(pTmpBuf, "%s ", pSkillNames[v62], v15, v46, v50, v54);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
246 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 24, v5, v58, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
247 v6 = pGUIWindow_CurrentMenu;
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 ++v80;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
250 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
251 while ( v80 <= &pWeaponSkills[8]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
252 if ( !v70 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
253 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
254 v5 = v5 + LOBYTE(pFontLucida->uFontHeight) - 3;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
255 v6->DrawText(pFontLucida, 24, v5, 0, pGlobalTXT_LocalizationStrings[153], 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
256 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
257 uYa = v5 + 2 * LOBYTE(pFontLucida->uFontHeight) - 10;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
258 sprintf(pTmpBuf, "%s\r400%s", pGlobalTXT_LocalizationStrings[138], pGlobalTXT_LocalizationStrings[131]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
259 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 24, uYa, a5, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
260 v17 = pGUIWindow_CurrentMenu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
261 v71 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
262 v81 = pMagicSkills;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
263 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
264 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
265 v18 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
266 v67 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
267 v63 = *v81;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
268 while ( v67 < (signed int)v17->uNumControls )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
269 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
270 v19 = v17->pControlsHead;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
271 if ( v18 > 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
272 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
273 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
274 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
275 v19 = v19->pNext;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
276 --v18;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
277 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
278 while ( v18 );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
279 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
280 v20 = v19->field_1C;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
281 if ( SBYTE1(v20) >= 0 || (BYTE1(v20) &= 0x7Fu, v20 != v63) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
282 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
283 v18 = v67++ + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
284 continue;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
285 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
286 ++v71;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
287 uYa = v19->uY;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
288 v21 = pPlayer->pActiveSkills[v63];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
289 v22 = pPlayer->uSkillPoints;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
290 v23 = pPlayer->pActiveSkills[v63] & 0x3F;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
291 v59 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
292 if ( v22 >= v23 + 1 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
293 v59 = v84;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
294 if ( v85 == v67 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
295 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
296 v13 = v22 < v23;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
297 v14 = v22 == v23;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
298 v24 = v86;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
299 if ( !(v13 | v14) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
300 v24 = v79;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
301 v59 = v24;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
302 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
303 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
304 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
305 v24 = v59;
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 if ( HIBYTE(v21) & 1 )
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 if ( !v24 )
949
Nomad
parents: 948
diff changeset
310 v24 = TargetColor(0xFFu, 0xFFu, 0x9Bu);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
311 v55 = v23;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
312 v51 = v59;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
313 v47 = pGlobalTXT_LocalizationStrings[96];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
314 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
315 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
316 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
317 if ( !(v21 & 0xC0) )
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 sprintf(pTmpBuf, "%s\r400%2d", pSkillNames[v63], v23);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
320 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 24, uYa, v59, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
321 v17 = pGUIWindow_CurrentMenu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
322 v18 = v67++ + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
323 continue;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
324 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
325 v25 = (v21 & 0x80u) != 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
326 v26 = pGlobalTXT_LocalizationStrings[432];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
327 if ( !v25 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
328 v26 = pGlobalTXT_LocalizationStrings[433];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
329 v89 = v26;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
330 if ( !v24 )
949
Nomad
parents: 948
diff changeset
331 v24 = TargetColor(0xFFu, 0xFFu, 0x9Bu);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
332 v55 = v23;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
333 v51 = v59;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
334 v47 = v89;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
335 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
336 sprintf(pTmpBuf, "%s ", pSkillNames[v63], v24, v47, v51, v55);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
337 //LABEL_58:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
338 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 24, uYa, v59, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
339 v17 = pGUIWindow_CurrentMenu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
340 //LABEL_59:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
341 v18 = v67++ + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
342 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
343 ++v81;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
344 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
345 while ( v81 <= &pMagicSkills[8]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
346 if ( !v71 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
347 v17->DrawText(
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
348 pFontLucida,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
349 24,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
350 LOBYTE(pFontLucida->uFontHeight) + uYa - 3,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
351 0,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
352 pGlobalTXT_LocalizationStrings[153],
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
353 0,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
354 0,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
355 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
356 v27 = 2 * LOBYTE(pFontLucida->uFontHeight) + 13;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
357 sprintf(pTmpBuf, "%s\r177%s", pGlobalTXT_LocalizationStrings[11], pGlobalTXT_LocalizationStrings[131]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
358 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 248, v27, a5, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
359 v28 = pGUIWindow_CurrentMenu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
360 v72 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
361 v82 = pArmorSkills;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
362 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
363 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
364 v29 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
365 v68 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
366 v64 = *v82;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
367 while ( v68 < (signed int)v28->uNumControls )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
368 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
369 v30 = v28->pControlsHead;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
370 if ( v29 > 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
371 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
372 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
373 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
374 v30 = v30->pNext;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
375 --v29;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
376 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
377 while ( v29 );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
378 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
379 v31 = v30->field_1C;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
380 if ( SBYTE1(v31) >= 0 || (BYTE1(v31) &= 0x7Fu, v31 != v64) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
381 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
382 v29 = v68++ + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
383 continue;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
384 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
385 v27 = v30->uY;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
386 ++v72;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
387 v60 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
388 v90 = pPlayer->pActiveSkills[v64];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
389 v32 = pPlayer->uSkillPoints;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
390 v33 = pPlayer->pActiveSkills[v64] & 0x3F;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
391 uYb = v33;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
392 if ( v32 >= v33 + 1 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
393 v60 = v84;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
394 if ( v85 == v68 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
395 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
396 v13 = v32 < v33;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
397 v14 = v32 == v33;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
398 v34 = v86;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
399 if ( !(v13 | v14) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
400 v34 = v79;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
401 v60 = v34;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
402 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
403 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
404 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
405 v34 = v60;
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 if ( (pPlayer->pActiveSkills[v64] >> 8) & 1 )
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 if ( !v34 )
949
Nomad
parents: 948
diff changeset
410 v34 = TargetColor(0xFFu, 0xFFu, 0x9Bu);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
411 v56 = uYb;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
412 v52 = v60;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
413 v48 = pGlobalTXT_LocalizationStrings[96];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
414 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
415 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
416 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
417 if ( !(v90 & 0xC0) )
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 sprintf(pTmpBuf, "%s\r177%2d", pSkillNames[v64], uYb);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
420 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 248, v27, v60, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
421 v28 = pGUIWindow_CurrentMenu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
422 v29 = v68++ + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
423 continue;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
424 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
425 v35 = pGlobalTXT_LocalizationStrings[432];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
426 if ( (v90 & 0x80u) == 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
427 v35 = pGlobalTXT_LocalizationStrings[433];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
428 v91 = v35;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
429 if ( !v34 )
949
Nomad
parents: 948
diff changeset
430 v34 = TargetColor(0xFFu, 0xFFu, 0x9Bu);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
431 v56 = uYb;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
432 v52 = v60;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
433 v48 = v91;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
434 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
435 sprintf(pTmpBuf, "%s ", pSkillNames[v64], v34, v48, v52, v56);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
436 //LABEL_88:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
437 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 248, v27, v60, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
438 v28 = pGUIWindow_CurrentMenu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
439 //LABEL_89:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
440 v29 = v68++ + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
441 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
442 ++v82;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
443 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
444 while ( v82 <= &pArmorSkills[4]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
445 if ( !v72 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
446 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
447 v27 = v27 + LOBYTE(pFontLucida->uFontHeight) - 3;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
448 v28->DrawText(pFontLucida, 248, v27, 0, pGlobalTXT_LocalizationStrings[153], 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
449 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
450 uYc = v27 + 2 * LOBYTE(pFontLucida->uFontHeight) - 10;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
451 sprintf(pTmpBuf, "%s\r177%s", pGlobalTXT_LocalizationStrings[143], pGlobalTXT_LocalizationStrings[131]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
452 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 248, uYc, a5, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
453 v36 = pGUIWindow_CurrentMenu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
454 v73 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
455 v83 = pMiscSkills;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
456 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
457 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
458 v37 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
459 v69 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
460 v38 = (GUIButton *)*v83;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
461 v65 = *v83;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
462 while ( v69 < (signed int)v36->uNumControls )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
463 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
464 v38 = v36->pControlsHead;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
465 if ( v37 > 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
466 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
467 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
468 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
469 v38 = v38->pNext;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
470 --v37;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
471 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
472 while ( v37 );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
473 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
474 v39 = v38->field_1C;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
475 if ( SBYTE1(v39) >= 0 || (BYTE1(v39) &= 0x7Fu, v39 != v65) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
476 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
477 //goto LABEL_119;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
478 v37 = v69++ + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
479 continue;
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 ++v73;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
482 uYc = v38->uY;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
483 v40 = pPlayer->pActiveSkills[v65];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
484 v41 = pPlayer->uSkillPoints;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
485 v42 = pPlayer->pActiveSkills[v65] & 0x3F;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
486 v61 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
487 if ( v41 >= v42 + 1 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
488 v61 = v84;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
489 if ( v85 == v69 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
490 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
491 v13 = v41 < v42;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
492 v14 = v41 == v42;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
493 v43 = v86;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
494 if ( !(v13 | v14) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
495 v43 = v79;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
496 v61 = v43;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
497 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
498 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
499 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
500 v43 = v61;
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 if ( HIBYTE(v40) & 1 )
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 if ( !v43 )
949
Nomad
parents: 948
diff changeset
505 v43 = TargetColor(0xFFu, 0xFFu, 0x9Bu);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
506 v57 = v42;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
507 v53 = v61;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
508 v49 = pGlobalTXT_LocalizationStrings[96];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
509 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
510 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
511 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
512 if ( !(v40 & 0xC0) )
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 sprintf(pTmpBuf, "%s\r177%2d", pSkillNames[v65], v42);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
515 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
516 v36 = pGUIWindow_CurrentMenu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
517 v37 = v69++ + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
518 continue;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
519 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
520 v25 = (v40 & 0x80u) != 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
521 v44 = pGlobalTXT_LocalizationStrings[432];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
522 if ( !v25 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
523 v44 = pGlobalTXT_LocalizationStrings[433];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
524 v92 = v44;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
525 if ( !v43 )
949
Nomad
parents: 948
diff changeset
526 v43 = TargetColor(0xFFu, 0xFFu, 0x9Bu);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
527 v57 = v42;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
528 v53 = v61;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
529 v49 = v92;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
530 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
531 sprintf(pTmpBuf, "%s ", pSkillNames[v65], v43, v49, v53, v57);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
532 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
533 v36 = pGUIWindow_CurrentMenu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
534 v37 = v69++ + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
535 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
536 ++v83;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
537 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
538 while ( v83 <= &pMiscSkills[11]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
539 if ( !v73 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
540 LOBYTE(v38) = v36->DrawText(
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
541 pFontLucida,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
542 248,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
543 LOBYTE(pFontLucida->uFontHeight) + uYc - 3,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
544 0,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
545 pGlobalTXT_LocalizationStrings[153],
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
546 0,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
547 0,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
548 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
549 return (char)v38;
949
Nomad
parents: 948
diff changeset
550 }
Nomad
parents: 948
diff changeset
551
Nomad
parents: 948
diff changeset
552
Nomad
parents: 948
diff changeset
553
Nomad
parents: 948
diff changeset
554
Nomad
parents: 948
diff changeset
555
Nomad
parents: 948
diff changeset
556
Nomad
parents: 948
diff changeset
557 unsigned int GetAwardColor(unsigned int priority)
Nomad
parents: 948
diff changeset
558 {
Nomad
parents: 948
diff changeset
559 static unsigned __int8 pAwardsTextColors[6][3] =
Nomad
parents: 948
diff changeset
560 {
Nomad
parents: 948
diff changeset
561 {248, 108, 160},
Nomad
parents: 948
diff changeset
562 {112, 220, 248},
Nomad
parents: 948
diff changeset
563 {192, 192, 240},
Nomad
parents: 948
diff changeset
564 { 64, 244, 96},
Nomad
parents: 948
diff changeset
565 {232, 244, 96},
Nomad
parents: 948
diff changeset
566 {240, 252, 192}
Nomad
parents: 948
diff changeset
567 };
Nomad
parents: 948
diff changeset
568
Nomad
parents: 948
diff changeset
569 return TargetColor(pAwardsTextColors[priority % 6][0],
Nomad
parents: 948
diff changeset
570 pAwardsTextColors[priority % 6][1],
Nomad
parents: 948
diff changeset
571 pAwardsTextColors[priority % 6][2]);
Nomad
parents: 948
diff changeset
572 }
Nomad
parents: 948
diff changeset
573
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
574
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
575 //----- (0041A000) --------------------------------------------------------
949
Nomad
parents: 948
diff changeset
576 void CharacterUI_AwardsTab_Draw(unsigned int uPlayerID)
Nomad
parents: 948
diff changeset
577 {
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
578 //unsigned int v1; // esi@1
949
Nomad
parents: 948
diff changeset
579 //unsigned int v2; // ebx@1
Nomad
parents: 948
diff changeset
580 //unsigned int award_texture_id; // eax@1
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
581 unsigned int result; // eax@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
582 int v5; // eax@15
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
583 char *v6; // ebx@15
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
584 int v7; // eax@23
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
585 int v8; // eax@24
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
586 int v9; // eax@25
949
Nomad
parents: 948
diff changeset
587 //int v10; // eax@27
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
588 int v11; // eax@32
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
589 int v12; // eax@33
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
590 int v13; // eax@34
949
Nomad
parents: 948
diff changeset
591 //signed int v14; // eax@43
Nomad
parents: 948
diff changeset
592 //unsigned int v15; // eax@43
Nomad
parents: 948
diff changeset
593 //int v16; // eax@43
Nomad
parents: 948
diff changeset
594 //int v17; // [sp-4h] [bp-D4h]@16
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
595 char Source[100]; // [sp+Ch] [bp-C4h]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
596 GUIWindow a1; // [sp+70h] [bp-60h]@1
949
Nomad
parents: 948
diff changeset
597 //unsigned int v20; // [sp+C4h] [bp-Ch]@15
Nomad
parents: 948
diff changeset
598 //int v21; // [sp+C8h] [bp-8h]@14
Nomad
parents: 948
diff changeset
599 //int v22; // [sp+CCh] [bp-4h]@40
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
600
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
601 auto player = &pParty->pPlayers[uPlayerID - 1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
602 //v1 = uPlayerID;
949
Nomad
parents: 948
diff changeset
603 pRenderer->DrawTextureIndexed(8, 8, pIcons_LOD->LoadTexturePtr("fr_award", TEXTURE_16BIT_PALETTE));
Nomad
parents: 948
diff changeset
604 sprintfex(pTmpBuf, "%s \f%05d", pGlobalTXT_LocalizationStrings[LOCSTR_AVARDS_FOR], TargetColor(0xFF, 0xFF, 0x9B));
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
605 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
606 strcat(pTmpBuf, Source);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
607 strcat(pTmpBuf, "\f00000");
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
608 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 24, 18, 0, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
609 result = dword_506528;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
610 a1.uFrameX = 12;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
611 a1.uFrameY = 48;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
612 a1.uFrameWidth = 424;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
613 a1.uFrameHeight = 290;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
614 a1.uFrameZ = 435;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
615 a1.uFrameW = 337;
949
Nomad
parents: 948
diff changeset
616 if ( dword_506544 && num_achieved_awards + dword_506528 < num_achieved_awards_2 )
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
617 result = dword_506528++ + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
618 if ( dword_506548 && result )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
619 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
620 --result;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
621 dword_506528 = result;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
622 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
623 if ( dword_50651C < 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
624 {
949
Nomad
parents: 948
diff changeset
625 result += num_achieved_awards;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
626 dword_506528 = result;
949
Nomad
parents: 948
diff changeset
627 if ( (signed int)(num_achieved_awards + result) > num_achieved_awards_2 )
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
628 {
949
Nomad
parents: 948
diff changeset
629 result = num_achieved_awards_2 - num_achieved_awards;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
630 dword_506528 = result;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
631 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
632 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
633 else if ( dword_50651C > 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
634 {
949
Nomad
parents: 948
diff changeset
635 result -= num_achieved_awards;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
636 dword_506528 = result;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
637 if ( (result & 0x80000000u) != 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
638 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
639 result = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
640 dword_506528 = result;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
641 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
642 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
643 //LABEL_14:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
644 dword_506544 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
645 dword_506548 = 0;
949
Nomad
parents: 948
diff changeset
646 num_achieved_awards = 0;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
647 dword_50651C = 0;
949
Nomad
parents: 948
diff changeset
648
Nomad
parents: 948
diff changeset
649
Nomad
parents: 948
diff changeset
650 for (uint i = result; i < num_achieved_awards_2; ++i)
Nomad
parents: 948
diff changeset
651 {
Nomad
parents: 948
diff changeset
652 v5 = achieved_awards[i];
Nomad
parents: 948
diff changeset
653 v6 = (char *)pAwards[v5].pText;//(char *)dword_723E80_award_related[v20 / 4];
Nomad
parents: 948
diff changeset
654
Nomad
parents: 948
diff changeset
655 pTmpBuf[0] = 0;
Nomad
parents: 948
diff changeset
656 switch (v5)
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
657 {
949
Nomad
parents: 948
diff changeset
658 case Award_Arena_PageWins: sprintf(pTmpBuf, v6, pParty->uNumArenaPageWins); break;
Nomad
parents: 948
diff changeset
659 case Award_Arena_SquireWins: sprintf(pTmpBuf, v6, pParty->uNumArenaSquireWins); break;
Nomad
parents: 948
diff changeset
660 case Award_Arena_KnightWins: sprintf(pTmpBuf, v6, pParty->uNumArenaKnightWins); break;
Nomad
parents: 948
diff changeset
661 case Award_Arena_LordWins: sprintf(pTmpBuf, v6, pParty->uNumArenaLordWins); break;
Nomad
parents: 948
diff changeset
662 case Award_ArcomageWins: sprintf(pTmpBuf, v6, pParty->uNumArcomageWins); break;
Nomad
parents: 948
diff changeset
663 case Award_ArcomageLoses: sprintf(pTmpBuf, v6, pParty->uNumArcomageLoses); break;
Nomad
parents: 948
diff changeset
664 case Award_Deaths: sprintf(pTmpBuf, v6, pParty->uNumDeaths); break;
Nomad
parents: 948
diff changeset
665 case Award_BountiesCollected: sprintf(pTmpBuf, v6, pParty->uNumBountiesCollected); break;
Nomad
parents: 948
diff changeset
666 case Award_Fine: sprintf(pTmpBuf, v6, pParty->uFine); break;
Nomad
parents: 948
diff changeset
667 case Award_PrisonTerms: sprintf(pTmpBuf, v6, pParty->uNumPrisonTerms); break;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
668 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
669
949
Nomad
parents: 948
diff changeset
670 if (*pTmpBuf)
Nomad
parents: 948
diff changeset
671 v6 = pTmpBuf;
Nomad
parents: 948
diff changeset
672
Nomad
parents: 948
diff changeset
673
Nomad
parents: 948
diff changeset
674 a1.DrawText(pFontArrus, 0, 0, GetAwardColor(pAwards[v5].uPriority), v6, 0, 0, 0);
Nomad
parents: 948
diff changeset
675 a1.uFrameY = pFontArrus->CalcTextHeight(v6, &a1, 0, 0) + a1.uFrameY + 4;
Nomad
parents: 948
diff changeset
676 if (a1.uFrameY > a1.uFrameHeight)
Nomad
parents: 948
diff changeset
677 break;
Nomad
parents: 948
diff changeset
678
Nomad
parents: 948
diff changeset
679 ++num_achieved_awards;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
680 }
949
Nomad
parents: 948
diff changeset
681 }
706
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
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
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
686
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
687
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
688 //----- (0041A2C1) --------------------------------------------------------
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
689 unsigned int __fastcall GetSizeInInventorySlots(unsigned int uNumPixels)
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
690 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
691 if ( (signed int)uNumPixels < 14 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
692 uNumPixels = 14;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
693 return ((signed int)(uNumPixels - 14) >> 5) + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
694 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
695
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
696 //----- (0041A2D1) --------------------------------------------------------
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
697 void __fastcall CharacterUI_InventoryTab_Draw(unsigned int uPlayerID, char a2)
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 Player *pPlayer; // esi@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
700 char v3; // bl@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
701 unsigned int v4; // eax@2
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
702 ItemGen *pItem; // ebx@5
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
703 unsigned int v6; // eax@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
704 Texture *v7; // esi@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
705 __int16 v8; // ax@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
706 signed int v9; // edi@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
707 signed int v10; // ecx@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
708 signed int v11; // edx@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
709 signed int v12; // eax@11
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
710 int v13; // eax@13
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
711 signed int v14; // edx@13
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
712 int v15; // eax@13
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
713 unsigned int v16; // ebx@15
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
714 unsigned int v17; // edi@15
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
715 Texture *pTexture; // ebx@24
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
716 double v19; // st7@26
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
717 const char *v20; // [sp-8h] [bp-40h]@20
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
718 Player *pPlayer2; // [sp+14h] [bp-24h]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
719 int uTextureId; // [sp+18h] [bp-20h]@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
720 int *v23; // [sp+1Ch] [bp-1Ch]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
721 int v24; // [sp+20h] [bp-18h]@5
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
722 ItemGen *pItem2; // [sp+24h] [bp-14h]@5
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
723 int v26; // [sp+28h] [bp-10h]@3
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
724 unsigned int uCellID; // [sp+2Ch] [bp-Ch]@3
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
725 unsigned int uCellX; // [sp+30h] [bp-8h]@5
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
726 unsigned int uCellY; // [sp+34h] [bp-4h]@5
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 v23 = pRenderer->pActiveZBuffer;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
729 pPlayer = pPlayers[uPlayerID];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
730 v3 = a2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
731 pPlayer2 = pPlayers[uPlayerID];
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
732 pRenderer->DrawTextureIndexed(8, 8, pIcons_LOD->GetTexture(uTextureID_507958));
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
733 if ( v3 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
734 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
735 v4 = pIcons_LOD->LoadTexture("fr_strip", TEXTURE_16BIT_PALETTE);
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
736 pRenderer->DrawTextureIndexed(8u, 0x131u, pIcons_LOD->GetTexture(v4));
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
737 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
738 uCellID = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
739 v26 = (int)pPlayer->pInventoryIndices;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
740 do
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 if ( *(int *)v26 > 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
743 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
744 v24 = *(int *)v26 - 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
745 uCellY = 32 * (uCellID / 14) + 17;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
746 pItem = &pPlayer->pInventoryItems[v24];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
747 uCellX = 32 * (uCellID % 14) + 14;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
748 pItem2 = pItem;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
749 if ( pItem->uItemID )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
750 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
751 v6 = pIcons_LOD->LoadTexture(pItemsTable->pItems[pItem->uItemID].pIconName, TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
752 uTextureId = v6;
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
753 v7 = pIcons_LOD->GetTexture(v6);
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
754 v8 = v7->uTextureWidth;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
755 v9 = v7->uTextureHeight;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
756 v10 = v7->uTextureWidth;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
757 v11 = v7->uTextureWidth;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
758 if ( v10 < 14 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
759 v11 = 14;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
760 if ( (v11 - 14) >> 5 == 0 && v8 < 32 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
761 uCellX += (32 - v10) / 2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
762 v12 = v7->uTextureWidth;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
763 if ( v10 < 14 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
764 v12 = 14;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
765 v13 = v12 - 14;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
766 v14 = v7->uTextureHeight;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
767 LOBYTE(v13) = v13 & 0xE0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
768 v15 = v13 + 32;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
769 if ( v9 < 14 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
770 v14 = 14;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
771 v16 = pItem->uAttributes;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
772 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
773 if ( !(v16 & 0xF0) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
774 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
775 if (pItem->Identified() || pCurrentScreen != SCREEN_HOUSE )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
776 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
777 if (pItem->Broken())
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
778 pRenderer->DrawTransparentRedShade(uCellX, uCellY, v7);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
779 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
780 pRenderer->DrawTextureTransparent(uCellX, uCellY, v7);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
781 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
782 else
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 pRenderer->DrawTransparentGreenShade(uCellX, uCellY, v7);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
785 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
786 ZBuffer_Fill(&v23[v17], uTextureId, v24 + 1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
787 pPlayer = pPlayer2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
788 //goto LABEL_34;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
789 ++uCellID;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
790 v26 += 4;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
791 continue;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
792 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
793 if ( (unsigned __int8)(v16 & 0xF0) != 16 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
794 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
795 if ( (unsigned __int8)(v16 & 0xF0) == 32 )
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 v20 = "sp28a";
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
798 pTexture = pIcons_LOD->LoadTexturePtr(v20, TEXTURE_16BIT_PALETTE);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
799 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
800 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
801 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
802 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
803 LOBYTE(pItem2->uAttributes) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
804 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
805 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
806 v19 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
807 pRenderer->_4A63E6(uCellX, uCellY, v7, pTexture, (signed __int64)v19, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
808 ZBuffer_Fill(&v23[v17], uTextureId, v24 + 1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
809 pPlayer = pPlayer2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
810 //goto LABEL_34;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
811 ++uCellID;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
812 v26 += 4;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
813 continue;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
814 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
815 if ( (unsigned __int8)(v16 & 0xF0) == 64 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
816 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
817 v20 = "sp30a";
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
818 pTexture = pIcons_LOD->LoadTexturePtr(v20, TEXTURE_16BIT_PALETTE);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
819 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
820 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
821 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
822 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
823 LOBYTE(pItem2->uAttributes) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
824 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
825 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
826 v19 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
827 pRenderer->_4A63E6(uCellX, uCellY, v7, pTexture, (signed __int64)v19, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
828 ZBuffer_Fill(&v23[v17], uTextureId, v24 + 1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
829 pPlayer = pPlayer2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
830 //goto LABEL_34;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
831 ++uCellID;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
832 v26 += 4;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
833 continue;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
834 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
835 if ( (unsigned __int8)(v16 & 0xF0) == 128 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
836 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
837 v20 = "sp91a";
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
838 pTexture = pIcons_LOD->LoadTexturePtr(v20, TEXTURE_16BIT_PALETTE);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
839 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
840 if ( dword_50C9A8 <= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
841 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
842 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
843 LOBYTE(pItem2->uAttributes) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
844 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
845 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
846 v19 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
847 pRenderer->_4A63E6(uCellX, uCellY, v7, pTexture, (signed __int64)v19, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
848 ZBuffer_Fill(&v23[v17], uTextureId, v24 + 1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
849 pPlayer = pPlayer2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
850 //goto LABEL_34;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
851 ++uCellID;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
852 v26 += 4;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
853 continue;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
854 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
855 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
856 v20 = "sptext01";
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
857 pTexture = pIcons_LOD->LoadTexturePtr(v20, TEXTURE_16BIT_PALETTE);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
858 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
859 if ( dword_50C9A8 <= 0 )
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 dword_50C9A8 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
862 LOBYTE(pItem2->uAttributes) &= 0xFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
863 ptr_50C9A4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
864 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
865 v19 = (double)GetTickCount() * 0.1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
866 pRenderer->_4A63E6(uCellX, uCellY, v7, pTexture, (signed __int64)v19, 0, 255);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
867 ZBuffer_Fill(&v23[v17], uTextureId, v24 + 1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
868 pPlayer = pPlayer2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
869 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
870 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
871 //LABEL_34:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
872 ++uCellID;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
873 v26 += 4;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
874 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
875 while ( uCellID < 126 );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
876 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
877
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
878 //----- (0041A556) --------------------------------------------------------
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
879 void __cdecl draw_leather()
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 pRenderer->DrawTextureIndexed(8, 8, pIcons_LOD->GetTexture(uTextureID_Leather));
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
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
884 //----- (0041A57E) --------------------------------------------------------
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
885 void QuickRefDraw()
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
886 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
887 unsigned int v0; // ebx@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
888 //unsigned int v1; // eax@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
889 Player *pPlayer; // ebp@2
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
890 int v3; // eax@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
891 int v4; // edi@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
892 unsigned int v5; // eax@7
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
893 unsigned int v6; // edi@9
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
894 unsigned int v7; // edi@11
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
895 signed int v8; // eax@13
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
896 unsigned int v9; // eax@13
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
897 unsigned int v10; // edi@13
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
898 int v11; // eax@15
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
899 unsigned int v12; // eax@15
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
900 unsigned int v13; // edi@15
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
901 int v14; // eax@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
902 int v15; // ST18_4@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
903 int v16; // ebx@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
904 int v17; // eax@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
905 unsigned int v18; // eax@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
906 unsigned int v19; // edi@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
907 int v20; // eax@19
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
908 unsigned int v21; // edi@19
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
909 char *v22; // eax@21
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
910 unsigned int v23; // edi@21
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
911 int v24; // eax@23
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
912 unsigned int v25; // edi@23
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
913 char *v26; // eax@25
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
914 unsigned int v27; // edi@25
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
915 int v28; // ecx@27
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
916 char *v29; // eax@27
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
917 signed int v30; // edx@27
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
918 unsigned int v31; // edi@31
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
919 unsigned int v32; // edi@33
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
920 const char *v33; // ST10_4@35
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
921 unsigned int v34; // eax@35
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
922 unsigned int v35; // edi@35
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
923 unsigned __int8 v36; // al@37
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
924 char *v37; // eax@38
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
925 int v38; // eax@41
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
926 signed int v39; // edi@42
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
927 char *v40; // eax@45
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
928 unsigned int v41; // eax@45
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
929 signed int v43; // [sp+10h] [bp-1Ch]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
930 unsigned int v44; // [sp+14h] [bp-18h]@2
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
931 int v45; // [sp+18h] [bp-14h]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
932 unsigned int v46; // [sp+1Ch] [bp-10h]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
933 unsigned int v47; // [sp+20h] [bp-Ch]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
934 unsigned int v48; // [sp+24h] [bp-8h]@33
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
935 //unsigned int v49; // [sp+28h] [bp-4h]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
936
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
937 v0 = 0;
949
Nomad
parents: 948
diff changeset
938 v47 = TargetColor(0xFFu, 0xFFu, 0x9Bu);
Nomad
parents: 948
diff changeset
939 //v49 = TargetColor(0xFFu, 0, 0);
Nomad
parents: 948
diff changeset
940 v46 = TargetColor(0, 0xFFu, 0);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
941 //v1 = pIcons_LOD->LoadTexture("quikref", TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
942 pRenderer->DrawTextureIndexed(8, 8, pIcons_LOD->LoadTexturePtr("quikref", TEXTURE_16BIT_PALETTE));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
943 v43 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
944 v45 = LOBYTE(pFontArrus->uFontHeight) + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
945 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
946 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
947 pPlayer = &pParty->pPlayers[v43];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
948 v44 = 94 * v43 + 89;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
949 if ( v43 == v0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
950 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
951 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
952 if ( v43 == v0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
953 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, 0x2Fu, v0, pGlobalTXT_LocalizationStrings[131], 60, v0); //Óðîâ.
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
954 v3 = pPlayer->GetActualLevel();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
955 sprintf(pTmpBuf, "%lu", v3);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
956 v4 = pPlayer->GetBaseLevel();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
957 if ( pPlayer->GetActualLevel() <= v4 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
958 v5 = pPlayer->GetExperienceDisplayColor();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
959 else
949
Nomad
parents: 948
diff changeset
960 v5 = TargetColor(0, 0xFFu, v0);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
961 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, 0x2Fu, v5, pTmpBuf, 84, v0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
962 v6 = v45 + 47;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
963 if ( v43 == v0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
964 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
965 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v6, v0, pClassNames[pPlayer->classType], 84, v0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
966 v7 = v45 + v6;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
967 if ( v43 == v0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
968 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v7, v0, pGlobalTXT_LocalizationStrings[107], 60, v0);//Çäîð.
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
969 sprintf(pTmpBuf, "%d", pPlayer->sHealth);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
970 v8 = pPlayer->GetMaxHealth();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
971 v9 = UI_GetHealthManaStringColor(pPlayer->sHealth, v8);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
972 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v7, v9, pTmpBuf, 84, v0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
973 v10 = v45 + v7;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
974 if ( v43 == v0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
975 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v10, v0, pGlobalTXT_LocalizationStrings[209], 60, v0);//Ìàíà
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
976 sprintf(pTmpBuf, "%d", pPlayer->sMana);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
977 v11 = pPlayer->GetMaxMana();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
978 v12 = UI_GetHealthManaStringColor(pPlayer->sMana, v11);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
979 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v10, v12, pTmpBuf, 84, v0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
980 v13 = v45 + v10;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
981 if ( v43 == v0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
982 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v13, v0, pGlobalTXT_LocalizationStrings[0], 60, v0);//Êëàññ áðîíè
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
983 v14 = pPlayer->GetActualAC();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
984 sprintf(pTmpBuf, "%d", v14);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
985 v15 = v0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
986 v16 = pPlayer->GetBaseAC();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
987 v17 = pPlayer->GetActualAC();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
988 v18 = UI_GetHealthManaStringColor(v17, v16);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
989 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v13, v18, pTmpBuf, 84, v15);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
990 v0 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
991 v19 = v45 + v13;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
992 if ( !v43 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
993 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v19, 0, pGlobalTXT_LocalizationStrings[18], 60, 0);//Àòàêà
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
994 v20 = pPlayer->GetActualAttack(0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
995 sprintf(pTmpBuf, "%+d", v20);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
996 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v19, 0, pTmpBuf, 84, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
997 v21 = v45 + v19;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
998 if ( !v43 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
999 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v21, 0, pGlobalTXT_LocalizationStrings[66], 60, 0);//Ïîâð.
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1000 v22 = pPlayer->GetMeleeDamageString();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1001 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v21, 0, v22, 84, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1002 v23 = v45 + v21;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1003 if ( !v43 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1004 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v23, 0, pGlobalTXT_LocalizationStrings[203], 60, 0);// Ñòðåëÿòü
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1005 v24 = pPlayer->GetRangedAttack();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1006 sprintf(pTmpBuf, "%+d", v24);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1007 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v23, 0, pTmpBuf, 84, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1008 v25 = v45 + v23;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1009 if ( !v43 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1010 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v25, 0, pGlobalTXT_LocalizationStrings[66], 60, 0);//Ïîâð.
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1011 v26 = pPlayer->GetRangedDamageString();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1012 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v25, 0, v26, 84, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1013 v27 = v45 + v25;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1014 if ( !v43 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1015 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v27, 0, pGlobalTXT_LocalizationStrings[205], 60, 0);//Íàâûêè
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1016 v28 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1017 v29 = (char *)pPlayer->pActiveSkills;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1018 v30 = 36;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1019 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1020 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1021 if ( *(short *)v29 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1022 ++v28;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1023 v29 += 2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1024 --v30;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1025 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1026 while ( v30 );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1027 sprintf(pTmpBuf, "%lu", v28);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1028 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v27, 0, pTmpBuf, 84, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1029 v31 = v45 + v27;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1030 if ( !v43 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1031 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v31, 0, pGlobalTXT_LocalizationStrings[168], 60, 0);//Î÷êè
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1032 sprintf(pTmpBuf, "%lu", pPlayer->uSkillPoints);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1033 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
1034 v32 = v45 + v31;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1035 v48 = pPlayer->GetMajorConditionIdx();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1036 if ( !v43 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1037 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v32, 0, pGlobalTXT_LocalizationStrings[45], 60, 0);//Ñîñò.
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1038 v33 = aCharacterConditionNames[v48];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1039 v34 = GetConditionDrawColor(v48);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1040 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v32, v34, v33, 84, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1041 v35 = v45 + v32;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1042 if ( !v43 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1043 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v35, 0, pGlobalTXT_LocalizationStrings[170], 60, 0);//Á.Ïðèì.
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1044 v36 = pPlayer->uQuickSpell;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1045 if ( v36 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1046 v37 = pSpellStats->pInfos[v36].pShortName;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1047 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1048 v37 = pGlobalTXT_LocalizationStrings[153];//Íåò
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1049 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v35, 0, v37, 84, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1050 ++v43;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1051 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1052 while ( v43 < 4 );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1053
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1054 v38 = GetPartyReputation();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1055 if ( v38 >= 0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1056 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1057 if ( v38 <= 5 )
949
Nomad
parents: 948
diff changeset
1058 v39 = TargetColor(0xFF, 0xFF, 0xFF);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1059 else
949
Nomad
parents: 948
diff changeset
1060 v39 = TargetColor(0xFF, 0, 0);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1061 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1062 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1063 v39 = v46;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1064
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1065 v40 = GetReputationString(v38);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1066 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
1067 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 22, 323, 0, pTmpBuf, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1068 v41 = pParty->GetPartyFame();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1069 sprintf(pTmpBuf, "\r261%s: %d", pGlobalTXT_LocalizationStrings[84], v41);// Fame Ñëàâà
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1070 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 0, 323, 0, pTmpBuf, 0, 0, 0);
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
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1073 //----- (0041ABFD) --------------------------------------------------------
910
Ritor1
parents: 906
diff changeset
1074 void __thiscall CharacterUI_CharacterScreen_Draw(unsigned int uPlayerIdx)
Ritor1
parents: 906
diff changeset
1075 {
Ritor1
parents: 906
diff changeset
1076 unsigned int v2; // eax@6
Ritor1
parents: 906
diff changeset
1077 Texture *pTexture; // ecx@6
Ritor1
parents: 906
diff changeset
1078 GUIButton *pButton; // eax@6
Ritor1
parents: 906
diff changeset
1079 unsigned int v5; // eax@7
Ritor1
parents: 906
diff changeset
1080 unsigned int v6; // eax@10
Ritor1
parents: 906
diff changeset
1081 unsigned int v7; // eax@11
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1082
910
Ritor1
parents: 906
diff changeset
1083 if ( uPlayerIdx )
Ritor1
parents: 906
diff changeset
1084 {
Ritor1
parents: 906
diff changeset
1085 pRenderer->ClearZBuffer(0, 479);
Ritor1
parents: 906
diff changeset
1086 switch ( pWindowList_at_506F50_minus1_indexing_buttons____and_an_int_[0] )
Ritor1
parents: 906
diff changeset
1087 {
Ritor1
parents: 906
diff changeset
1088 case WINDOW_CharacterWindow_Stats: // stats
Ritor1
parents: 906
diff changeset
1089 sub_4196A0();
Ritor1
parents: 906
diff changeset
1090 sub_419379();
Ritor1
parents: 906
diff changeset
1091 CharacterUI_StatsTab_Draw(uPlayerIdx);
Ritor1
parents: 906
diff changeset
1092 v7 = pIcons_LOD->LoadTexture("ib-cd1-d", TEXTURE_16BIT_PALETTE);
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1093 pTexture = pIcons_LOD->GetTexture(v7);
910
Ritor1
parents: 906
diff changeset
1094 pButton = pCharacterScreen_StatsBtn;
Ritor1
parents: 906
diff changeset
1095 pRenderer->DrawTextureIndexed(pButton->uX, pButton->uY, pTexture);
Ritor1
parents: 906
diff changeset
1096 break;
Ritor1
parents: 906
diff changeset
1097 case WINDOW_CharacterWindow_Skills: // skills
Ritor1
parents: 906
diff changeset
1098 if ( dword_507CC0 != uActiveCharacter )
Ritor1
parents: 906
diff changeset
1099 {
Ritor1
parents: 906
diff changeset
1100 sub_4196A0();
Ritor1
parents: 906
diff changeset
1101 CharacterUI_SkillScreen_Draw();
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1102 }
910
Ritor1
parents: 906
diff changeset
1103 sub_419379();
Ritor1
parents: 906
diff changeset
1104 CharacterUI_SkillsTab_Draw(uPlayerIdx);
Ritor1
parents: 906
diff changeset
1105 v6 = pIcons_LOD->LoadTexture("ib-cd2-d", TEXTURE_16BIT_PALETTE);
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1106 pTexture = pIcons_LOD->GetTexture(v6);
910
Ritor1
parents: 906
diff changeset
1107 pButton = pCharacterScreen_SkillsBtn;
Ritor1
parents: 906
diff changeset
1108 pRenderer->DrawTextureIndexed(pButton->uX, pButton->uY, pTexture);
Ritor1
parents: 906
diff changeset
1109 break;
Ritor1
parents: 906
diff changeset
1110 case WINDOW_CharacterWindow_Awards: // awards
Ritor1
parents: 906
diff changeset
1111 sub_4196A0();
Ritor1
parents: 906
diff changeset
1112 sub_419379();
Ritor1
parents: 906
diff changeset
1113 sub_419220();
Ritor1
parents: 906
diff changeset
1114 CharacterUI_AwardsTab_Draw(uPlayerIdx);
Ritor1
parents: 906
diff changeset
1115 v5 = pIcons_LOD->LoadTexture("ib-cd4-d", TEXTURE_16BIT_PALETTE);
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1116 pTexture = pIcons_LOD->GetTexture(v5);
910
Ritor1
parents: 906
diff changeset
1117 pButton = pCharacterScreen_AwardsBtn;
Ritor1
parents: 906
diff changeset
1118 pRenderer->DrawTextureIndexed(pButton->uX, pButton->uY, pTexture);
Ritor1
parents: 906
diff changeset
1119 break;
Ritor1
parents: 906
diff changeset
1120 case WINDOW_CharacterWindow_Inventory: // inventory and other
Ritor1
parents: 906
diff changeset
1121 sub_4196A0();
Ritor1
parents: 906
diff changeset
1122 sub_419379();
Ritor1
parents: 906
diff changeset
1123 CharacterUI_InventoryTab_Draw(uPlayerIdx, 0);
Ritor1
parents: 906
diff changeset
1124 v2 = pIcons_LOD->LoadTexture("ib-cd3-d", TEXTURE_16BIT_PALETTE);
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1125 pTexture = pIcons_LOD->GetTexture(v2);
910
Ritor1
parents: 906
diff changeset
1126 pButton = pCharacterScreen_InventoryBtn;
Ritor1
parents: 906
diff changeset
1127 pRenderer->DrawTextureIndexed(pButton->uX, pButton->uY, pTexture);
Ritor1
parents: 906
diff changeset
1128 break;
Ritor1
parents: 906
diff changeset
1129 default:
Ritor1
parents: 906
diff changeset
1130 break;
Ritor1
parents: 906
diff changeset
1131 }
Ritor1
parents: 906
diff changeset
1132 if ( bRingsShownInCharScreen )
Ritor1
parents: 906
diff changeset
1133 CharacterUI_DrawPaperdollWithRingOverlay(uPlayerIdx);
Ritor1
parents: 906
diff changeset
1134 else
Ritor1
parents: 906
diff changeset
1135 CharacterUI_DrawPaperdoll(uPlayerIdx);
Ritor1
parents: 906
diff changeset
1136 }
Ritor1
parents: 906
diff changeset
1137 }
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1138
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1139 //----- (0043CC7C) --------------------------------------------------------
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1140 void __fastcall CharacterUI_DrawPaperdoll(unsigned int uPlayerID)
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1141 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1142 signed int pSex; // eax@1
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1143 unsigned int v6; // ecx@9
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1144 int v7; // ecx@10
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1145 unsigned int pMainHandNum4; // eax@14
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1146 ItemGen *item_MainHand4; // eax@15
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1147 int v10; // edx@15
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1148 unsigned int pX_MainHand4; // edi@15
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1149 unsigned int v14; // ebx@18
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1150 Texture *v16; // ebp@27
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1151 double v17; // st7@29
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1152 int v18; // edi@30
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1153 char *v19; // eax@30
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1154 unsigned int pBowNum; // eax@37
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1155 ItemGen *itemBow; // edi@38
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1156 int pX_Bow; // ebx@38
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1157 double v28; // st7@51
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1158 char *v30; // eax@54
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1159 unsigned int pCloakNum; // eax@59
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1160 ItemGen *item_Cloak; // edx@60
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1161 int v33; // eax@65
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1162 int v34; // eax@74
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1163 int v35; // ebx@74
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1164 LODFile_IconsBitmaps *v38; // ecx@78
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1165 Texture *v39; // edi@85
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1166 double v40; // st7@87
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1167 int v41; // edi@88
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1168 unsigned int pArmorNum; // eax@93
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1169 ItemGen *item_Armor; // edx@94
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1170 int v45; // eax@98
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1171 int v48; // ebx@106
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1172 LODFile_IconsBitmaps *v50; // ecx@110
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1173 Texture *v51; // edi@117
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1174 double v52; // st7@119
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1175 int v53; // edi@120
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1176 char *v55; // eax@122
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1177 unsigned int pBootNum; // eax@127
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1178 ItemGen *item_Boot; // edi@128
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1179 int v59; // ebx@129
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1180 int v60; // ecx@132
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1181 Texture *v63; // edi@145
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1182 double v64; // st7@147
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1183 int v65; // edi@148
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1184 char *v66; // eax@148
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1185 unsigned int pMainHandNum; // edx@155
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1186 int v70; // edx@156
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1187 unsigned int pBeltNum; // eax@160
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1188 ItemGen *item_Belt; // edi@161
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1189 int v73; // edx@163
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1190 unsigned int v75; // ebx@170
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1191 Texture *v77; // edi@181
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1192 double v78; // st7@183
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1193 int v79; // edi@184
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1194 char *v80; // eax@184
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1195 unsigned int pMainHandNum2; // eax@192
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1196 int v83; // eax@193
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1197 int pArmorShoulderNum; // eax@197
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1198 int v87; // eax@197
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1199 int v88; // eax@198
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1200 int v89; // eax@199
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1201 int v94; // ebx@214
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1202 int v95; // eax@214
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1203 char *v96; // edi@226
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1204 double v97; // st7@228
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1205 int v98; // edi@229
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1206 char *v99; // eax@229
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1207 int pX_ArmorShoulder; // eax@237
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1208 int pY_ArmorShoulder; // ecx@237
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1209 int v106; // edx@238
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1210 int v107; // edx@239
938
016e3577865c stru289 removed, some data movements
Nomad
parents: 937
diff changeset
1211 int v108; // edx@240papredoll_flying_feet
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1212 int v109; // edi@250
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1213 char *v110; // edx@250
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1214 unsigned int pCloakCollarNum; // eax@259
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1215 ItemGen *item_CloakCollar; // eax@260
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1216 int v114; // eax@265
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1217 int v116; // ebx@274
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1218 double v118; // st7@286
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1219 int v119; // edi@287
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1220 char *v120; // eax@287
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1221 unsigned int v122; // edi@295
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1222 int pHelmNum; // ebx@297
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1223 ItemGen *item_Helm; // edi@298
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1224 int v125; // ecx@303
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1225 unsigned int v127; // ebx@314
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1226 Texture *v129; // edi@325
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1227 double v130; // st7@327
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1228 int v131; // edi@328
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1229 char *v132; // eax@328
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1230 unsigned int pMainHandNum3; // eax@335
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1231 ItemGen *item_MainHand3; // eax@336
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1232 unsigned int v138; // ebx@339
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1233 Texture *v140; // edi@348
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1234 double v141; // st7@350
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1235 int v142; // edi@351
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1236 char *v143; // eax@351
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1237 unsigned int pShieldNum; // eax@358
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1238 ItemGen *item_Shield; // eax@359
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1239 int v149; // edx@359
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1240 int pX_Shield; // ebx@362
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1241 int v151; // ecx@363
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1242 int v152; // ecx@364
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1243 unsigned int v153; // eax@370
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1244 Texture *v157; // ebp@381
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1245 double v158; // st7@383
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1246 char *v160; // eax@386
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1247 unsigned int pMainHandNum5; // eax@393
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1248 ItemGen *item_MainHand5; // eax@394
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1249 char *v166; // [sp-8h] [bp-54h]@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1250 const char *v167; // [sp-8h] [bp-54h]@23
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1251 const char *v168; // [sp-8h] [bp-54h]@43
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1252 const char *v169; // [sp-8h] [bp-54h]@79
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1253 const char *v170; // [sp-8h] [bp-54h]@111
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1254 const char *v171; // [sp-8h] [bp-54h]@141
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1255 const char *v172; // [sp-8h] [bp-54h]@177
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1256 const char *v173; // [sp-8h] [bp-54h]@222
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1257 const char *v178; // [sp-8h] [bp-54h]@242
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1258 const char *v179; // [sp-8h] [bp-54h]@280
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1259 const char *v180; // [sp-8h] [bp-54h]@321
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1260 char *v181; // [sp-8h] [bp-54h]@337
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1261 const char *v182; // [sp-8h] [bp-54h]@344
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1262 const char *v183; // [sp-8h] [bp-54h]@375
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1263 signed int v186; // [sp-4h] [bp-50h]@202
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1264 signed int v191; // [sp-4h] [bp-50h]@266
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1265 signed int v192; // [sp-4h] [bp-50h]@304
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1266 int pY_MainHand4; // [sp+10h] [bp-3Ch]@15
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1267 int pY_Bow; // [sp+10h] [bp-3Ch]@38
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1268 unsigned int pY_Cloak; // [sp+10h] [bp-3Ch]@74
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1269 unsigned int pY_Armor; // [sp+10h] [bp-3Ch]@106
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1270 int pY_Boot; // [sp+10h] [bp-3Ch]@129
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1271 int pY_Belt; // [sp+10h] [bp-3Ch]@168
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1272 unsigned int pY_shoulder; // [sp+10h] [bp-3Ch]@216
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1273 unsigned int pY_CloakCollar; // [sp+10h] [bp-3Ch]@274
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1274 int pY_Helm; // [sp+10h] [bp-3Ch]@312
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1275 int pY_MainHand3; // [sp+10h] [bp-3Ch]@336
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1276 int pY_Shield; // [sp+10h] [bp-3Ch]@362
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1277 Texture *a2b; // [sp+14h] [bp-38h]@49
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1278 int pX_Cloak; // [sp+14h] [bp-38h]@74
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1279 int pX_Armor; // [sp+14h] [bp-38h]@106
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1280 int pX_Boot; // [sp+14h] [bp-38h]@129
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1281 int pX_Belt; // [sp+14h] [bp-38h]@168
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1282 int pX_shoulder; // [sp+14h] [bp-38h]@214
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1283 int pX_CloakCollar; // [sp+14h] [bp-38h]@274
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1284 Texture *a2i; // [sp+14h] [bp-38h]@284
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1285 int pX_Helm; // [sp+14h] [bp-38h]@312
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1286 int pX_MainHand3; // [sp+14h] [bp-38h]@336
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1287 int pBodyComplection; // [sp+24h] [bp-28h]@6
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1288 unsigned int pBowTextureNum; // [sp+2Ch] [bp-20h]@38
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1289 signed int v245; // [sp+34h] [bp-18h]@361
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1290 signed int IsDwarf; // [sp+40h] [bp-Ch]@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1291
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1292 pIcons_LOD->LoadTexture("sptext01", TEXTURE_16BIT_PALETTE);
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1293 pSex = pPlayers[uPlayerID]->GetSexByVoice();
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1294 if ( pPlayers[uPlayerID]->GetRace() && pPlayers[uPlayerID]->GetRace() != 1 && pPlayers[uPlayerID]->GetRace() != 2 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1295 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1296 IsDwarf = 1;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1297 pBodyComplection = (pSex != 0) + 2;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1298 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1299 else
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1300 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1301 IsDwarf = 0;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1302 pBodyComplection = pSex != 0;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1303 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1304 pRenderer->ResetTextureClipRect();
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1305 pRenderer->DrawTextureIndexed(0x1D3u, 0, pIcons_LOD->GetTexture(uTextureID_BACKDOLL));//Ïîäëîæêà
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1306 if ( IsPlayerWearingWatersuit[uPlayerID] )//àêâàëàíã
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1307 {
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1308 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX, pPaperdoll_BodyY, pIcons_LOD->GetTexture(papredoll_dbods[uPlayerID - 1]));
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1309 if ( !bRingsShownInCharScreen )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1310 pRenderer->DrawMaskToZBuffer(pPaperdoll_BodyX, pPaperdoll_BodyY, pIcons_LOD->GetTexture(papredoll_dbods[uPlayerID - 1]), pPlayers[uPlayerID]->pEquipment.uArmor);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1311 v6 = pPlayers[uPlayerID]->pEquipment.uMainHand;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1312 if ( !v6 || (v7 = *(int *)&pPlayers[uPlayerID]->pInventoryItems[v6-1], pItemsTable->pItems[v7].uEquipType != 1)
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1313 && (pItemsTable->pItems[v7].uSkillType != 4 || pPlayers[uPlayerID]->pEquipment.uShield) )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1314 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_LeftHand[pBodyComplection][0], pPaperdoll_BodyY + pPaperdoll_LeftHand[pBodyComplection][1],
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1315 pIcons_LOD->GetTexture(papredoll_dlads[uPlayerID - 1]));
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1316 pMainHandNum4 = pPlayers[uPlayerID]->pEquipment.uMainHand;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1317 if ( pMainHandNum4 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1318 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1319 item_MainHand4 = &pPlayers[uPlayerID]->pInventoryItems[pMainHandNum4 - 1];
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1320 pX_MainHand4 = pPaperdoll_BodyX + paperdoll_Weapon[pBodyComplection][1][0] - pItemsTable->pItems[item_MainHand4->uItemID].uEquipX;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1321 pY_MainHand4 = pPaperdoll_BodyY + paperdoll_Weapon[pBodyComplection][1][1] - pItemsTable->pItems[item_MainHand4->uItemID].uEquipY;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1322 if ( item_MainHand4->uItemID == 64 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1323 v166 = "item64v1";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1324 else
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1325 v166 = pItemsTable->pItems[item_MainHand4->uItemID].pIconName;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1326 v14 = pIcons_LOD->LoadTexture(v166, TEXTURE_16BIT_PALETTE);
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1327 if ( !( item_MainHand4->uAttributes & 0xF0 ) )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1328 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1329 v18 = v14 + 1;
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1330 v19 = (char *)pIcons_LOD->GetTexture(v14);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1331 if ( item_MainHand4->uAttributes & 2 )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1332 pRenderer->DrawTransparentRedShade(pX_MainHand4, pY_MainHand4, (Texture *)v19);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1333 else
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1334 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1335 if ( item_MainHand4->uAttributes & 1 )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1336 pRenderer->DrawTextureTransparent(pX_MainHand4, pY_MainHand4, (Texture *)v19);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1337 else
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1338 pRenderer->DrawTransparentGreenShade(pX_MainHand4, pY_MainHand4, (Texture *)v19);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1339 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1340 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1341 if ( item_MainHand4->uAttributes & 0xF0 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1342 {
910
Ritor1
parents: 906
diff changeset
1343 if ( ( item_MainHand4->uAttributes & 0xF0) == 16 )
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1344 v167 = "sptext01";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1345 if ( ( item_MainHand4->uAttributes & 0xF0) == 32 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1346 v167 = "sp28a";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1347 if ( (item_MainHand4->uAttributes & 0xF0) == 64 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1348 v167 = "sp30a";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1349 if ( (item_MainHand4->uAttributes & 0xF0) == 128 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1350 v167 = "sp91a";
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1351 v16 = pIcons_LOD->LoadTexturePtr(v167, TEXTURE_16BIT_PALETTE);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1352 dword_50C9A8 -= pEventTimer->uTimeElapsed;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1353 if ( dword_50C9A8 <= 0 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1354 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1355 dword_50C9A8 = 0;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1356 item_MainHand4->uAttributes &= 0xFu;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1357 ptr_50C9A4 = 0;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1358 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1359 v17 = (double)GetTickCount() * 0.1;
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1360 pRenderer->_4A63E6(pX_MainHand4, pY_MainHand4, pIcons_LOD->GetTexture(v14), v16, (signed __int64)v17, 0, 255);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1361 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1362 if ( !bRingsShownInCharScreen )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1363 pRenderer->DrawMaskToZBuffer(pX_MainHand4, pY_MainHand4, (Texture *)v19, pMainHandNum4);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1364 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1365 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1366 else// áåç àêâàëàíãà
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1367 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1368 pBowNum = pPlayers[uPlayerID]->pEquipment.uBow; //ñíà÷àëà ðèñóåòñÿ ëóê
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1369 if ( pBowNum )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1370 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1371 itemBow = &pPlayers[uPlayerID]->pInventoryItems[pBowNum - 1];
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1372 pX_Bow = pPaperdoll_BodyX + paperdoll_Weapon[pBodyComplection][2][0] - pItemsTable->pItems[itemBow->uItemID].uEquipX;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1373 pY_Bow = pPaperdoll_BodyY + paperdoll_Weapon[pBodyComplection][2][1] - pItemsTable->pItems[itemBow->uItemID].uEquipY;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1374 pBowTextureNum = pIcons_LOD->LoadTexture(pItemsTable->pItems[itemBow->uItemID].pIconName, TEXTURE_16BIT_PALETTE);
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1375 if ( !(itemBow->uAttributes & 0xF0) )// åñëè íå ïðèìåí¸í çàêë
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1376 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1377 if ( itemBow->uAttributes & 2 )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1378 pRenderer->DrawTransparentRedShade(pX_Bow, pY_Bow, pIcons_LOD->GetTexture(pBowTextureNum));
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1379 else
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1380 {
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1381 v30 = (char *)pIcons_LOD->GetTexture(pBowTextureNum);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1382 if ( !(itemBow->uAttributes & 1) )//íå îïîçíàííûé ëóê çåë¸íûé
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1383 pRenderer->DrawTransparentGreenShade(pX_Bow, pY_Bow, (Texture *)v30);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1384 else // îïîçíàííûé ëóê
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1385 pRenderer->DrawTextureTransparent(pX_Bow, pY_Bow, (Texture *)v30);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1386 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1387 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1388 else
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1389 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1390 if ( (itemBow->uAttributes & 0xF0) == 16 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1391 v168 = "sptext01";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1392 if ( (itemBow->uAttributes & 0xF0) == 32 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1393 v168 = "sp28a";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1394 if ( (itemBow->uAttributes & 0xF0) == 64 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1395 v168 = "sp30a";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1396 if ( (itemBow->uAttributes & 0xF0) == 128 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1397 v168 = "sp91a";
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1398 a2b = pIcons_LOD->LoadTexturePtr(v168, TEXTURE_16BIT_PALETTE);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1399 dword_50C9A8 -= pEventTimer->uTimeElapsed;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1400 if ( dword_50C9A8 <= 0 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1401 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1402 dword_50C9A8 = 0;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1403 itemBow->uAttributes &= 0xFu;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1404 ptr_50C9A4 = 0;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1405 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1406 v28 = (double)GetTickCount() * 0.1;
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1407 pRenderer->_4A63E6(pX_Bow, pY_Bow, pIcons_LOD->GetTexture(pBowTextureNum), a2b, (signed __int64)v28, 0, 255);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1408 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1409 if ( !bRingsShownInCharScreen )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1410 pRenderer->DrawMaskToZBuffer(pX_Bow, pY_Bow, pIcons_LOD->GetTexture(pBowTextureNum), pBowNum);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1411 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1412 pCloakNum = pPlayers[uPlayerID]->pEquipment.uCloak;// ïîòîì ïëàù
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1413 if ( pCloakNum )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1414 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1415 item_Cloak = &pPlayers[uPlayerID]->pInventoryItems[pCloakNum - 1];
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1416 switch ( item_Cloak->uItemID )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1417 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1418 case 525:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1419 v33 = 5;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1420 break;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1421 case 530:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1422 v33 = 6;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1423 break;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1424 case 547:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1425 v33 = 7;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1426 break;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1427 case 548:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1428 v33 = 8;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1429 break;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1430 case 550:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1431 v33 = 9;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1432 break;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1433 default:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1434 v33 = item_Cloak->uItemID - 105;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1435 break;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1436 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1437 if ( v33 >= 0 && v33 < 10 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1438 {
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1439 v35 = paperdoll_cloak_texture[pBodyComplection][v33];//Texture_Cloak
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1440 pX_Cloak = pPaperdoll_BodyX + paperdoll_Cloak[pBodyComplection][v33][0];
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1441 pY_Cloak = pPaperdoll_BodyY + paperdoll_Cloak[pBodyComplection][v33][1];
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1442 if ( !(item_Cloak->uAttributes & 0xF0) )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1443 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1444 v41 = v35 + 1;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1445 if ( item_Cloak->uAttributes & 2 )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1446 pRenderer->DrawTransparentRedShade(pX_Cloak, pY_Cloak, pIcons_LOD->GetTexture(v35));
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1447 else
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1448 pRenderer->DrawTextureTransparent(pX_Cloak, pY_Cloak, pIcons_LOD->GetTexture(v35));
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1449 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1450 else
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1451 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1452 if ( (item_Cloak->uAttributes & 0xF0) == 16 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1453 v169 = "sptext01";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1454 if ( (item_Cloak->uAttributes & 0xF0) == 32 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1455 v169 = "sp28a";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1456 if ( (item_Cloak->uAttributes & 0xF0) != 64 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1457 v169 = "sp30a";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1458 if ( (item_Cloak->uAttributes & 0xF0) == 128 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1459 v169 = "sp91a";
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1460 v39 = pIcons_LOD->LoadTexturePtr(v169, TEXTURE_16BIT_PALETTE);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1461 dword_50C9A8 -= pEventTimer->uTimeElapsed;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1462 if ( dword_50C9A8 <= 0 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1463 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1464 dword_50C9A8 = 0;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1465 item_Cloak->uAttributes &= 0xFu;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1466 ptr_50C9A4 = 0;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1467 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1468 v40 = (double)GetTickCount() * 0.1;
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1469 pRenderer->_4A63E6(pX_Cloak, pY_Cloak, pIcons_LOD->GetTexture(v35), v39, (signed __int64)v40, 0, 255);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1470 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1471 if ( !bRingsShownInCharScreen )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1472 pRenderer->DrawMaskToZBuffer(pX_Cloak, pY_Cloak, pIcons_LOD->GetTexture(v35), pCloakNum);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1473 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1474 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1475 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX, pPaperdoll_BodyY,//ðèñóåòñÿ êóêëà
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1476 pIcons_LOD->GetTexture(papredoll_dbods[uPlayerID - 1]));
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1477 pArmorNum = pPlayers[uPlayerID]->pEquipment.uArmor;// ïîòîì áðîíÿ
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1478 if ( pArmorNum )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1479 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1480 item_Armor = &pPlayers[uPlayerID]->pInventoryItems[pArmorNum - 1];
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1481 switch ( item_Armor->uItemID )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1482 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1483 case 504:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1484 v45 = 15;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1485 break;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1486 case 505:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1487 v45 = 14;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1488 break;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1489 case 516:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1490 v45 = 13;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1491 break;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1492 case 533:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1493 v45 = 16;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1494 break;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1495 default:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1496 v45 = item_Armor->uItemID - 66;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1497 break;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1498 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1499 if ( v45 >= 0 && v45 < 17 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1500 {
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1501 pX_Armor = pPaperdoll_BodyX + paperdoll_Armor[pBodyComplection][v45][0];
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1502 pY_Armor = pPaperdoll_BodyY + paperdoll_Armor[pBodyComplection][v45][1];
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1503 v48 = paperdoll_armor_texture[pBodyComplection][v45][0];
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1504 if ( !(item_Armor->uAttributes & 0xF0) )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1505 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1506 v53 = v48 + 1;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1507 if ( item_Armor->uAttributes & 2 )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1508 pRenderer->DrawTransparentRedShade(pX_Armor, pY_Armor, pIcons_LOD->GetTexture(v48));
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1509 else
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1510 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1511 v55 = (char *)&pIcons_LOD->pTextures[v48];
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1512 if ( !(item_Armor->uAttributes & 1) )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1513 pRenderer->DrawTransparentGreenShade(pX_Armor, pY_Armor, (Texture *)v55);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1514 else
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1515 pRenderer->DrawTextureTransparent(pX_Armor, pY_Armor, (Texture *)v55);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1516 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1517 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1518 else
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1519 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1520 if ( (item_Armor->uAttributes & 0xF0) == 16 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1521 v170 = "sptext01";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1522 if ( (item_Armor->uAttributes & 0xF0) == 32 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1523 v170 = "sp28a";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1524 if ( (item_Armor->uAttributes & 0xF0) == 64 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1525 v170 = "sp30a";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1526 if ( (item_Armor->uAttributes & 0xF0) == 128 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1527 v170 = "sp91a";
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1528 v51 = pIcons_LOD->LoadTexturePtr(v170, TEXTURE_16BIT_PALETTE);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1529 dword_50C9A8 -= pEventTimer->uTimeElapsed;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1530 if ( dword_50C9A8 <= 0 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1531 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1532 dword_50C9A8 = 0;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1533 item_Armor->uAttributes &= 0xFu;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1534 ptr_50C9A4 = 0;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1535 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1536 v52 = (double)GetTickCount() * 0.1;
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1537 pRenderer->_4A63E6(pX_Armor, pY_Armor, pIcons_LOD->GetTexture(v48), v51, (signed __int64)v52, 0, 255);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1538 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1539 if ( pPlayers[uPlayerID]->pEquipment.uMainHand //äàëåå ïëå÷è áðîíè
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1540 && (pPlayers[uPlayerID]->GetEquippedItemEquipType(EQUIP_MAIN_HAND) == EQUIP_MAIN_HAND ||
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1541 pPlayers[uPlayerID]->GetEquippedItemSkillType(EQUIP_MAIN_HAND) == EQUIP_SHIELD &&
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1542 !pPlayers[uPlayerID]->pEquipment.uShield) )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1543 {
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1544 v94 = paperdoll_armor_texture[pBodyComplection][v45][2];
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1545 if ( v94 == pIcons_LOD->FindTextureByName("pending") )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1546 {
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1547 v94 = paperdoll_armor_texture[pBodyComplection][v45][1];
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1548 pX_shoulder = pPaperdoll_BodyX + paperdoll_shoulder[pBodyComplection][v45][0];
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1549 pY_shoulder = pPaperdoll_BodyY + paperdoll_shoulder[pBodyComplection][v45][1];
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1550 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1551 else
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1552 {
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1553 pX_shoulder = pPaperdoll_BodyX + dword_4E5270[v45][0];
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1554 pY_shoulder = pPaperdoll_BodyY + dword_4E5270[v45][1];
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1555 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1556 if ( !(item_Armor->uAttributes & 0xF0) )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1557 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1558 v98 = v94 + 1;
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1559 v99 = (char *)pIcons_LOD->GetTexture(v94);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1560 if ( item_Armor->uAttributes & 2 )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1561 pRenderer->DrawTransparentRedShade(pX_shoulder, pY_shoulder, (Texture *)v99);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1562 else
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1563 {
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1564 if ( item_Armor->uAttributes & 1 )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1565 pRenderer->DrawTextureTransparent(pX_shoulder, pY_shoulder, (Texture *)v99);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1566 else
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1567 pRenderer->DrawTransparentGreenShade(pX_shoulder, pY_shoulder, (Texture *)v99);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1568 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1569 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1570 else
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1571 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1572 if ( v94 != pIcons_LOD->FindTextureByName("pending") )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1573 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1574 if ( item_Armor->uAttributes & 0xF0 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1575 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1576 if ( (item_Armor->uAttributes & 0xF0) == 16 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1577 v173 = "sptext01";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1578 if ( (item_Armor->uAttributes & 0xF0) == 32 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1579 v173 = "sp28a";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1580 if ( ( item_Armor->uAttributes & 0xF0) == 64 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1581 v173 = "sp30a";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1582 if ( (item_Armor->uAttributes & 0xF0) == 128 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1583 v173 = "sp91a";
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1584 v96 = (char *)pIcons_LOD->LoadTexturePtr(v173, TEXTURE_16BIT_PALETTE);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1585 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1586 if ( dword_50C9A8 <= 0 )
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1587 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1588 dword_50C9A8 = 0;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1589 item_Armor->uAttributes &= 0xFu;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1590 ptr_50C9A4 = 0;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1591 }
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1592 v97 = (double)GetTickCount();
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1593 pRenderer->_4A63E6(pX_shoulder, pY_shoulder, pIcons_LOD->GetTexture(v94), (Texture *)v96, (signed __int64)(v97 * 0.1), 0, 255);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1594 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1595 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1596 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1597 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1598 else
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1599 {
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1600 v94 = paperdoll_armor_texture[pBodyComplection][v45][1];
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1601 if ( v94 != pIcons_LOD->FindTextureByName("pending") )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1602 {
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1603 pX_ArmorShoulder = pPaperdoll_BodyX + paperdoll_shoulder[pBodyComplection][v45][0];
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1604 pY_ArmorShoulder = pPaperdoll_BodyY + paperdoll_shoulder[pBodyComplection][v45][1];
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1605 if ( !(item_Armor->uAttributes & 0xF0) )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1606 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1607 v109 = v94 + 1;
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1608 v110 = (char *)pIcons_LOD->GetTexture(v94);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1609 if ( item_Armor->uAttributes & 2 )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1610 pRenderer->DrawTransparentRedShade(pX_ArmorShoulder, pY_ArmorShoulder, (Texture *)v110);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1611 else
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1612 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1613 if ( item_Armor->uAttributes & 1 )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1614 pRenderer->DrawTextureTransparent(pX_ArmorShoulder, pY_ArmorShoulder, (Texture *)v110);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1615 else
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1616 pRenderer->DrawTransparentGreenShade(pX_ArmorShoulder, pY_ArmorShoulder, (Texture *)v110);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1617 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1618 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1619 else
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1620 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1621 if ( (item_Armor->uAttributes & 0xF0) == 16 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1622 v178 = "sptext01";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1623 if ( (item_Armor->uAttributes & 0xF0) == 32 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1624 v178 = "sp28a";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1625 if ( (item_Armor->uAttributes & 0xF0) == 64 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1626 v178 = "sp30a";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1627 if ( (item_Armor->uAttributes & 0xF0) == 128 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1628 v178 = "sp91a";
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1629 v96 = (char *)pIcons_LOD->LoadTexturePtr(v178, TEXTURE_16BIT_PALETTE);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1630 dword_50C9A8 -= pEventTimer->uTimeElapsed;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1631 if ( dword_50C9A8 <= 0 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1632 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1633 dword_50C9A8 = 0;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1634 item_Armor->uAttributes &= 0xFu;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1635 ptr_50C9A4 = 0;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1636 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1637 v97 = (double)GetTickCount();
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1638 pRenderer->_4A63E6(pX_ArmorShoulder, pY_ArmorShoulder, pIcons_LOD->GetTexture(v94), (Texture *)v96, (signed __int64)(v97 * 0.1), 0, 255);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1639 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1640 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1641 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1642 if ( !bRingsShownInCharScreen )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1643 pRenderer->DrawMaskToZBuffer(pX_Armor, pY_Armor, (Texture *)v55, pArmorNum);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1644 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1645 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1646 pBootNum = pPlayers[uPlayerID]->pEquipment.uBoot;//äàëåå îáóâü
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1647 if ( pBootNum )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1648 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1649 item_Boot = &pPlayers[uPlayerID]->pInventoryItems[pBootNum - 1];
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1650 switch ( item_Boot->uItemID )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1651 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1652 case 529:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1653 v60 = 5;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1654 v59 = papredoll_flying_feet[pPlayers[uPlayerID]->uFace];
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1655 break;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1656 case 512:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1657 v60 = 6;
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1658 v59 = paperdoll_boots_texture[pBodyComplection][5];
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1659 break;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1660 default:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1661 v60 = item_Boot->uItemID - 115;
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1662 v59 = paperdoll_boots_texture[pBodyComplection][v60];
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1663 break;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1664 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1665 if ( v60 >= 0 && v60 < 7 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1666 {
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1667 pX_Boot = pPaperdoll_BodyX + paperdoll_Boot[pBodyComplection][v60][0];
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1668 pY_Boot = pPaperdoll_BodyY + paperdoll_Boot[pBodyComplection][v60][1];
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1669 if ( !(item_Boot->uAttributes & 0xF0) )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1670 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1671 v65 = v59 + 1;
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1672 v66 = (char *)pIcons_LOD->GetTexture(v59);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1673 if ( item_Boot->uAttributes & 2 )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1674 pRenderer->DrawTransparentRedShade(pX_Boot, pY_Boot, (Texture *)v66);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1675 else
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1676 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1677 if ( item_Boot->uAttributes & 1 )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1678 pRenderer->DrawTextureTransparent(pX_Boot, pY_Boot, (Texture *)v66);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1679 else
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1680 pRenderer->DrawTransparentGreenShade(pX_Boot, pY_Boot, (Texture *)v66);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1681 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1682 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1683 else
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1684 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1685 if ( (item_Boot->uAttributes & 0xF0) == 16 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1686 v171 = "sptext01";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1687 if ( (item_Boot->uAttributes & 0xF0) == 32 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1688 v171 = "sp28a";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1689 if ( (item_Boot->uAttributes & 0xF0) == 64 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1690 v171 = "sp30a";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1691 if ( (item_Boot->uAttributes & 0xF0) == 128 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1692 v171 = "sp91a";
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1693 v63 = pIcons_LOD->LoadTexturePtr(v171, TEXTURE_16BIT_PALETTE);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1694 dword_50C9A8 -= pEventTimer->uTimeElapsed;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1695 if ( dword_50C9A8 <= 0 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1696 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1697 dword_50C9A8 = 0;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1698 item_Boot->uAttributes &= 0xFu;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1699 ptr_50C9A4 = 0;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1700 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1701 v64 = (double)GetTickCount() * 0.1;
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1702 pRenderer->_4A63E6(pX_Boot, pY_Boot, pIcons_LOD->GetTexture(v59), v63, (signed __int64)v64, 0, 255);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1703 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1704 if ( !bRingsShownInCharScreen )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1705 pRenderer->DrawMaskToZBuffer(pX_Boot, pY_Boot, (Texture *)v66, pBootNum);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1706 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1707 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1708 pMainHandNum = pPlayers[uPlayerID]->pEquipment.uMainHand;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1709 if ( !pMainHandNum || (v70 = *(int *)&pPlayers[uPlayerID]->pInventoryItems[pMainHandNum -1], pItemsTable->pItems[v70].uEquipType != 1)
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1710 && (pItemsTable->pItems[v70].uSkillType != 4 || pPlayers[uPlayerID]->pEquipment.uShield) )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1711 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_LeftHand[pBodyComplection][0],
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1712 pPaperdoll_BodyY + pPaperdoll_LeftHand[pBodyComplection][1],
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1713 pIcons_LOD->GetTexture(papredoll_dlads[uPlayerID - 1]));
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1714 pBeltNum = pPlayers[uPlayerID]->pEquipment.uBelt;// äàëåå ïîÿñ
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1715 if ( pBeltNum )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1716 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1717 item_Belt = &pPlayers[uPlayerID]->pInventoryItems[pBeltNum - 1];
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1718 switch ( item_Belt->uItemID )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1719 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1720 case 524:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1721 v73 = 5;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1722 break;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1723 case 535:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1724 v73 = 6;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1725 break;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1726 default:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1727 v73 = item_Belt->uItemID - 100;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1728 break;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1729 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1730 if ( v73 >= 0 && v73 < 7 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1731 {
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1732 pX_Belt = pPaperdoll_BodyX + paperdoll_Belt[pBodyComplection][v73][0];
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1733 pY_Belt = pPaperdoll_BodyY + paperdoll_Belt[pBodyComplection][v73][1];
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1734 if ( IsDwarf != 1 || v73 == 5 )
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1735 v75 = paperdoll_belt_texture[pBodyComplection][v73];
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1736 else
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1737 v75 = paperdoll_belt_texture[pBodyComplection - 2][v73];
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1738 if ( !(item_Belt->uAttributes & 0xF0) )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1739 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1740 v79 = v75 + 1;
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1741 v80 = (char *)pIcons_LOD->GetTexture(v75);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1742 if ( item_Belt->uAttributes & 2 )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1743 pRenderer->DrawTransparentRedShade(pX_Belt, pY_Belt, (Texture *)v80);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1744 else
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1745 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1746 if ( item_Belt->uAttributes & 1 )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1747 pRenderer->DrawTextureTransparent(pX_Belt, pY_Belt, (Texture *)v80);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1748 else
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1749 pRenderer->DrawTransparentGreenShade(pX_Belt, pY_Belt, (Texture *)v80);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1750 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1751 if ( !bRingsShownInCharScreen )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1752 pRenderer->DrawMaskToZBuffer(pX_Belt, pY_Belt, (Texture *)v80, pBeltNum);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1753 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1754 else
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1755 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1756 if ( (item_Belt->uAttributes & 0xF0) == 16 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1757 v172 = "sptext01";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1758 if ( (item_Belt->uAttributes & 0xF0) == 32 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1759 v172 = "sp28a";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1760 if ( (item_Belt->uAttributes & 0xF0) == 64 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1761 v172 = "sp30a";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1762 if ( (item_Belt->uAttributes & 0xF0) == 128 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1763 v172 = "sp91a";
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1764 v77 = pIcons_LOD->LoadTexturePtr(v172, TEXTURE_16BIT_PALETTE);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1765 dword_50C9A8 -= pEventTimer->uTimeElapsed;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1766 if ( dword_50C9A8 <= 0 )
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1767 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1768 dword_50C9A8 = 0;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1769 item_Belt->uAttributes &= 0xFu;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1770 ptr_50C9A4 = 0;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1771 }
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1772 v78 = (double)GetTickCount() * 0.1;
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1773 pRenderer->_4A63E6(pX_Belt, pY_Belt, pIcons_LOD->GetTexture(v75), v77, (signed __int64)v78, 0, 255);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1774 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1775 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1776 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1777 pMainHandNum2 = pPlayers[uPlayerID]->pEquipment.uMainHand;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1778 if ( pMainHandNum2 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1779 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1780 v83 = *(int *)&pPlayers[uPlayerID]->pInventoryItems[pMainHandNum2 - 1];
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1781 if ( pItemsTable->pItems[v83].uEquipType == 1
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1782 || pItemsTable->pItems[v83].uSkillType == 4 && !pPlayers[uPlayerID]->pEquipment.uShield )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1783 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_SecondLeftHand[pBodyComplection][0],
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1784 pPaperdoll_BodyY + pPaperdoll_SecondLeftHand[pBodyComplection][1],
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1785 pIcons_LOD->GetTexture(papredoll_dlaus[uPlayerID - 1]));
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1786 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1787 pCloakCollarNum = pPlayers[uPlayerID]->pEquipment.uCloak;//äàëåå âîðîòíèê ïëàùà
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1788 if ( pCloakCollarNum )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1789 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1790 item_CloakCollar = &pPlayers[uPlayerID]->pInventoryItems[pCloakCollarNum - 1];
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1791 switch ( item_CloakCollar->uItemID )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1792 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1793 case 525:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1794 v114 = 5;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1795 break;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1796 case 530:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1797 v114 = 6;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1798 break;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1799 case 547:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1800 v114 = 7;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1801 break;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1802 case 548:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1803 v114 = 8;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1804 break;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1805 case 550:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1806 v114 = 9;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1807 break;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1808 default:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1809 v114 = item_CloakCollar->uItemID - 105;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1810 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1811 if ( v114 >= 0 && v114 < 10 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1812 {
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1813 v116 = paperdoll_cloak_collar_texture[pBodyComplection][v114];
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1814 pX_CloakCollar = pPaperdoll_BodyX + paperdoll_CloakCollar[pBodyComplection][v114][0];
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1815 pY_CloakCollar = pPaperdoll_BodyY + paperdoll_CloakCollar[pBodyComplection][v114][1];
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1816 if ( v116 != pIcons_LOD->FindTextureByName("pending") )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1817 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1818 if ( !(item_CloakCollar->uAttributes & 0xF0) )
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1819 {
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1820 v119 = v116 + 1;
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1821 v120 = (char *)pIcons_LOD->GetTexture(v116);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1822 if ( item_CloakCollar->uAttributes & 2 )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1823 pRenderer->DrawTransparentRedShade(pX_CloakCollar, pY_CloakCollar, (Texture *)v120);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1824 else
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1825 pRenderer->DrawTextureTransparent(pX_CloakCollar, pY_CloakCollar, (Texture *)v120);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1826 if ( !bRingsShownInCharScreen )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1827 pRenderer->DrawMaskToZBuffer(pX_CloakCollar, pY_CloakCollar, (Texture *)v120, pCloakCollarNum);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1828 }
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1829 else
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1830 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1831 if ( (item_CloakCollar->uAttributes & 0xF0) == 16 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1832 v179 = "sptext01";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1833 if ( (item_CloakCollar->uAttributes & 0xF0) == 32 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1834 v179 = "sp28a";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1835 if ( (item_CloakCollar->uAttributes & 0xF0) == 64 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1836 v179 = "sp30a";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1837 if ( (item_CloakCollar->uAttributes & 0xF0) == 128 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1838 v179 = "sp91a";
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1839 a2i = pIcons_LOD->LoadTexturePtr(v179, TEXTURE_16BIT_PALETTE);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1840 dword_50C9A8 -= pEventTimer->uTimeElapsed;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1841 if ( dword_50C9A8 <= 0 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1842 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1843 dword_50C9A8 = 0;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1844 item_CloakCollar->uAttributes &= 0xFu;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1845 ptr_50C9A4 = 0;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1846 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1847 v118 = (double)GetTickCount() * 0.1;
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1848 pRenderer->_4A63E6(pX_CloakCollar, pY_CloakCollar, pIcons_LOD->GetTexture(v116), a2i, (signed __int64)v118, 0, 255);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1849 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1850 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1851 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1852 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1853 if ( pPlayers[uPlayerID]->uFace == 12 || pPlayers[uPlayerID]->uFace == 13 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1854 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1855 v122 = papredoll_dbrds[pPlayers[uPlayerID]->uFace];
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1856 if ( v122 != pIcons_LOD->FindTextureByName("Pending") )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1857 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_Beards[2 * pPlayers[uPlayerID]->uFace - 24],
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1858 pPaperdoll_BodyY + pPaperdoll_Beards[2 * pPlayers[uPlayerID]->uFace - 23],
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1859 pIcons_LOD->GetTexture(v122));
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1860 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1861 pHelmNum = pPlayers[uPlayerID]->pEquipment.uHelm;//äàëåå øëåì
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1862 if ( pHelmNum )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1863 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1864 item_Helm = &pPlayers[uPlayerID]->pInventoryItems[pHelmNum-1];
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1865 switch ( item_Helm->uItemID )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1866 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1867 case 521:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1868 v125 = 11;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1869 break;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1870 case 522:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1871 v125 = 12;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1872 break;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1873 case 523:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1874 v125 = 13;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1875 break;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1876 case 532:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1877 v125 = 14;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1878 break;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1879 case 544:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1880 v125 = 15;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1881 break;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1882 default:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1883 v125 = item_Helm->uItemID - 89;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1884 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1885 if ( v125 >= 0 && v125 < 16 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1886 {
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1887 pX_Helm = pPaperdoll_BodyX + paperdoll_Helm[pBodyComplection][v125][0];
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1888 pY_Helm = pPaperdoll_BodyY + paperdoll_Helm[pBodyComplection][v125][1];
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1889 if ( IsDwarf != 1 || item_Helm->uItemID != 92 )
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
1890 v127 = paperdoll_helm_texture[pSex][v125];
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1891 else
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1892 v127 = papredoll_dbrds[11];
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1893 if ( item_Helm->uAttributes & 0xF0 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1894 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1895 if ( (item_Helm->uAttributes & 0xF0) == 16 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1896 v180 = "sptext01";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1897 if ( (item_Helm->uAttributes & 0xF0) == 32 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1898 v180 = "sp28a";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1899 if ( (item_Helm->uAttributes & 0xF0) == 64 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1900 v180 = "sp30a";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1901 if ( (item_Helm->uAttributes & 0xF0) == 128 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1902 v180 = "sp91a";
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1903 v129 = pIcons_LOD->LoadTexturePtr(v180, TEXTURE_16BIT_PALETTE);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1904 dword_50C9A8 -= pEventTimer->uTimeElapsed;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1905 if ( dword_50C9A8 <= 0 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1906 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1907 dword_50C9A8 = 0;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1908 item_Helm->uAttributes &= 0xFu;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1909 ptr_50C9A4 = 0;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1910 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1911 v130 = (double)GetTickCount() * 0.1;
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1912 pRenderer->_4A63E6(pX_Helm, pY_Helm, pIcons_LOD->GetTexture(v127), v129, (signed __int64)v130, 0, 255);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1913 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1914 else
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1915 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1916 v131 = v127 + 1;
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1917 v132 = (char *)pIcons_LOD->GetTexture(v127);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1918 if ( item_Helm->uAttributes & 2 )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1919 pRenderer->DrawTransparentRedShade(pX_Helm, pY_Helm, (Texture *)v132);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1920 else
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1921 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1922 if ( item_Helm->uAttributes & 1 )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1923 pRenderer->DrawTextureTransparent(pX_Helm, pY_Helm, (Texture *)v132);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1924 else
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1925 pRenderer->DrawTransparentGreenShade(pX_Helm, pY_Helm, (Texture *)v132);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1926 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1927 }
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1928 if ( !bRingsShownInCharScreen )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1929 pRenderer->DrawMaskToZBuffer(pX_Helm, pY_Helm, (Texture *)v132, pHelmNum);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1930 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1931 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1932 pMainHandNum3 = pPlayers[uPlayerID]->pEquipment.uMainHand;//weapon in right hand
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1933 if ( pMainHandNum3 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1934 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1935 item_MainHand3 = &pPlayers[uPlayerID]->pInventoryItems[pMainHandNum3 - 1];
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1936 pX_MainHand3 = pPaperdoll_BodyX + paperdoll_Weapon[pBodyComplection][1][0] - pItemsTable->pItems[item_MainHand3->uItemID].uEquipX;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1937 pY_MainHand3 = pPaperdoll_BodyY + paperdoll_Weapon[pBodyComplection][1][1] - pItemsTable->pItems[item_MainHand3->uItemID].uEquipY;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1938 if ( item_MainHand3->uItemID == 64 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1939 v181 = "item64v1";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1940 else
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1941 v181 = pItemsTable->pItems[item_MainHand3->uItemID].pIconName;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1942 v138 = pIcons_LOD->LoadTexture(v181, TEXTURE_16BIT_PALETTE);
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1943 if ( !(item_MainHand3->uAttributes & 0xF0) )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1944 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1945 v142 = v138 + 1;
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1946 v143 = (char *)pIcons_LOD->GetTexture(v138);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1947 if ( item_MainHand3->uAttributes & 2 )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1948 pRenderer->DrawTransparentRedShade(pX_MainHand3, pY_MainHand3, (Texture *)v143);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1949 else
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1950 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1951 if ( item_MainHand3->uAttributes & 1 )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1952 pRenderer->DrawTextureTransparent(pX_MainHand3, pY_MainHand3, (Texture *)v143);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1953 else
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1954 pRenderer->DrawTransparentGreenShade(pX_MainHand3, pY_MainHand3, (Texture *)v143);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1955 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1956 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1957 else
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1958 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1959 if ( (item_MainHand3->uAttributes & 0xF0) == 16 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1960 v182 = "sptext01";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1961 if ( (item_MainHand3->uAttributes & 0xF0) == 32 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1962 v182 = "sp28a";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1963 if ( (item_MainHand3->uAttributes & 0xF0) == 64 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1964 v182 = "sp30a";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1965 if ( (item_MainHand3->uAttributes & 0xF0) == 128 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1966 v182 = "sp91a";
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1967 v140 = pIcons_LOD->LoadTexturePtr(v182, TEXTURE_16BIT_PALETTE);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1968 dword_50C9A8 -= pEventTimer->uTimeElapsed;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1969 if ( dword_50C9A8 <= 0 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1970 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1971 dword_50C9A8 = 0;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1972 item_MainHand3->uAttributes &= 0xFu;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1973 ptr_50C9A4 = 0;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1974 }
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1975 v141 = (double)GetTickCount() * 0.1;
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1976 pRenderer->_4A63E6(pX_MainHand3, pY_MainHand3, pIcons_LOD->GetTexture(v138), v140, (signed __int64)v141, 0, 255);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1977 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1978 if ( !bRingsShownInCharScreen )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
1979 pRenderer->DrawMaskToZBuffer(pX_MainHand3, pY_MainHand3, (Texture *)v143, pMainHandNum3);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1980 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1981 pShieldNum = pPlayers[uPlayerID]->pEquipment.uShield;// äàëåå ùèò
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1982 if ( pShieldNum )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1983 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1984 item_Shield = &pPlayers[uPlayerID]->pInventoryItems[pShieldNum - 1];
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1985 v149 = pItemsTable->pItems[item_Shield->uItemID].uSkillType;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1986 if ( v149 == 2 || v149 == 1 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1987 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1988 v151 = item_Shield->uItemID - 400;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1989 pX_Shield = 596;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1990 v245 = 1;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1991 switch ( item_Shield->uItemID )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1992 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1993 case 400:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1994 pY_Shield = 86;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1995 break;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1996 case 403:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1997 pY_Shield = 28;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1998 break;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
1999 case 415:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2000 pX_Shield = 595;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2001 pY_Shield = 33;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2002 break;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2003 default:
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2004 pX_Shield = pPaperdoll_BodyX + paperdoll_Weapon[pBodyComplection][0][0] - pItemsTable->pItems[item_Shield->uItemID].uEquipX;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2005 pY_Shield = pPaperdoll_BodyY + paperdoll_Weapon[pBodyComplection][0][1] - pItemsTable->pItems[item_Shield->uItemID].uEquipY;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2006 break;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2007 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2008 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2009 else
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2010 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2011 v245 = 0;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2012 pX_Shield = pPaperdoll_BodyX + paperdoll_Weapon[pBodyComplection][0][0] - pItemsTable->pItems[item_Shield->uItemID].uEquipX;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2013 pY_Shield = pPaperdoll_BodyY + paperdoll_Weapon[pBodyComplection][0][1] - pItemsTable->pItems[item_Shield->uItemID].uEquipY;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2014 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2015 v153 = pIcons_LOD->LoadTexture(pItemsTable->pItems[item_Shield->uItemID].pIconName, TEXTURE_16BIT_PALETTE);
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2016 if ( !(item_Shield->uAttributes & 0xF0) )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2017 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2018 if ( item_Shield->uAttributes & 2 )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2019 pRenderer->DrawTransparentRedShade(pX_Shield, pY_Shield, pIcons_LOD->GetTexture(v153));
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2020 else
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2021 {
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2022 v160 = (char *)pIcons_LOD->GetTexture(v153);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2023 if ( !(item_Shield->uAttributes & 1) )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2024 pRenderer->DrawTransparentGreenShade(pX_Shield, pY_Shield, (Texture *)v160);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2025 else
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2026 pRenderer->DrawTextureTransparent(pX_Shield, pY_Shield, (Texture *)v160);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2027 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2028 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2029 else
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2030 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2031 if ( (item_Shield->uAttributes & 0xF0) == 16 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2032 v183 = "sptext01";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2033 if ( (item_Shield->uAttributes & 0xF0) == 32 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2034 v183 = "sp28a";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2035 if ( (item_Shield->uAttributes & 0xF0) == 64 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2036 v183 = "sp30a";
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2037 if ( (item_Shield->uAttributes & 0xF0) == 128 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2038 v183 = "sp91a";
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2039 v157 = pIcons_LOD->LoadTexturePtr(v183, TEXTURE_16BIT_PALETTE);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2040 dword_50C9A8 -= pEventTimer->uTimeElapsed;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2041 if ( dword_50C9A8 <= 0 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2042 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2043 dword_50C9A8 = 0;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2044 item_Shield->uAttributes &= 0xFu;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2045 ptr_50C9A4 = 0;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2046 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2047 v158 = (double)GetTickCount() * 0.1;
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2048 pRenderer->_4A63E6(pX_Shield, pY_Shield, pIcons_LOD->GetTexture(v153), v157, (signed __int64)v158, 0, 255);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2049 if ( v245 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2050 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdollLeftEmptyHand[pBodyComplection][0],
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2051 pPaperdoll_BodyY + pPaperdollLeftEmptyHand[pBodyComplection][1], pIcons_LOD->GetTexture(papredoll_dlhs[uPlayerID - 1]));
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2052 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2053 if ( !bRingsShownInCharScreen )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2054 pRenderer->DrawMaskToZBuffer(pX_Shield, pY_Shield, pIcons_LOD->GetTexture(v153), pShieldNum);
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2055 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2056 }
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2057 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_RightHand[pBodyComplection][0], pPaperdoll_BodyY + pPaperdoll_RightHand[pBodyComplection][1], pIcons_LOD->GetTexture(papredoll_drhs[uPlayerID - 1]));
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2058 pMainHandNum5 = pPlayers[uPlayerID]->pEquipment.uMainHand;
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2059 if ( pMainHandNum5 )
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2060 {
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2061 item_MainHand5 = &pPlayers[uPlayerID]->pInventoryItems[pMainHandNum5 - 1];
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2062 if ( pItemsTable->pItems[item_MainHand5->uItemID].uEquipType == 1 || pItemsTable->pItems[item_MainHand5->uItemID].uSkillType == 4 && !pPlayers[uPlayerID]->pEquipment.uShield )
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2063 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_SecondLeftHand[pBodyComplection][0], pPaperdoll_BodyY + pPaperdoll_SecondLeftHand[pBodyComplection][1], pIcons_LOD->GetTexture(papredoll_dlhus[uPlayerID - 1]));
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2064 }
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2065 if ( !bRingsShownInCharScreen )//ðèñîâàíèå ëóïû
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2066 pRenderer->DrawTextureTransparent(603, 299, pIcons_LOD->GetTexture(uTextureID_MAGNIF_B));
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2067 pRenderer->DrawTextureTransparent(468, 0, pIcons_LOD->GetTexture(uTextureID_right_panel_loop));//îáðàìëåíèå
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
2068 }
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2069
910
Ritor1
parents: 906
diff changeset
2070 //----- (0043E825) --------------------------------------------------------
Ritor1
parents: 906
diff changeset
2071 void __fastcall CharacterUI_DrawPaperdollWithRingOverlay(unsigned int uPlayerID)
Ritor1
parents: 906
diff changeset
2072 {
913
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2073 int v3; // ecx@1
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2074 unsigned int pItemTextureNum; // ebx@3
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2075 //int v9; // edi@17
913
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2076 char v13; // sf@24
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2077 unsigned __int8 v14; // of@24
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2078 unsigned int pItemNum; // eax@25
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2079 //int v20; // edi@40
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2080 //int v21; // eax@41
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2081 //int v33; // esi@61
913
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2082 const char *spell_texture_name; // [sp-8h] [bp-38h]@8
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2083 Texture *spell_texture; // [sp+10h] [bp-20h]@14
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2084 int v41; // [sp+10h] [bp-20h]@26
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2085 unsigned int pY_Ring; // [sp+14h] [bp-1Ch]@3
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2086 unsigned int pX_Ring; // [sp+18h] [bp-18h]@3
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2087 int v48; // [sp+24h] [bp-Ch]@1
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2088 ItemGen *item;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2089
910
Ritor1
parents: 906
diff changeset
2090 pIcons_LOD->LoadTexture("sptext01", TEXTURE_16BIT_PALETTE);
Ritor1
parents: 906
diff changeset
2091 CharacterUI_DrawPaperdoll(uPlayerID);
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2092 pRenderer->DrawTextureTransparent(0x1D9u, 0, pIcons_LOD->GetTexture(uTextureID_BACKHAND));
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2093 pRenderer->DrawTextureTransparent(0x1D4u, 0, pIcons_LOD->GetTexture(uTextureID_right_panel_loop));
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2094 pRenderer->DrawTextureIndexed(pCharacterScreen_DetalizBtn->uX, pCharacterScreen_DetalizBtn->uY, pIcons_LOD->GetTexture(uTextureID_detaliz_close_button));
910
Ritor1
parents: 906
diff changeset
2095 v3 = 0;
Ritor1
parents: 906
diff changeset
2096 v48 = 0;
Ritor1
parents: 906
diff changeset
2097 do
Ritor1
parents: 906
diff changeset
2098 {
913
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2099 pItemNum = pPlayers[uPlayerID]->pEquipment.uRings[v3];
910
Ritor1
parents: 906
diff changeset
2100 if ( pPlayers[uPlayerID]->pEquipment.uRings[v3] )
Ritor1
parents: 906
diff changeset
2101 {
913
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2102 item = &pPlayers[uPlayerID]->pInventoryItems[pItemNum - 1];
910
Ritor1
parents: 906
diff changeset
2103 pX_Ring = pPaperdollRingsX[v3];
Ritor1
parents: 906
diff changeset
2104 pY_Ring = pPaperdollRingsY[v3];
913
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2105 pItemTextureNum = pIcons_LOD->LoadTexture(pItemsTable->pItems[item->uItemID].pIconName, TEXTURE_16BIT_PALETTE);
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2106 if ( item->uAttributes & 0xF0 )
910
Ritor1
parents: 906
diff changeset
2107 {
913
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2108 if ( (item->uAttributes & 0xF0) == 16 )
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2109 spell_texture_name = "sptext01";
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2110 if ( (item->uAttributes & 0xF0) == 32 )
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2111 spell_texture_name = "sp28a";
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2112 if ( (item->uAttributes & 0xF0) == 64 )
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2113 spell_texture_name = "sp30a";
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2114 if ( (item->uAttributes & 0xF0) == 128 )
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2115 spell_texture_name = "sp91a";
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2116 spell_texture = pIcons_LOD->LoadTexturePtr(spell_texture_name, TEXTURE_16BIT_PALETTE);
910
Ritor1
parents: 906
diff changeset
2117 dword_50C9A8 -= pEventTimer->uTimeElapsed;
Ritor1
parents: 906
diff changeset
2118 if ( dword_50C9A8 <= 0 )
Ritor1
parents: 906
diff changeset
2119 {
Ritor1
parents: 906
diff changeset
2120 dword_50C9A8 = 0;
913
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2121 item->uAttributes &= 0xFu;
910
Ritor1
parents: 906
diff changeset
2122 ptr_50C9A4 = 0;
Ritor1
parents: 906
diff changeset
2123 }
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2124 pRenderer->_4A63E6(pX_Ring, pY_Ring, pIcons_LOD->GetTexture(pItemTextureNum), spell_texture, GetTickCount() * 0.1, 0, 255);
910
Ritor1
parents: 906
diff changeset
2125 }
Ritor1
parents: 906
diff changeset
2126 else
Ritor1
parents: 906
diff changeset
2127 {
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2128 if (item->Broken())
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2129 pRenderer->DrawTransparentRedShade(pX_Ring, pY_Ring, pIcons_LOD->GetTexture(pItemTextureNum));
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2130 else if (!item->Identified())
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2131 pRenderer->DrawTransparentGreenShade(pX_Ring, pY_Ring, pIcons_LOD->GetTexture(pItemTextureNum));
910
Ritor1
parents: 906
diff changeset
2132 else
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2133 pRenderer->DrawTextureTransparent(pX_Ring, pY_Ring, pIcons_LOD->GetTexture(pItemTextureNum));
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2134
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2135 pRenderer->_4A601E(pX_Ring, pY_Ring, pIcons_LOD->GetTexture(pItemTextureNum), pItemNum);
910
Ritor1
parents: 906
diff changeset
2136 }
Ritor1
parents: 906
diff changeset
2137 }
Ritor1
parents: 906
diff changeset
2138 v3++;
913
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2139 pItemNum = pPlayers[uPlayerID]->pEquipment.uRings[v3];
910
Ritor1
parents: 906
diff changeset
2140 v14 = (v48 + 1) > 5;
Ritor1
parents: 906
diff changeset
2141 v13 = v48 - 4 < 0;
Ritor1
parents: 906
diff changeset
2142 v48++;
Ritor1
parents: 906
diff changeset
2143 }
Ritor1
parents: 906
diff changeset
2144 while ( (unsigned __int8)(v13 ^ v14) | (v48 == 4) );
913
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2145 pItemNum = pPlayers[uPlayerID]->pEquipment.uAmulet;
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2146 if ( pItemNum )
910
Ritor1
parents: 906
diff changeset
2147 {
Ritor1
parents: 906
diff changeset
2148 v41 = pPlayers[uPlayerID]->pEquipment.uAmulet;
913
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2149 item = &pPlayers[uPlayerID]->pInventoryItems[pItemNum - 1];
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2150 pItemTextureNum = pIcons_LOD->LoadTexture(pItemsTable->pItems[item->uItemID].pIconName, TEXTURE_16BIT_PALETTE);
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2151 if ( item->uAttributes & 0xF0 )
910
Ritor1
parents: 906
diff changeset
2152 {
913
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2153 if ( (item->uAttributes & 0xF0) == 16 )
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2154 spell_texture_name = "sptext01";
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2155 if ( (item->uAttributes & 0xF0) == 32 )
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2156 spell_texture_name = "sp28a";
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2157 if ( (item->uAttributes & 0xF0) == 64 )
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2158 spell_texture_name = "sp30a";
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2159 if ( (item->uAttributes & 0xF0) == 128 )
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2160 spell_texture_name = "sp91a";
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2161 spell_texture = pIcons_LOD->LoadTexturePtr(spell_texture_name, TEXTURE_16BIT_PALETTE);
910
Ritor1
parents: 906
diff changeset
2162 dword_50C9A8 -= pEventTimer->uTimeElapsed;
Ritor1
parents: 906
diff changeset
2163 if ( dword_50C9A8 <= 0 )
Ritor1
parents: 906
diff changeset
2164 {
Ritor1
parents: 906
diff changeset
2165 dword_50C9A8 = 0;
913
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2166 item->uAttributes &= 0xFu;
910
Ritor1
parents: 906
diff changeset
2167 ptr_50C9A4 = 0;
Ritor1
parents: 906
diff changeset
2168 }
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2169 pRenderer->_4A63E6(493, 91, pIcons_LOD->GetTexture(pItemTextureNum), spell_texture, GetTickCount() * 0.1, 0, 255);
910
Ritor1
parents: 906
diff changeset
2170 }
Ritor1
parents: 906
diff changeset
2171 else
Ritor1
parents: 906
diff changeset
2172 {
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2173 if (item->Broken())
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2174 pRenderer->DrawTransparentRedShade(493, 91, pIcons_LOD->GetTexture(pItemTextureNum));
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2175 else if (!item->Identified())
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2176 pRenderer->DrawTransparentGreenShade(493, 91, pIcons_LOD->GetTexture(pItemTextureNum));
910
Ritor1
parents: 906
diff changeset
2177 else
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2178 pRenderer->DrawTextureTransparent(493, 91, pIcons_LOD->GetTexture(pItemTextureNum));
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2179
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2180 pRenderer->_4A601E(493, 91, pIcons_LOD->GetTexture(pItemTextureNum), v41);
910
Ritor1
parents: 906
diff changeset
2181 }
Ritor1
parents: 906
diff changeset
2182 }
913
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2183 pItemNum = pPlayers[uPlayerID]->pEquipment.uGlove;
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2184 if ( !pItemNum )
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2185 return;
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2186 item = &pPlayers[uPlayerID]->pInventoryItems[pItemNum - 1];
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2187 pItemTextureNum = pIcons_LOD->LoadTexture(pItemsTable->pItems[item->uItemID].pIconName, TEXTURE_16BIT_PALETTE);
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2188 if ( !(item->uAttributes & 0xF0) )
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2189 {
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2190 if (item->Broken())
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2191 pRenderer->DrawTransparentRedShade(586, 88, pIcons_LOD->GetTexture(pItemTextureNum));
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2192 else if (!item->Identified())
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2193 pRenderer->DrawTransparentGreenShade(586, 88, pIcons_LOD->GetTexture(pItemTextureNum));
913
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2194 else
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2195 pRenderer->DrawTextureTransparent(586, 88, pIcons_LOD->GetTexture(pItemTextureNum));
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2196
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2197 pRenderer->_4A601E(586, 88,pIcons_LOD->GetTexture(pItemTextureNum), pItemNum);
913
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2198 }
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2199 else
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2200 {
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2201 if ( (item->uAttributes & 0xF0) == 16 )
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2202 spell_texture_name = "sptext01";
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2203 if ( (item->uAttributes & 0xF0) == 32 )
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2204 spell_texture_name = "sp28a";
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2205 if ( (item->uAttributes & 0xF0) == 64 )
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2206 spell_texture_name = "sp30a";
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2207 if ( (item->uAttributes & 0xF0) == 128 )
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2208 spell_texture_name = "sp91a";
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 939
diff changeset
2209 spell_texture = pIcons_LOD->LoadTexturePtr(spell_texture_name, TEXTURE_16BIT_PALETTE);
913
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2210 dword_50C9A8 -= pEventTimer->uTimeElapsed;
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2211 if ( dword_50C9A8 <= 0 )
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2212 {
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2213 dword_50C9A8 = 0;
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2214 item->uAttributes &= 0xFu;
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2215 ptr_50C9A4 = 0;
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2216 }
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2217 pRenderer->_4A63E6(586, 88, pIcons_LOD->GetTexture(pItemTextureNum), spell_texture, GetTickCount() * 0.1, 0, 255);
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2218 }
a8a3efd631de CharacterUI_DrawPaperdollWithRingOverlay clean
Ritor1
parents: 910
diff changeset
2219 }
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2220
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2221 //----- (0043BCA7) --------------------------------------------------------
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2222 void CharacterUI_LoadPaperdollTextures()
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2223 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2224 int v0; // edi@7
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2225 enum CHARACTER_RACE pRace; // ebx@7
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2226 signed int pSex; // eax@7
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2227 int v3; // ebx@10
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2228 Player *pPlayer; // edi@12
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2229 unsigned __int8 v5; // cl@12
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2230 int v6; // edi@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2231 unsigned int v7; // eax@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2232 Player *pPlayer2; // ebx@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2233 char *v9; // ebx@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2234 char v10; // al@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2235 signed int v11; // edi@21
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2236 unsigned int v22; // eax@76
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2237 int v23; // ecx@76
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2238 unsigned int v24; // eax@78
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2239 int v25; // ecx@78
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2240 int v26; // ebx@79
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2241 unsigned int v27; // eax@80
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2242 int v28; // ecx@80
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2243 int v30; // [sp+10h] [bp-28h]@5
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2244 signed int v32; // [sp+10h] [bp-28h]@75
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2245 signed int v33; // [sp+10h] [bp-28h]@77
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2246 int v34; // [sp+10h] [bp-28h]@79
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2247 int pItemTXTNum; // [sp+14h] [bp-24h]@75
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2248 int v37; // [sp+14h] [bp-24h]@77
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2249 signed int v38; // [sp+14h] [bp-24h]@79
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2250 int v42; // [sp+20h] [bp-18h]@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2251 int v43; // [sp+20h] [bp-18h]@73
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2252 char pContainer[128]; // [sp+24h] [bp-14h]@12
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2253
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2254 uTextureID_MAGNIF_B = pIcons_LOD->LoadTexture("MAGNIF-B", TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2255 //if ( !pParty->uAlignment || pParty->uAlignment == 1 || pParty->uAlignment == 2 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2256 uTextureID_BACKDOLL = pIcons_LOD->LoadTexture("BACKDOLL", TEXTURE_16BIT_PALETTE);
910
Ritor1
parents: 906
diff changeset
2257 uTextureID_right_panel_loop = uTextureID_right_panel;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2258 v30 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2259 uTextureID_BACKHAND = pIcons_LOD->LoadTexture("BACKHAND", TEXTURE_16BIT_PALETTE);
910
Ritor1
parents: 906
diff changeset
2260 uTextureID_detaliz_close_button = uExitCancelTextureId;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2261 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2262 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2263 v42 = v30 + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2264 if ( sub_43EE77_ProbablyIfUnderwaterSuitIsEquipped(v30 + 1) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2265 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2266 v0 = v30;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2267 pRace = pPlayers[v30 + 1]->GetRace();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2268 pSex = pPlayers[v30 + 1]->GetSexByVoice();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2269 if ( pRace && pRace != 1 && pRace != 2 )//race == 3
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2270 v3 = (pSex != 0) + 3;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2271 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2272 v3 = (pSex != 0) + 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2273 wsprintfA(pContainer, "pc23v%dBod", v3);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2274 papredoll_dbods[v0] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);//Body texture
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2275 wsprintfA(pContainer, "pc23v%dlad", v3);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2276 papredoll_dlads[v0] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);// Left Hand
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2277 wsprintfA(pContainer, "pc23v%dlau", v3);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2278 papredoll_dlaus[v0] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);// Left Hand2
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2279 wsprintfA(pContainer, "pc23v%drh", v3);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2280 papredoll_drhs[v0] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);// Right Hand
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2281 wsprintfA(pContainer, "pc23v%dlh", v3);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2282 papredoll_dlhs[v0] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);// Left Fist
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2283 wsprintfA(pContainer, "pc23v%dlhu", v3);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2284 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
2285 pPlayer = pPlayers[v0 + 1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2286 v5 = pPlayer->uFace;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2287 if ( v5 == 12 || v5 == 13 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2288 papredoll_dbrds[(char)v5] = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2289 papredoll_flying_feet[pPlayer->uFace] = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2290 IsPlayerWearingWatersuit[v30 + 1] = 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2291 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2292 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2293 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2294 v6 = v30;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2295 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
2296 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
2297 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
2298 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
2299 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
2300 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
2301 pPlayer2 = pPlayers[v30 + 1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2302 papredoll_dlhus[v30] = v7;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2303 v9 = (char *)&pPlayer2->uFace;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2304 v10 = *v9;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2305 if ( *v9 == 12 || v10 == 13 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2306 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2307 wsprintfA(pContainer, "pc%02dbrd", v10 + 1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2308 v9 = (char *)&pPlayers[v6 + 1]->uFace;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2309 papredoll_dbrds[*v9] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
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 wsprintfA(pContainer, "item281pc%02d", *v9 + 1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2312 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
2313 IsPlayerWearingWatersuit[v30 + 1] = 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 ++v30;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2316 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2317 while ( v42 < 4 );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2318 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
2319 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
2320 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
2321 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
2322 papredoll_dbrds[9] = pIcons_LOD->LoadTexture("ib-cd1-d", TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2323 papredoll_dbrds[7] = pIcons_LOD->LoadTexture("ib-cd2-d", TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2324 papredoll_dbrds[5] = pIcons_LOD->LoadTexture("ib-cd3-d", TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2325 papredoll_dbrds[3] = pIcons_LOD->LoadTexture("ib-cd4-d", TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2326 papredoll_dbrds[1] = pIcons_LOD->LoadTexture("ib-cd5-d", TEXTURE_16BIT_PALETTE);
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2327 for ( v11 = 0; v11 < 54; ++v11 )// test equipment
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2328 {
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2329 party_has_equipment[v11] = 0;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2330 if ( pParty->pPickedItem.uItemID != v11 + 66 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2331 {
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2332 for ( uint i = 0; i < 4; ++i)
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2333 {
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2334 if ( Player_has_item(v11 + 66, &pParty->pPlayers[i], 0) )
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2335 party_has_equipment[v11] = 1;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2336 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2337 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2338 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2339 memset(byte_5111F6, 0, 16);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2340 for (uint i = 0; i < 4; ++i)
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2341 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2342 auto player = pParty->pPlayers + i;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2343
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2344 if (Player_has_item(ITEM_ARTICACT_GOVERNONS_ARMOR, player, 1)) byte_5111F6[0] = 1;
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2345 if (Player_has_item(ITEM_ARTIFACT_YORUBA, player, 1)) byte_5111F6[1] = 1;
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2346 if (Player_has_item(ITEM_RELIC_HARECS_LEATHER, player, 1)) byte_5111F6[2] = 1;
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2347 if (Player_has_item(ITEM_ARTIFACT_LEAGUE_BOOTS, player, 1)) byte_5111F6[3] = 1;
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2348 if (Player_has_item(ITEM_RELIC_TALEDONS_HELM, player, 1)) byte_5111F6[4] = 1;
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2349 if (Player_has_item(ITEM_RELIC_SCHOLARS_CAP, player, 1)) byte_5111F6[5] = 1;
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2350 if (Player_has_item(ITEM_RELIC_PHYNAXIAN_CROWN, player, 1)) byte_5111F6[6] = 1;
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2351 if (Player_has_item(ITEM_ARTIFACT_MINDS_EYE, player, 1)) byte_5111F6[7] = 1;
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2352 if (Player_has_item(ITEM_RARE_SHADOWS_MASK, player, 1)) byte_5111F6[8] = 1;
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2353 if (Player_has_item(ITEM_RILIC_TITANS_BELT, player, 1)) byte_5111F6[9] = 1;
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2354 if (Player_has_item(ITEM_ARTIFACT_HEROS_BELT, player, 1)) byte_5111F6[10] = 1;
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2355 if (Player_has_item(ITEM_RELIC_TWILIGHT, player, 1)) byte_5111F6[11] = 1;
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2356 if (Player_has_item(ITEM_ARTIFACT_CLOAK_OF_THE_SHEEP, player, 1)) byte_5111F6[12] = 1;
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2357 if (Player_has_item(ITEM_RARE_SUN_CLOAK, player, 1)) byte_5111F6[13] = 1;
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2358 if (Player_has_item(ITEM_RARE_MOON_CLOAK, player, 1)) byte_5111F6[14] = 1;
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2359 if (Player_has_item(ITEM_RARE_VAMPIRES_CAPE, player, 1)) byte_5111F6[15] = 1;
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2360 if (Player_has_item(ITEM_ELVEN_CHAINMAIL, player, 1)) byte_5111F6[16] = 1;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2361 }
938
016e3577865c stru289 removed, some data movements
Nomad
parents: 937
diff changeset
2362
016e3577865c stru289 removed, some data movements
Nomad
parents: 937
diff changeset
2363
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2364 for (uint i = 0; i < 2; ++i)
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2365 {
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2366 for ( uint j = 0; j < 5; ++j )//Belt
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2367 {
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2368 GetItemTextureFilename(pContainer, j + 100, i + 1, 0);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2369 paperdoll_belt_texture[i][j] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2370 }
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2371 GetItemTextureFilename(pContainer, 535, i + 1, 0);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2372 paperdoll_belt_texture[i][6] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2373 for ( uint j = 0; j < 11; ++j )//Helm
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2374 {
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2375 GetItemTextureFilename(pContainer, j + 89, i + 1, 0);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2376 paperdoll_helm_texture[i][j] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2377 }
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2378 GetItemTextureFilename(pContainer, 521, i + 1, 0);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2379 paperdoll_helm_texture[i][11] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2380 GetItemTextureFilename(pContainer, 522, i + 1, 0);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2381 paperdoll_helm_texture[i][12] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2382 GetItemTextureFilename(pContainer, 523, i + 1, 0);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2383 paperdoll_helm_texture[i][13] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2384 GetItemTextureFilename(pContainer, 532, i + 1, 0);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2385 paperdoll_helm_texture[i][14] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2386 GetItemTextureFilename(pContainer, 544, i + 1, 0);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2387 paperdoll_helm_texture[i][15] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2388 if ( _43ED6F_check_party_races(true) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2389 papredoll_dbrds[11] = pIcons_LOD->LoadTexture("item092v3", TEXTURE_16BIT_PALETTE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2390 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2391 v43 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2392 for (uint i = 0; i < 4; ++i)
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 if ( sub_43EDB9_get_some_race_sex_relation_2(i) )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2395 {
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2396 GetItemTextureFilename(pContainer, 524, i + 1, 0);
938
016e3577865c stru289 removed, some data movements
Nomad
parents: 937
diff changeset
2397 paperdoll_belt_texture[i][5] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);//Titans belt
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2398 pItemTXTNum = 66;
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2399 for ( v32 = 0; v32 < 13; ++v32 )//simple armor
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2400 {
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2401 GetItemTextureFilename(pContainer, pItemTXTNum, i + 1, 0);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2402 paperdoll_armor_texture[i][v32][0] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2403 GetItemTextureFilename(pContainer, pItemTXTNum, i + 1, 1);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2404 paperdoll_armor_texture[i][v32][1] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2405 GetItemTextureFilename(pContainer, pItemTXTNum, i + 1, 2);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2406 paperdoll_armor_texture[i][v32][2] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2407 pItemTXTNum++;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2408 }
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2409 GetItemTextureFilename(pContainer, 516, i + 1, 0);//artefacts
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2410 paperdoll_armor_texture[i][v32][0] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2411 GetItemTextureFilename(pContainer, 516, i + 1, 1);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2412 paperdoll_armor_texture[i][v32][1] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2413 GetItemTextureFilename(pContainer, 516, i + 1, 2);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2414 paperdoll_armor_texture[i][v32][2] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2415 GetItemTextureFilename(pContainer, 505, i + 1, 0);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2416 paperdoll_armor_texture[i][v32 + 1][0] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2417 GetItemTextureFilename(pContainer, 505, i + 1, 1);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2418 paperdoll_armor_texture[i][v32 + 1][1] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2419 GetItemTextureFilename(pContainer, 505, i + 1, 2);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2420 paperdoll_armor_texture[i][v32 + 1][2] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2421 GetItemTextureFilename(pContainer, 504, i + 1, 0);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2422 paperdoll_armor_texture[i][v32 + 2][0] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2423 GetItemTextureFilename(pContainer, 504, i + 1, 1);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2424 paperdoll_armor_texture[i][v32 + 2][1] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2425 GetItemTextureFilename(pContainer, 504, i + 1, 2);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2426 paperdoll_armor_texture[i][v32 + 2][2] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2427 GetItemTextureFilename(pContainer, 533, i + 1, 0);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2428 paperdoll_armor_texture[i][v32 + 3][0] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2429 GetItemTextureFilename(pContainer, 533, i + 1, 1);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2430 paperdoll_armor_texture[i][v32 + 3][1] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2431 GetItemTextureFilename(pContainer, 533, i + 1, 2);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2432 paperdoll_armor_texture[i][v32 + 3][2] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2433 for ( v33 = 0; v33 < 5; ++v33 )//boots
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2434 {
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2435 GetItemTextureFilename(pContainer, v33 + 115, i + 1, 0);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2436 paperdoll_boots_texture[i][v33] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2437 }
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2438 GetItemTextureFilename(pContainer, 512, i + 1, 0);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2439 paperdoll_boots_texture[i][v33] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2440 for ( v38 = 0; v38 < 5; ++v38 )//Cloak
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2441 {
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2442 GetItemTextureFilename(pContainer, v38 + 105, i + 1, 0);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2443 paperdoll_cloak_texture[i][v38] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2444 GetItemTextureFilename(pContainer, v38 + 105, i + 1, 1);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2445 paperdoll_cloak_collar_texture[i][v38] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2446 }
899
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2447 GetItemTextureFilename(pContainer, 525, i + 1, 0);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2448 paperdoll_cloak_texture[i][5] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2449 GetItemTextureFilename(pContainer, 530, i + 1, 0);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2450 paperdoll_cloak_texture[i][6] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2451 GetItemTextureFilename(pContainer, 547, i + 1, 0);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2452 paperdoll_cloak_texture[i][7] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2453 GetItemTextureFilename(pContainer, 548, i + 1, 0);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2454 paperdoll_cloak_texture[i][8] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2455 GetItemTextureFilename(pContainer, 550, i + 1, 0);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2456 paperdoll_cloak_texture[i][9] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2457 GetItemTextureFilename(pContainer, 525, i + 1, 1);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2458 paperdoll_cloak_collar_texture[i][5] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2459 GetItemTextureFilename(pContainer, 530, i + 1, 1);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2460 paperdoll_cloak_collar_texture[i][6] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2461 GetItemTextureFilename(pContainer, 547, i + 1, 1);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2462 paperdoll_cloak_collar_texture[i][7] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2463 GetItemTextureFilename(pContainer, 548, i + 1, 1);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2464 paperdoll_cloak_collar_texture[i][8] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2465 GetItemTextureFilename(pContainer, 550, i + 1, 1);
393a83dcc359 Paperdoll equipment error fixed
Ritor1
parents: 898
diff changeset
2466 paperdoll_cloak_collar_texture[i][9] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2467 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2468 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2469 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2470 v26 = v43;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2471 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2472 v43 = v26 + 40;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2473 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2474 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2475
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2476 //----- (00419401) --------------------------------------------------------
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2477 void __cdecl CharacterUI_SkillScreen_Draw()
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2478 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2479 unsigned int v0; // ecx@3
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2480 GUIButton *pButton; // eax@3
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2481 GUIFont *v2; // eax@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2482 unsigned int v3; // esi@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2483 int v4; // eax@10
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2484 unsigned int v5; // esi@14
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2485 int v6; // eax@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2486 unsigned int v7; // esi@19
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2487 int v8; // eax@21
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2488 unsigned int v9; // esi@25
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2489 int v10; // eax@27
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2490 int a2; // [sp+10h] [bp-14h]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2491 int v12; // [sp+14h] [bp-10h]@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2492 int v13; // [sp+14h] [bp-10h]@19
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2493 int *v14; // [sp+18h] [bp-Ch]@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2494 int *v15; // [sp+18h] [bp-Ch]@14
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2495 int *v16; // [sp+18h] [bp-Ch]@19
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2496 int *v17; // [sp+18h] [bp-Ch]@25
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2497 Player *v18; // [sp+1Ch] [bp-8h]@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2498 int a5; // [sp+20h] [bp-4h]@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2499
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2500 a2 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2501 if ( dword_507CC0 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2502 sub_4196A0();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2503 v0 = uActiveCharacter;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2504 dword_507CC0 = uActiveCharacter;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2505 for ( pButton = pGUIWindow_CurrentMenu->pControlsHead; pButton; pButton = pButton->pNext )
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 831
diff changeset
2506 {
dfd683c4f538 Hotkeys fixed
Nomad
parents: 831
diff changeset
2507 if ( pButton->msg == UIMSG_InventoryLeftClick )
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2508 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2509 dword_50698C = pButton->uX;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2510 dword_506988 = pButton->uY;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2511 dword_506984 = pButton->uZ;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2512 dword_506980 = pButton->uW;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2513 pButton->uW = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2514 pButton->uZ = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2515 pButton->uY = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2516 pButton->uX = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2517 v0 = uActiveCharacter;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2518 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2519 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2520 v12 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2521 a5 = pGUIWindow_CurrentMenu->uNumControls;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2522 v18 = &pParty->pPlayers[v0-1];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2523 v2 = pFontLucida;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2524 v14 = pWeaponSkills;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2525 v3 = 2 * LOBYTE(pFontLucida->uFontHeight) + 13;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2526 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2527 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2528 if ( v18->pActiveSkills[*v14] & 0x3F )//crash
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2529 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2530 v4 = LOBYTE(v2->uFontHeight);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2531 v3 = v3 + v4 - 3;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2532 ++a2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2533 ++v12;
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 831
diff changeset
2534 pGUIWindow_CurrentMenu->CreateButton(0x18u, v3, 0xCCu, v4 - 3, 3, *v14 | 0x8000, UIMSG_SkillUp, *v14, 0, "", 0, 0);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2535 v2 = pFontLucida;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2536 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2537 ++v14;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2538 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2539 while ( v14 <= &pWeaponSkills[8] );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2540 if ( !v12 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2541 v3 = v3 + LOBYTE(v2->uFontHeight) - 3;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2542 v15 = pMagicSkills;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2543 v5 = v3 + 2 * LOBYTE(v2->uFontHeight) - 6;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2544 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2545 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2546 if ( v18->pActiveSkills[*v15] & 0x3F && a2 < 15 )
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 v6 = LOBYTE(v2->uFontHeight);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2549 v5 = v5 + v6 - 3;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2550 ++a2;
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 831
diff changeset
2551 pGUIWindow_CurrentMenu->CreateButton(0x18u, v5, 0xCCu, v6 - 3, 3, *v15 | 0x8000, UIMSG_SkillUp, *v15, 0, "", 0, 0);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2552 v2 = pFontLucida;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2553 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2554 ++v15;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2555 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2556 while ( v15 <= &pMagicSkills[8] );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2557 v13 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2558 v16 = pArmorSkills;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2559 v7 = 2 * LOBYTE(v2->uFontHeight) + 13;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2560 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2561 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2562 if ( v18->pActiveSkills[*v16] & 0x3F )
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 v8 = LOBYTE(v2->uFontHeight);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2565 v7 = v7 + v8 - 3;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2566 ++a2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2567 ++v13;
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 831
diff changeset
2568 pGUIWindow_CurrentMenu->CreateButton(0xF6u, v7, 0xCCu, v8 - 3, 3, *v16 | 0x8000, UIMSG_SkillUp, *v16, 0, "", 0, 0);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2569 v2 = pFontLucida;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2570 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2571 ++v16;
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 while ( v16 <= &pArmorSkills[4] );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2574 if ( !v13 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2575 v7 = v7 + LOBYTE(v2->uFontHeight) - 3;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2576 v17 = pMiscSkills;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2577 v9 = v7 + 2 * LOBYTE(v2->uFontHeight) - 6;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2578 do
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 if ( v18->pActiveSkills[*v17] & 0x3F )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2581 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2582 v10 = LOBYTE(v2->uFontHeight);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2583 v9 = v9 + v10 - 3;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2584 ++a2;
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 831
diff changeset
2585 pGUIWindow_CurrentMenu->CreateButton(0xF6u, v9, 0xCCu, v10 - 3, 3, *v17 | 0x8000, UIMSG_SkillUp, *v17, 0, "", 0, 0);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2586 v2 = pFontLucida;
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 ++v17;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2589 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2590 while ( v17 <= &pMiscSkills[11] );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2591 if ( a2 )
972
c8a0f6d89c70 Some inqury on selecting Knight bug.
Nomad
parents: 949
diff changeset
2592 pGUIWindow_CurrentMenu->_41D08F_set_keyboard_control_group(a2, 1, 0, a5);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2593 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2594
949
Nomad
parents: 948
diff changeset
2595 //----- (00418511) --------------------------------------------------------
Nomad
parents: 948
diff changeset
2596 char __fastcall CharacterUI_StatsTab_Draw(unsigned int uPlayerID)
Nomad
parents: 948
diff changeset
2597 {
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2598 Player *pPlayer; // edi@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2599 unsigned int v4; // eax@2
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2600 int v7; // ebp@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2601 int v8; // eax@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2602 unsigned int v9; // eax@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2603 int v10; // ST34_4@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2604 int v13; // ebp@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2605 int v14; // eax@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2606 unsigned int v15; // eax@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2607 int v19; // ebp@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2608 int v20; // eax@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2609 unsigned int v21; // eax@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2610 int v25; // ebp@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2611 int v26; // eax@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2612 unsigned int v27; // eax@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2613 int v31; // ebp@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2614 int v32; // eax@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2615 unsigned int v33; // eax@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2616 int v37; // ebp@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2617 int v38; // eax@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2618 unsigned int v39; // eax@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2619 int v43; // ebp@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2620 int v44; // eax@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2621 unsigned int v45; // eax@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2622 signed int v49; // eax@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2623 unsigned int v50; // eax@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2624 int v53; // eax@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2625 unsigned int v54; // eax@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2626 int v58; // ebp@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2627 int v59; // eax@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2628 unsigned int v60; // eax@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2629 unsigned int v62; // eax@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2630 signed int v64; // eax@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2631 unsigned __int8 v66; // al@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2632 char *v67; // eax@9
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2633 signed int v70; // ebp@11
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2634 signed int v71; // eax@11
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2635 unsigned int v72; // eax@11
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2636 int v75; // ebp@13
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2637 int v76; // eax@13
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2638 unsigned int v77; // eax@13
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2639 char *v78; // ecx@14
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2640 unsigned int v81; // eax@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2641 int v83; // eax@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2642 char *v85; // eax@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2643 int v87; // eax@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2644 char *v89; // eax@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2645 int v90; // eax@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2646 unsigned int v92; // eax@19
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2647 int v93; // eax@19
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2648 unsigned int v95; // eax@22
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2649 int v96; // eax@22
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2650 unsigned int v98; // eax@25
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2651 int v99; // eax@25
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2652 unsigned int v101; // eax@27
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2653 int v102; // eax@27
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2654 unsigned int v104; // eax@30
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2655 unsigned int v106; // eax@32
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2656 int v107; // eax@33
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2657 unsigned int v109; // eax@36
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2658 unsigned int v111; // eax@38
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2659 const char *a2; // [sp+14h] [bp-Ch]@4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2660 const char *a2a; // [sp+14h] [bp-Ch]@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2661 const char *a2b; // [sp+14h] [bp-Ch]@11
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2662 const char *a2c; // [sp+14h] [bp-Ch]@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2663 const char *a2d; // [sp+14h] [bp-Ch]@19
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2664 const char *a2e; // [sp+14h] [bp-Ch]@22
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2665 const char *a2f; // [sp+14h] [bp-Ch]@25
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2666 const char *a2g; // [sp+14h] [bp-Ch]@27
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2667 const char *a2h; // [sp+14h] [bp-Ch]@33
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2668 int v131; // [sp+18h] [bp-8h]@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2669 int v132; // [sp+18h] [bp-8h]@19
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2670 int v133; // [sp+18h] [bp-8h]@22
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2671 int v134; // [sp+18h] [bp-8h]@25
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2672 int v135; // [sp+18h] [bp-8h]@27
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2673 int v136; // [sp+18h] [bp-8h]@33
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2674
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2675 pPlayer = &pParty->pPlayers[uPlayerID-1];
949
Nomad
parents: 948
diff changeset
2676 pRenderer->DrawTextureIndexed(8, 8, pIcons_LOD->LoadTexturePtr("fr_stats", TEXTURE_16BIT_PALETTE));
Nomad
parents: 948
diff changeset
2677 sprintf(pTmpBuf, "\f%05d", TargetColor(0xFF, 0xFF, 0x9B));
809
7bb33867d2cb Pv[] in sprintfex
Ritor1
parents: 727
diff changeset
2678 sprintfex(pTmpBuf2, pGlobalTXT_LocalizationStrings[429], pPlayer->pName, pClassNames[pPlayer->classType]);//^Pi[%s] %s
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2679 strcat(pTmpBuf, pTmpBuf2);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2680 if ( pPlayer->uSkillPoints )
949
Nomad
parents: 948
diff changeset
2681 v4 = TargetColor(0, 0xFFu, 0);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2682 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2683 v4 = 0xFFFFu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2684 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
2685 strcat(pTmpBuf, pTmpBuf2);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2686 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, 18, 0, pTmpBuf, 0, 0, 0);
949
Nomad
parents: 948
diff changeset
2687
Nomad
parents: 948
diff changeset
2688 v10 = 53;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2689 v7 = pPlayer->GetBaseStrength();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2690 v8 = pPlayer->GetActualMight();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2691 v9 = UI_GetHealthManaStringColor(v8, v7);
949
Nomad
parents: 948
diff changeset
2692 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[144], v9, v8, v7);//Might
Nomad
parents: 948
diff changeset
2693 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v10, 0, pTmpBuf, 0, 0, 0);
Nomad
parents: 948
diff changeset
2694
Nomad
parents: 948
diff changeset
2695 v10 += LOBYTE(pFontArrus->uFontHeight) - 2;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2696 v13 = pPlayer->GetBaseIntelligence();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2697 v14 = pPlayer->GetActualIntelligence();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2698 v15 = UI_GetHealthManaStringColor(v14, v13);
949
Nomad
parents: 948
diff changeset
2699 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[116], v15, v14, v13);//Intellect
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2700 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v10, 0, pTmpBuf, 0, 0, 0);
949
Nomad
parents: 948
diff changeset
2701
Nomad
parents: 948
diff changeset
2702 v10 += LOBYTE(pFontArrus->uFontHeight) - 2;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2703 v19 = pPlayer->GetBaseWillpower();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2704 v20 = pPlayer->GetActualWillpower();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2705 v21 = UI_GetHealthManaStringColor(v20, v19);
949
Nomad
parents: 948
diff changeset
2706 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[163], v21, v20, v19);//
Nomad
parents: 948
diff changeset
2707 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v10, 0, pTmpBuf, 0, 0, 0);
Nomad
parents: 948
diff changeset
2708
Nomad
parents: 948
diff changeset
2709 v10 += LOBYTE(pFontArrus->uFontHeight) - 2;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2710 v25 = pPlayer->GetBaseEndurance();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2711 v26 = pPlayer->GetActualEndurance();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2712 v27 = UI_GetHealthManaStringColor(v26, v25);
949
Nomad
parents: 948
diff changeset
2713 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[75], v27, v26, v25);//
Nomad
parents: 948
diff changeset
2714 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v10, 0, pTmpBuf, 0, 0, 0);
Nomad
parents: 948
diff changeset
2715
Nomad
parents: 948
diff changeset
2716 v10 += LOBYTE(pFontArrus->uFontHeight) - 2;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2717 v31 = pPlayer->GetBaseAccuracy();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2718 v32 = pPlayer->GetActualAccuracy();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2719 v33 = UI_GetHealthManaStringColor(v32, v31);
949
Nomad
parents: 948
diff changeset
2720 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[1], v33, v32, v31);
Nomad
parents: 948
diff changeset
2721 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v10, 0, pTmpBuf, 0, 0, 0);
Nomad
parents: 948
diff changeset
2722
Nomad
parents: 948
diff changeset
2723 v10 += LOBYTE(pFontArrus->uFontHeight) - 2;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2724 v37 = pPlayer->GetBaseSpeed();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2725 v38 = pPlayer->GetActualSpeed();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2726 v39 = UI_GetHealthManaStringColor(v38, v37);
949
Nomad
parents: 948
diff changeset
2727 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[211], v39, v38, v37);
Nomad
parents: 948
diff changeset
2728 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v10, 0, pTmpBuf, 0, 0, 0);
Nomad
parents: 948
diff changeset
2729
Nomad
parents: 948
diff changeset
2730 v10 += LOBYTE(pFontArrus->uFontHeight) - 2;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2731 v43 = pPlayer->GetBaseLuck();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2732 v44 = pPlayer->GetActualLuck();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2733 v45 = UI_GetHealthManaStringColor(v44, v43);
949
Nomad
parents: 948
diff changeset
2734 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n\n", pGlobalTXT_LocalizationStrings[136], v45, v44, v43);
Nomad
parents: 948
diff changeset
2735 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v10, 0, pTmpBuf, 0, 0, 0);
Nomad
parents: 948
diff changeset
2736
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2737 a2 = "%s\f%05u\r424%d\f00000 /\t185%d\n";
949
Nomad
parents: 948
diff changeset
2738 v10 += 2 * LOBYTE(pFontArrus->uFontHeight) + 5;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2739 if ( pPlayer->GetMaxHealth() >= 1000 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2740 a2 = "%s\f%05u\r388%d\f00000 / %d\n";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2741 v49 = pPlayer->GetMaxHealth();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2742 v50 = UI_GetHealthManaStringColor(pPlayer->sHealth, v49);
949
Nomad
parents: 948
diff changeset
2743 sprintf(pTmpBuf, a2, pGlobalTXT_LocalizationStrings[108], v50, pPlayer->sHealth, v49);
Nomad
parents: 948
diff changeset
2744 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v10, 0, pTmpBuf, 0, 0, 0);
Nomad
parents: 948
diff changeset
2745
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2746 a2a = "%s\f%05u\r424%d\f00000 /\t185%d\n";
949
Nomad
parents: 948
diff changeset
2747 v10 += LOBYTE(pFontArrus->uFontHeight) - 2;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2748 if ( pPlayer->GetMaxMana() >= 1000 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2749 a2a = "%s\f%05u\r388%d\f00000 / %d\n";
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2750 v53 = pPlayer->GetMaxMana();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2751 v54 = UI_GetHealthManaStringColor(pPlayer->sMana, v53);
949
Nomad
parents: 948
diff changeset
2752 sprintf(pTmpBuf, a2a, pGlobalTXT_LocalizationStrings[212], v54, pPlayer->sMana, v53);
Nomad
parents: 948
diff changeset
2753 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v10, 0, pTmpBuf, 0, 0, 0);
Nomad
parents: 948
diff changeset
2754
Nomad
parents: 948
diff changeset
2755 v10 += LOBYTE(pFontArrus->uFontHeight) - 2;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2756 v58 = pPlayer->GetBaseAC();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2757 v59 = pPlayer->GetActualAC();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2758 v60 = UI_GetHealthManaStringColor(v59, v58);
949
Nomad
parents: 948
diff changeset
2759 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n\n", pGlobalTXT_LocalizationStrings[12], v60, v59, v58);
Nomad
parents: 948
diff changeset
2760 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v10, 0, pTmpBuf, 0, 0, 0);
Nomad
parents: 948
diff changeset
2761
Nomad
parents: 948
diff changeset
2762 v10 += 2 * LOBYTE(pFontArrus->uFontHeight) - 2;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2763 v62 = pPlayer->GetMajorConditionIdx();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2764 v64 = GetConditionDrawColor(v62);
949
Nomad
parents: 948
diff changeset
2765 sprintf(pTmpBuf, "%s: \f%05d%s\n", pGlobalTXT_LocalizationStrings[47], v64, aCharacterConditionNames[v62]);
Nomad
parents: 948
diff changeset
2766 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x1Au, v10, 0, pTmpBuf, 226, 0);
Nomad
parents: 948
diff changeset
2767
Nomad
parents: 948
diff changeset
2768 v10 += LOBYTE(pFontArrus->uFontHeight) + - 1;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2769 v66 = pPlayer->uQuickSpell;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2770 if ( v66 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2771 v67 = pSpellStats->pInfos[v66].pShortName;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2772 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2773 v67 = pGlobalTXT_LocalizationStrings[153];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2774 sprintf(pTmpBuf, "%s: %s", pGlobalTXT_LocalizationStrings[172], v67);
949
Nomad
parents: 948
diff changeset
2775 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x1Au, v10, 0, pTmpBuf, 226, 0);
Nomad
parents: 948
diff changeset
2776
Nomad
parents: 948
diff changeset
2777 v10 = 50;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2778 v70 = pPlayer->GetBaseAge();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2779 v71 = pPlayer->GetActualAge();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2780 v72 = UI_GetHealthManaStringColor(v71, v70);
949
Nomad
parents: 948
diff changeset
2781 sprintf(pTmpBuf, "%s\f%05u\t100%d\f00000 / %d\n", pGlobalTXT_LocalizationStrings[5], v72, v71, v70);
Nomad
parents: 948
diff changeset
2782 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, v10, 0, pTmpBuf, 0, 0, 0);
Nomad
parents: 948
diff changeset
2783
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2784 a2b = "%s\f%05u\t100%d\f00000 / %d\n";
949
Nomad
parents: 948
diff changeset
2785 v10 += LOBYTE(pFontArrus->uFontHeight) - 2;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2786 if ( pPlayer->GetBaseLevel() > 99 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2787 a2b = format_4E2E68;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2788 v75 = pPlayer->GetBaseLevel();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2789 v76 = pPlayer->GetActualLevel();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2790 v77 = UI_GetHealthManaStringColor(v76, v75);
949
Nomad
parents: 948
diff changeset
2791 sprintf(pTmpBuf, a2b, pGlobalTXT_LocalizationStrings[131], v77, v76, v75);
Nomad
parents: 948
diff changeset
2792 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, v10, 0, pTmpBuf, 0, 0, 0);
Nomad
parents: 948
diff changeset
2793
Nomad
parents: 948
diff changeset
2794 v10 += LOBYTE(pFontArrus->uFontHeight) - 2;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2795 if ( (signed __int64)pPlayer->uExperience <= 9999999 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2796 v78 = pGlobalTXT_LocalizationStrings[83];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2797 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2798 v78 = pGlobalTXT_LocalizationStrings[17];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2799 v81 = pPlayer->GetExperienceDisplayColor();
949
Nomad
parents: 948
diff changeset
2800 sprintf(pTmpBuf, "%s\r180\f%05d%lu\f00000\n\n", v78, v81, LODWORD(pPlayer->uExperience));
Nomad
parents: 948
diff changeset
2801 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, v10, 0, pTmpBuf, 0, 0, 0);
Nomad
parents: 948
diff changeset
2802
Nomad
parents: 948
diff changeset
2803 v10 += 2 * LOBYTE(pFontArrus->uFontHeight);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2804 v83 = pPlayer->GetActualAttack(0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2805 sprintf(pTmpBuf, "%s\t100%+d\n", pGlobalTXT_LocalizationStrings[18], v83);
949
Nomad
parents: 948
diff changeset
2806 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, v10, 0, pTmpBuf, 0, 0, 0);
Nomad
parents: 948
diff changeset
2807
Nomad
parents: 948
diff changeset
2808 v10 += LOBYTE(pFontArrus->uFontHeight) - 2;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2809 v85 = pPlayer->GetMeleeDamageString();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2810 sprintf(pTmpBuf, "%s\t100 %s\n", pGlobalTXT_LocalizationStrings[53], v85);
949
Nomad
parents: 948
diff changeset
2811 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, v10, 0, pTmpBuf, 0, 0, 0);
Nomad
parents: 948
diff changeset
2812
Nomad
parents: 948
diff changeset
2813 v10 += LOBYTE(pFontArrus->uFontHeight) - 2;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2814 v87 = pPlayer->GetRangedAttack();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2815 sprintf(pTmpBuf, "%s\t100%+d\n", pGlobalTXT_LocalizationStrings[203], v87);
949
Nomad
parents: 948
diff changeset
2816 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, v10, 0, pTmpBuf, 0, 0, 0);
Nomad
parents: 948
diff changeset
2817
Nomad
parents: 948
diff changeset
2818 v10 += LOBYTE(pFontArrus->uFontHeight) - 2;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2819 v89 = pPlayer->GetRangedDamageString();
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2820 sprintf(pTmpBuf, "%s\t100 %s\n\n", pGlobalTXT_LocalizationStrings[53], v89);
949
Nomad
parents: 948
diff changeset
2821 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, v10, 0, pTmpBuf, 0, 0, 0);
Nomad
parents: 948
diff changeset
2822
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2823 a2c = format_4E2E10;
949
Nomad
parents: 948
diff changeset
2824 v10 += 2 * LOBYTE(pFontArrus->uFontHeight) - 4;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2825 v131 = pPlayer->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_FIRE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2826 v90 = pPlayer->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_FIRE);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2827 if ( v131 > 99 || v90 > 99 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2828 a2c = format_4E2E68;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2829 v92 = UI_GetHealthManaStringColor(v131, v90);
949
Nomad
parents: 948
diff changeset
2830 sprintf(pTmpBuf, a2c, pGlobalTXT_LocalizationStrings[87], v92, v131, v90);
Nomad
parents: 948
diff changeset
2831 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, v10, 0, pTmpBuf, 0, 0, 0);
Nomad
parents: 948
diff changeset
2832
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2833 a2d = format_4E2E10;
949
Nomad
parents: 948
diff changeset
2834 v10 += LOBYTE(pFontArrus->uFontHeight) - 2;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2835 v132 = pPlayer->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_AIR);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2836 v93 = pPlayer->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_AIR);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2837 if ( v132 > 99 || v93 > 99 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2838 a2d = format_4E2E68;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2839 v95 = UI_GetHealthManaStringColor(v132, v93);
949
Nomad
parents: 948
diff changeset
2840 sprintf(pTmpBuf, a2d, pGlobalTXT_LocalizationStrings[6], v95, v132, v93);
Nomad
parents: 948
diff changeset
2841 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, v10, 0, pTmpBuf, 0, 0, 0);
Nomad
parents: 948
diff changeset
2842
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2843 a2e = format_4E2E10;
949
Nomad
parents: 948
diff changeset
2844 v10 += LOBYTE(pFontArrus->uFontHeight) - 2;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2845 v133 = pPlayer->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_WATER);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2846 v96 = pPlayer->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_WATER);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2847 if ( v133 > 99 || v96 > 99 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2848 a2e = format_4E2E68;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2849 v98 = UI_GetHealthManaStringColor(v133, v96);
949
Nomad
parents: 948
diff changeset
2850 sprintf(pTmpBuf, a2e, pGlobalTXT_LocalizationStrings[240], v98, v133, v96);
Nomad
parents: 948
diff changeset
2851 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, v10, 0, pTmpBuf, 0, 0, 0);
Nomad
parents: 948
diff changeset
2852
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2853 a2f = format_4E2E10;
949
Nomad
parents: 948
diff changeset
2854 v10 += LOBYTE(pFontArrus->uFontHeight) - 2;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2855 v134 = pPlayer->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_EARTH);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2856 v99 = pPlayer->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_EARTH);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2857 if ( v134 > 99 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2858 a2f = format_4E2E68;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2859 v101 = UI_GetHealthManaStringColor(v134, v99);
949
Nomad
parents: 948
diff changeset
2860 sprintf(pTmpBuf, a2f, pGlobalTXT_LocalizationStrings[70], v101, v134, v99);
Nomad
parents: 948
diff changeset
2861 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, v10, 0, pTmpBuf, 0, 0, 0);
Nomad
parents: 948
diff changeset
2862
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2863 a2g = format_4E2E10;
949
Nomad
parents: 948
diff changeset
2864 v10 += LOBYTE(pFontArrus->uFontHeight) - 2;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2865 v135 = pPlayer->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_MIND);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2866 v102 = pPlayer->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_MIND);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2867 if ( v135 > 99 || v102 > 99 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2868 a2g = format_4E2E68;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2869 v104 = UI_GetHealthManaStringColor(v135, v102);
949
Nomad
parents: 948
diff changeset
2870 sprintf(pTmpBuf, a2g, pGlobalTXT_LocalizationStrings[142], v104, v135, v102);
Nomad
parents: 948
diff changeset
2871 if ( pPlayer->classType == PLAYER_CLASS_LICH && v102 == 200 )
Nomad
parents: 948
diff changeset
2872 {
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2873 v106 = UI_GetHealthManaStringColor(v135, 200);
949
Nomad
parents: 948
diff changeset
2874 sprintf(pTmpBuf, format_4E2E00, pGlobalTXT_LocalizationStrings[142], v106, pGlobalTXT_LocalizationStrings[625]);
Nomad
parents: 948
diff changeset
2875 }
Nomad
parents: 948
diff changeset
2876 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, v10, 0, pTmpBuf, 0, 0, 0);
Nomad
parents: 948
diff changeset
2877
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2878 a2h = format_4E2E10;
949
Nomad
parents: 948
diff changeset
2879 v10 += LOBYTE(pFontArrus->uFontHeight) - 2;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2880 v136 = pPlayer->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_BODY);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2881 v107 = pPlayer->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_BODY);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2882 if ( v136 > 99 || v107 > 99 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2883 a2h = format_4E2E68;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2884 v109 = UI_GetHealthManaStringColor(v136, v107);
949
Nomad
parents: 948
diff changeset
2885 sprintf(pTmpBuf, a2h, pGlobalTXT_LocalizationStrings[29], v109, v136, v107);
Nomad
parents: 948
diff changeset
2886 if ( pPlayer->classType == PLAYER_CLASS_LICH && v107 == 200 )
Nomad
parents: 948
diff changeset
2887 {
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2888 v111 = UI_GetHealthManaStringColor(v136, 200);
949
Nomad
parents: 948
diff changeset
2889 sprintf(pTmpBuf, format_4E2E00, pGlobalTXT_LocalizationStrings[29], v111, pGlobalTXT_LocalizationStrings[625]);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2890 }
949
Nomad
parents: 948
diff changeset
2891 return pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, v10, 0, pTmpBuf, 0, 0, 0);
Nomad
parents: 948
diff changeset
2892 }
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2893
949
Nomad
parents: 948
diff changeset
2894 //----- (00419100) --------------------------------------------------------
Nomad
parents: 948
diff changeset
2895 void FillAwardsData()
Nomad
parents: 948
diff changeset
2896 {
Nomad
parents: 948
diff changeset
2897 auto pPlayer = pPlayers[uActiveCharacter];
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2898
949
Nomad
parents: 948
diff changeset
2899 memset(achieved_awards, 0, 4000);
Nomad
parents: 948
diff changeset
2900 num_achieved_awards = 0;
Nomad
parents: 948
diff changeset
2901
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2902 memset(pTmpBuf2, 0, 0x7D0u);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2903 dword_506544 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2904 dword_506548 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2905 dword_50651C = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2906 dword_506528 = 0;
949
Nomad
parents: 948
diff changeset
2907 for (int i = 0; i < 105; ++i)
Nomad
parents: 948
diff changeset
2908 {
Nomad
parents: 948
diff changeset
2909 if ( _449B57_test_bit(pPlayer->_guilds_member_bits, i) && pAwards[i].pText )
Nomad
parents: 948
diff changeset
2910 achieved_awards[num_achieved_awards++] = (AwardType)i;
Nomad
parents: 948
diff changeset
2911 }
Nomad
parents: 948
diff changeset
2912 num_achieved_awards_2 = num_achieved_awards;
Nomad
parents: 948
diff changeset
2913 num_achieved_awards = 0;
Nomad
parents: 948
diff changeset
2914
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2915 //sort awards index
949
Nomad
parents: 948
diff changeset
2916 if (num_achieved_awards_2 > 0)
Nomad
parents: 948
diff changeset
2917 {
Nomad
parents: 948
diff changeset
2918 for(int i=0; i<num_achieved_awards_2; ++i)
Nomad
parents: 948
diff changeset
2919 achieved_awards[num_achieved_awards_2 + i] = (AwardType)(rand() % 16);
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2920
949
Nomad
parents: 948
diff changeset
2921 for(int i=1; i<num_achieved_awards_2-1; ++i)
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2922 {
949
Nomad
parents: 948
diff changeset
2923 for (int j = i; j < num_achieved_awards_2-1; ++j )
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2924 {
949
Nomad
parents: 948
diff changeset
2925 auto tmp=achieved_awards[j];
Nomad
parents: 948
diff changeset
2926 if (pAwards[j].uPriority < pAwards[i].uPriority)
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2927 {
949
Nomad
parents: 948
diff changeset
2928 achieved_awards[j] = achieved_awards[i];
Nomad
parents: 948
diff changeset
2929 achieved_awards[i] = tmp;
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2930 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2931 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2932 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2933 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2934 }