Mercurial > mm7
comparison mm7_1.cpp @ 1760:a2ea57410b15
Merge
author | Grumpy7 |
---|---|
date | Tue, 01 Oct 2013 06:19:58 +0200 |
parents | 24e756a50073 |
children | 211dfe2d8db1 |
comparison
equal
deleted
inserted
replaced
1759:845a6503f55c | 1760:a2ea57410b15 |
---|---|
72 fixpoint_mul(y1, y2) + | 72 fixpoint_mul(y1, y2) + |
73 fixpoint_mul(z1, z2); | 73 fixpoint_mul(z1, z2); |
74 } | 74 } |
75 | 75 |
76 //----- (0041D20D) -------------------------------------------------------- | 76 //----- (0041D20D) -------------------------------------------------------- |
77 void __fastcall sub_41D20D_buff_remaining_time_string( int ecx0, struct GUIWindow *edx0, __int64 a3, struct GUIFont *a2 ) | 77 void DrawBuff_remaining_time_string( int uY, struct GUIWindow *window, __int64 remaining_time, struct GUIFont *Font ) |
78 { | 78 { |
79 unsigned int v4; // edi@1 | 79 unsigned int full_time; // esi@1 |
80 unsigned int v5; // esi@1 | 80 signed __int64 hours; // kr00_8@1 |
81 unsigned int v6; // ebp@1 | 81 char *text; // eax@2 |
82 unsigned int v7; // ebx@1 | 82 signed __int64 minutes; // [sp+10h] [bp-10h]@1 |
83 signed __int64 v8; // ST34_8@1 | 83 signed __int64 seconds; // [sp+18h] [bp-8h]@1 |
84 signed __int64 v9; // kr00_8@1 | 84 unsigned int day; // [sp+24h] [bp+4h]@1 |
85 char *v10; // eax@2 | 85 |
86 char *v11; // eax@7 | 86 full_time = (signed __int64)((double)remaining_time * 0.234375); |
87 char *v12; // eax@13 | 87 day = (unsigned int)((full_time / 60) / 60) / 24; |
88 char *v13; // eax@19 | 88 hours = ((full_time / 60) / 60) % 24; |
89 int uY; // [sp+0h] [bp-20h]@1 | 89 minutes = (signed __int64)(full_time / 60) % 60; |
90 GUIWindow *a1; // [sp+4h] [bp-1Ch]@1 | 90 seconds = (signed __int64)full_time % 60; |
91 signed __int64 v17; // [sp+10h] [bp-10h]@1 | |
92 signed __int64 v18; // [sp+18h] [bp-8h]@1 | |
93 unsigned int v19; // [sp+24h] [bp+4h]@1 | |
94 | |
95 a1 = edx0; | |
96 uY = ecx0; | |
97 v4 = (unsigned __int64)(signed __int64)((double)a3 * 0.234375) >> 32; | |
98 v5 = (signed __int64)((double)a3 * 0.234375); | |
99 v6 = (unsigned __int64)((signed __int64)((double)a3 * 0.234375) / 60) >> 32; | |
100 v7 = (signed __int64)((double)a3 * 0.234375) / 60; | |
101 v8 = (signed __int64)((double)a3 * 0.234375) / 60 / 60; | |
102 v19 = (unsigned int)v8 / 0x18; | |
103 v18 = (signed __int64)__PAIR__(v4, v5) % 60; | |
104 v17 = (signed __int64)__PAIR__(v6, v7) % 60; | |
105 v9 = v8 % 24; | |
106 strcpy(pTmpBuf.data(), "\r020"); | 91 strcpy(pTmpBuf.data(), "\r020"); |
107 if ( (unsigned int)v8 / 0x18 ) | 92 if ( day ) |
108 { | 93 { |
109 v10 = pGlobalTXT_LocalizationStrings[57]; // Days | 94 text = pGlobalTXT_LocalizationStrings[57]; // Days |
110 if ( v19 <= 1 ) | 95 if ( day <= 1 ) |
111 v10 = pGlobalTXT_LocalizationStrings[56]; // Day | 96 text = pGlobalTXT_LocalizationStrings[56]; // Day |
112 sprintfex(pTmpBuf2.data(), "%d %s ", (int)v19, v10); | 97 sprintfex(pTmpBuf2.data(), "%d %s ", (int)day, text); |
113 strcat(pTmpBuf.data(), pTmpBuf2.data()); | 98 strcat(pTmpBuf.data(), pTmpBuf2.data()); |
114 } | 99 } |
115 if ( v9 ) | 100 if ( hours ) |
116 { | 101 { |
117 if ( v9 <= 1 ) | 102 if ( hours <= 1 ) |
118 v11 = pGlobalTXT_LocalizationStrings[109];// Hour | 103 text = pGlobalTXT_LocalizationStrings[109];// Hour |
119 else | 104 else |
120 v11 = pGlobalTXT_LocalizationStrings[110];// Hours | 105 text = pGlobalTXT_LocalizationStrings[110];// Hours |
121 sprintfex(pTmpBuf2.data(), "%d %s ", (int)v9, v11); | 106 sprintfex(pTmpBuf2.data(), "%d %s ", (int)hours, text); |
122 strcat(pTmpBuf.data(), pTmpBuf2.data()); | 107 strcat(pTmpBuf.data(), pTmpBuf2.data()); |
123 } | 108 } |
124 if ( v17 && !v19 ) | 109 if ( minutes && !day ) |
125 { | 110 { |
126 if ( v17 <= 1 ) | 111 if ( minutes <= 1 ) |
127 v12 = pGlobalTXT_LocalizationStrings[437];// Minute | 112 text = pGlobalTXT_LocalizationStrings[437];// Minute |
128 else | 113 else |
129 v12 = pGlobalTXT_LocalizationStrings[436];// Minutes | 114 text = pGlobalTXT_LocalizationStrings[436];// Minutes |
130 sprintfex(pTmpBuf2.data(), "%d %s ", (int)v17, v12); | 115 sprintfex(pTmpBuf2.data(), "%d %s ", (int)minutes, text); |
131 strcat(pTmpBuf.data(), pTmpBuf2.data()); | 116 strcat(pTmpBuf.data(), pTmpBuf2.data()); |
132 } | 117 } |
133 if ( v18 && !v9 ) | 118 if ( seconds && !hours ) |
134 { | 119 { |
135 if ( v18 <= 1 ) | 120 if ( seconds <= 1 ) |
136 v13 = pGlobalTXT_LocalizationStrings[439];// Second | 121 text = pGlobalTXT_LocalizationStrings[439];// Second |
137 else | 122 else |
138 v13 = pGlobalTXT_LocalizationStrings[438];// Seconds | 123 text = pGlobalTXT_LocalizationStrings[438];// Seconds |
139 sprintfex(pTmpBuf2.data(), "%d %s ", (int)v18, v13); | 124 sprintfex(pTmpBuf2.data(), "%d %s ", (int)seconds, text); |
140 strcat(pTmpBuf.data(), pTmpBuf2.data()); | 125 strcat(pTmpBuf.data(), pTmpBuf2.data()); |
141 } | 126 } |
142 a1->DrawText(a2, 32, uY, 0, pTmpBuf.data(), 0, 0, 0); | 127 window->DrawText(Font, 32, uY, 0, pTmpBuf.data(), 0, 0, 0); |
143 } | 128 } |
144 | 129 |
145 //----- (004226C2) -------------------------------------------------------- | 130 //----- (004226C2) -------------------------------------------------------- |
146 bool PauseGameDrawing() | 131 bool PauseGameDrawing() |
147 { | 132 { |
159 // 4E28F8: using guessed type int pCurrentScreen; | 144 // 4E28F8: using guessed type int pCurrentScreen; |
160 | 145 |
161 //----- (004226EF) -------------------------------------------------------- | 146 //----- (004226EF) -------------------------------------------------------- |
162 void SetUserInterface(PartyAlignment align, bool bReplace) | 147 void SetUserInterface(PartyAlignment align, bool bReplace) |
163 { | 148 { |
164 unsigned int v3; // eax@7 | |
165 unsigned __int16 v4; // dx@7 | |
166 unsigned __int16 v5; // cx@7 | |
167 unsigned __int16 v6; // [sp-4h] [bp-14h]@7 | |
168 | |
169 | |
170 extern void set_default_ui_skin(); | 149 extern void set_default_ui_skin(); |
171 set_default_ui_skin(); | 150 set_default_ui_skin(); |
172 | 151 |
173 if (align == PartyAlignment_Evil) | 152 if (align == PartyAlignment_Evil) |
174 { | 153 { |
175 if ( bReplace ) | 154 if ( bReplace ) |
176 { | 155 { |
177 pTexture_RightFrame->Reload("ib-r-C.pcx"); | 156 pTexture_RightFrame->Reload("ib-r-C.pcx"); |
178 pTexture_BottomFrame->Reload("ib-b-C.pcx"); | 157 pTexture_BottomFrame->Reload("ib-b-C.pcx"); |
179 pTexture_TopFrame->Reload("ib-t-C.pcx"); | 158 pTexture_TopFrame->Reload("ib-t-C.pcx"); |
180 pTexture_LeftFrame->Reload("ib-l-C.pcx"); | 159 pTexture_LeftFrame->Reload("ib-l-C.pcx"); |
181 pTexture_StatusBar->Reload("IB-Foot-c.pcx"); | 160 pTexture_StatusBar->Reload("IB-Foot-c.pcx"); |
182 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_right_panel], "ib-mb-C", 2); | 161 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_right_panel], "ib-mb-C", 2); |
183 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Minimap_Loop], "ib-autmask-c", 2); | 162 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Minimap_Loop], "ib-autmask-c", 2); |
184 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Compas], "IB-COMP-C", 2); | 163 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Compas], "IB-COMP-C", 2); |
185 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[dword_5079D0], "IB-InitG-c", 2); | 164 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[dword_5079D0], "IB-InitG-c", 2); |
186 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[dword_5079C8], "IB-InitY-c", 2); | 165 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[dword_5079C8], "IB-InitY-c", 2); |
187 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[dword_5079CC], "IB-InitR-c", 2); | 166 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[dword_5079CC], "IB-InitR-c", 2); |
188 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_NPCLeft], "IB-NPCLD-C", 2); | 167 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_NPCLeft], "IB-NPCLD-C", 2); |
189 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_NPCRight], "IB-NPCRD-C", 2); | 168 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_NPCRight], "IB-NPCRD-C", 2); |
190 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_ZoomIn], "ib-autout-C", 2); | 169 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_ZoomIn], "ib-autout-C", 2); |
191 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_ZoomOut], "ib-autin-C", 2); | 170 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_ZoomOut], "ib-autin-C", 2); |
192 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_GameUI_CharSelectionFrame], "IB-selec-C", 2); | 171 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_GameUI_CharSelectionFrame], "IB-selec-C", 2); |
193 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_CastSpell], "ib-m1d-c", 2); | 172 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_CastSpell], "ib-m1d-c", 2); |
194 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_Rest], "ib-m2d-c", 2); | 173 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_Rest], "ib-m2d-c", 2); |
195 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_QuickReference], "ib-m3d-c", 2); | 174 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_QuickReference], "ib-m3d-c", 2); |
196 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_GameSettings], "ib-m4d-c", 2); | 175 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_GameSettings], "ib-m4d-c", 2); |
197 | 176 |
198 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_PlayerBuff_Bless], "isg-01-c", 2); | 177 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_PlayerBuff_Bless], "isg-01-c", 2); |
199 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_PlayerBuff_Preservation], "isg-02-c", 2); | 178 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_PlayerBuff_Preservation], "isg-02-c", 2); |
200 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_PlayerBuff_Hammerhands], "isg-03-c", 2); | 179 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_PlayerBuff_Hammerhands], "isg-03-c", 2); |
201 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_PlayerBuff_PainReflection], "isg-04-c", 2); | 180 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_PlayerBuff_PainReflection], "isg-04-c", 2); |
202 | 181 |
203 pUIAnim_WizardEye->uIconID = pIconsFrameTable->FindIcon("wizeyeC"); | 182 pUIAnim_WizardEye->uIconID = pIconsFrameTable->FindIcon("wizeyeC"); |
204 pIconsFrameTable->InitializeAnimation(pUIAnim_WizardEye->uIconID); | 183 pIconsFrameTable->InitializeAnimation(pUIAnim_WizardEye->uIconID); |
205 pUIAnum_Torchlight->uIconID = pIconsFrameTable->FindIcon("torchC"); | 184 pUIAnum_Torchlight->uIconID = pIconsFrameTable->FindIcon("torchC"); |
206 pIconsFrameTable->InitializeAnimation(pUIAnum_Torchlight->uIconID); | 185 pIconsFrameTable->InitializeAnimation(pUIAnum_Torchlight->uIconID); |
207 | 186 |
208 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uExitCancelTextureId], "ib-bcu-c", 2); | 187 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uExitCancelTextureId], "ib-bcu-c", 2); |
209 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_50795C], "evtnpc-c", 2); | 188 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_50795C], "evtnpc-c", 2); |
210 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_CharacterUI_InventoryBackground], "fr_inven-c", 2); | 189 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_CharacterUI_InventoryBackground], "fr_inven-c", 2); |
211 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Parchment], "parchment", 2); | 190 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Parchment], "parchment", 2); |
212 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076B4], "cornr_ll-c", 2); | 191 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076B4], "cornr_ll-c", 2); |
213 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076B0], "cornr_lr-c", 2); | 192 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076B0], "cornr_lr-c", 2); |
214 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076AC], "cornr_ul-c", 2); | 193 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076AC], "cornr_ul-c", 2); |
215 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076A8], "cornr_ur-c", 2); | 194 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076A8], "cornr_ur-c", 2); |
216 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076A4], "edge_btm-c", 2); | 195 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076A4], "edge_btm-c", 2); |
217 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076A0], "edge_lf-c", 2); | 196 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076A0], "edge_lf-c", 2); |
218 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_50769C], "edge_rt-c", 2); | 197 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_50769C], "edge_rt-c", 2); |
219 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_507698], "edge_top-c", 2); | 198 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_507698], "edge_top-c", 2); |
220 pIcons_LOD->ReloadTexture(pTexture_591428, "endcap-c", 2); | 199 pIcons_LOD->ReloadTexture(pTexture_591428, "endcap-c", 2); |
221 } | 200 } |
222 else | 201 else |
223 { | 202 { |
224 pTexture_RightFrame->Load("ib-r-C.pcx", 0); | 203 pTexture_RightFrame->Load("ib-r-C.pcx", 0); |
225 pTexture_BottomFrame->Load("ib-b-c.pcx", 0); | 204 pTexture_BottomFrame->Load("ib-b-c.pcx", 0); |
226 pTexture_TopFrame->Load("ib-t-C.pcx", 0); | 205 pTexture_TopFrame->Load("ib-t-C.pcx", 0); |
227 pTexture_LeftFrame->Load("ib-l-C.pcx", 0); | 206 pTexture_LeftFrame->Load("ib-l-C.pcx", 0); |
228 pTexture_StatusBar->Load("IB-Foot-c.pcx", 0); | 207 pTexture_StatusBar->Load("IB-Foot-c.pcx", 0); |
229 uTextureID_right_panel = pIcons_LOD->LoadTexture("ib-mb-C", TEXTURE_16BIT_PALETTE); | 208 uTextureID_right_panel = pIcons_LOD->LoadTexture("ib-mb-C", TEXTURE_16BIT_PALETTE); |
230 uTextureID_Minimap_Loop = pIcons_LOD->LoadTexture("ib-autmask-c", TEXTURE_16BIT_PALETTE); | 209 uTextureID_Minimap_Loop = pIcons_LOD->LoadTexture("ib-autmask-c", TEXTURE_16BIT_PALETTE); |
231 uTextureID_Compas = pIcons_LOD->LoadTexture("IB-COMP-C", TEXTURE_16BIT_PALETTE); | 210 uTextureID_Compas = pIcons_LOD->LoadTexture("IB-COMP-C", TEXTURE_16BIT_PALETTE); |
232 dword_5079D0 = pIcons_LOD->LoadTexture("IB-InitG-c", TEXTURE_16BIT_PALETTE); | 211 dword_5079D0 = pIcons_LOD->LoadTexture("IB-InitG-c", TEXTURE_16BIT_PALETTE); |
233 dword_5079C8 = pIcons_LOD->LoadTexture("IB-InitY-c", TEXTURE_16BIT_PALETTE); | 212 dword_5079C8 = pIcons_LOD->LoadTexture("IB-InitY-c", TEXTURE_16BIT_PALETTE); |
234 dword_5079CC = pIcons_LOD->LoadTexture("IB-InitR-c", TEXTURE_16BIT_PALETTE); | 213 dword_5079CC = pIcons_LOD->LoadTexture("IB-InitR-c", TEXTURE_16BIT_PALETTE); |
235 uTextureID_Btn_NPCLeft = pIcons_LOD->LoadTexture("IB-NPCLD-C", TEXTURE_16BIT_PALETTE); | 214 uTextureID_Btn_NPCLeft = pIcons_LOD->LoadTexture("IB-NPCLD-C", TEXTURE_16BIT_PALETTE); |
236 uTextureID_Btn_NPCRight = pIcons_LOD->LoadTexture("IB-NPCRD-C", TEXTURE_16BIT_PALETTE); | 215 uTextureID_Btn_NPCRight = pIcons_LOD->LoadTexture("IB-NPCRD-C", TEXTURE_16BIT_PALETTE); |
237 uTextureID_Btn_ZoomIn = pIcons_LOD->LoadTexture("ib-autout-C", TEXTURE_16BIT_PALETTE); | 216 uTextureID_Btn_ZoomIn = pIcons_LOD->LoadTexture("ib-autout-C", TEXTURE_16BIT_PALETTE); |
238 uTextureID_Btn_ZoomOut = pIcons_LOD->LoadTexture("ib-autin-C", TEXTURE_16BIT_PALETTE); | 217 uTextureID_Btn_ZoomOut = pIcons_LOD->LoadTexture("ib-autin-C", TEXTURE_16BIT_PALETTE); |
239 uTextureID_GameUI_CharSelectionFrame = pIcons_LOD->LoadTexture("IB-selec-C", TEXTURE_16BIT_PALETTE); | 218 uTextureID_GameUI_CharSelectionFrame = pIcons_LOD->LoadTexture("IB-selec-C", TEXTURE_16BIT_PALETTE); |
240 uTextureID_Btn_CastSpell = pIcons_LOD->LoadTexture("ib-m1d-c", TEXTURE_16BIT_PALETTE); | 219 uTextureID_Btn_CastSpell = pIcons_LOD->LoadTexture("ib-m1d-c", TEXTURE_16BIT_PALETTE); |
241 uTextureID_Btn_Rest = pIcons_LOD->LoadTexture("ib-m2d-c", TEXTURE_16BIT_PALETTE); | 220 uTextureID_Btn_Rest = pIcons_LOD->LoadTexture("ib-m2d-c", TEXTURE_16BIT_PALETTE); |
242 uTextureID_Btn_QuickReference = pIcons_LOD->LoadTexture("ib-m3d-c", TEXTURE_16BIT_PALETTE); | 221 uTextureID_Btn_QuickReference = pIcons_LOD->LoadTexture("ib-m3d-c", TEXTURE_16BIT_PALETTE); |
243 uTextureID_Btn_GameSettings = pIcons_LOD->LoadTexture("ib-m4d-c", TEXTURE_16BIT_PALETTE); | 222 uTextureID_Btn_GameSettings = pIcons_LOD->LoadTexture("ib-m4d-c", TEXTURE_16BIT_PALETTE); |
244 uExitCancelTextureId = pIcons_LOD->LoadTexture("ib-bcu-c", TEXTURE_16BIT_PALETTE); | 223 uExitCancelTextureId = pIcons_LOD->LoadTexture("ib-bcu-c", TEXTURE_16BIT_PALETTE); |
245 uTextureID_PlayerBuff_Bless = pIcons_LOD->LoadTexture("isg-01-c", TEXTURE_16BIT_PALETTE); | 224 uTextureID_PlayerBuff_Bless = pIcons_LOD->LoadTexture("isg-01-c", TEXTURE_16BIT_PALETTE); |
246 uTextureID_PlayerBuff_Preservation = pIcons_LOD->LoadTexture("isg-02-c", TEXTURE_16BIT_PALETTE); | 225 uTextureID_PlayerBuff_Preservation = pIcons_LOD->LoadTexture("isg-02-c", TEXTURE_16BIT_PALETTE); |
247 uTextureID_PlayerBuff_Hammerhands = pIcons_LOD->LoadTexture("isg-03-c", TEXTURE_16BIT_PALETTE); | 226 uTextureID_PlayerBuff_Hammerhands = pIcons_LOD->LoadTexture("isg-03-c", TEXTURE_16BIT_PALETTE); |
248 uTextureID_PlayerBuff_PainReflection = pIcons_LOD->LoadTexture("isg-04-c", TEXTURE_16BIT_PALETTE); | 227 uTextureID_PlayerBuff_PainReflection = pIcons_LOD->LoadTexture("isg-04-c", TEXTURE_16BIT_PALETTE); |
249 uTextureID_50795C = pIcons_LOD->LoadTexture("evtnpc-c", TEXTURE_16BIT_PALETTE); | 228 uTextureID_50795C = pIcons_LOD->LoadTexture("evtnpc-c", TEXTURE_16BIT_PALETTE); |
250 uTextureID_CharacterUI_InventoryBackground = pIcons_LOD->LoadTexture("fr_inven", TEXTURE_16BIT_PALETTE); | 229 uTextureID_CharacterUI_InventoryBackground = pIcons_LOD->LoadTexture("fr_inven", TEXTURE_16BIT_PALETTE); |
251 pUIAnim_WizardEye->uIconID = pIconsFrameTable->FindIcon("wizeyeC"); | 230 pUIAnim_WizardEye->uIconID = pIconsFrameTable->FindIcon("wizeyeC"); |
252 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnim_WizardEye->uIconID); | 231 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnim_WizardEye->uIconID); |
253 pUIAnum_Torchlight->uIconID = pIconsFrameTable->FindIcon("torchC"); | 232 pUIAnum_Torchlight->uIconID = pIconsFrameTable->FindIcon("torchC"); |
254 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnum_Torchlight->uIconID); | 233 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnum_Torchlight->uIconID); |
255 } | 234 } |
256 v3 = TargetColor(0xC8u, 0, 0); | 235 uGameUIFontMain = TargetColor(0xC8u, 0, 0); |
257 v4 = 0; | 236 uGameUIFontShadow = TargetColor(10, 0, 0); |
258 v6 = 0; | 237 } |
259 v5 = 10; | 238 else if (align == PartyAlignment_Neutral) |
260 } | 239 { |
261 else if (align == PartyAlignment_Neutral) | 240 if ( bReplace ) |
262 { | 241 { |
263 if ( bReplace ) | 242 pTexture_RightFrame->Reload("ib-r-a.pcx"); |
264 { | 243 pTexture_BottomFrame->Reload("ib-b-a.pcx"); |
265 pTexture_RightFrame->Reload("ib-r-a.pcx"); | 244 pTexture_TopFrame->Reload("ib-t-a.pcx"); |
266 pTexture_BottomFrame->Reload("ib-b-a.pcx"); | 245 pTexture_LeftFrame->Reload("ib-l-a.pcx"); |
267 pTexture_TopFrame->Reload("ib-t-a.pcx"); | 246 pTexture_StatusBar->Reload("IB-Foot-a.pcx"); |
268 pTexture_LeftFrame->Reload("ib-l-a.pcx"); | 247 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_right_panel], "ib-mb-a", 2); |
269 pTexture_StatusBar->Reload("IB-Foot-a.pcx"); | 248 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Minimap_Loop], "ib-autmask-a", 2); |
270 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_right_panel], "ib-mb-a", 2); | 249 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Compas], "IB-COMP-a", 2); |
271 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Minimap_Loop], "ib-autmask-a", 2); | 250 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[dword_5079D0], "IB-InitG-a", 2); |
272 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Compas], "IB-COMP-a", 2); | 251 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[dword_5079C8], "IB-InitY-a", 2); |
273 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[dword_5079D0], "IB-InitG-a", 2); | 252 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[dword_5079CC], "IB-InitR-a", 2); |
274 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[dword_5079C8], "IB-InitY-a", 2); | 253 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_NPCLeft], "IB-NPCLD-a", 2); |
275 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[dword_5079CC], "IB-InitR-a", 2); | 254 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_NPCRight], "IB-NPCRD-a", 2); |
276 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_NPCLeft], "IB-NPCLD-a", 2); | 255 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_ZoomIn], "ib-autout-a", 2); |
277 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_NPCRight], "IB-NPCRD-a", 2); | 256 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_ZoomOut], "ib-autin-a", 2); |
278 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_ZoomIn], "ib-autout-a", 2); | 257 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_GameUI_CharSelectionFrame], "IB-selec-a", 2); |
279 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_ZoomOut], "ib-autin-a", 2); | 258 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_CastSpell], "ib-m1d-a", 2); |
280 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_GameUI_CharSelectionFrame], "IB-selec-a", 2); | 259 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_Rest], "ib-m2d-a", 2); |
281 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_CastSpell], "ib-m1d-a", 2); | 260 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_QuickReference], "ib-m3d-a", 2); |
282 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_Rest], "ib-m2d-a", 2); | 261 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_GameSettings], "ib-m4d-a", 2); |
283 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_QuickReference], "ib-m3d-a", 2); | 262 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_PlayerBuff_Bless], "isg-01-a", 2); |
284 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Btn_GameSettings], "ib-m4d-a", 2); | 263 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_PlayerBuff_Preservation], "isg-02-a", 2); |
285 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_PlayerBuff_Bless], "isg-01-a", 2); | 264 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_PlayerBuff_Hammerhands], "isg-03-a", 2); |
286 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_PlayerBuff_Preservation], "isg-02-a", 2); | 265 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_PlayerBuff_PainReflection], "isg-04-a", 2); |
287 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_PlayerBuff_Hammerhands], "isg-03-a", 2); | 266 pUIAnim_WizardEye->uIconID = pIconsFrameTable->FindIcon("wizeyeA"); |
288 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_PlayerBuff_PainReflection], "isg-04-a", 2); | 267 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnim_WizardEye->uIconID); |
289 pUIAnim_WizardEye->uIconID = pIconsFrameTable->FindIcon("wizeyeA"); | 268 pUIAnum_Torchlight->uIconID = pIconsFrameTable->FindIcon("torchA"); |
290 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnim_WizardEye->uIconID); | 269 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnum_Torchlight->uIconID); |
291 pUIAnum_Torchlight->uIconID = pIconsFrameTable->FindIcon("torchA"); | 270 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uExitCancelTextureId], "ib-bcu-a", 2); |
292 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnum_Torchlight->uIconID); | 271 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_50795C], "evtnpc", 2); |
293 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uExitCancelTextureId], "ib-bcu-a", 2); | 272 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_CharacterUI_InventoryBackground], "fr_inven", 2); |
294 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_50795C], "evtnpc", 2); | 273 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Parchment], "parchment", 2); |
295 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_CharacterUI_InventoryBackground], "fr_inven", 2); | 274 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076B4], "cornr_ll", 2); |
296 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Parchment], "parchment", 2); | 275 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076B0], "cornr_lr", 2); |
297 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076B4], "cornr_ll", 2); | 276 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076AC], "cornr_ul", 2); |
298 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076B0], "cornr_lr", 2); | 277 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076A8], "cornr_ur", 2); |
299 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076AC], "cornr_ul", 2); | 278 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076A4], "edge_btm", 2); |
300 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076A8], "cornr_ur", 2); | 279 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076A0], "edge_lf", 2); |
301 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076A4], "edge_btm", 2); | 280 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_50769C], "edge_rt", 2); |
302 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076A0], "edge_lf", 2); | 281 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_507698], "edge_top", 2); |
303 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_50769C], "edge_rt", 2); | 282 pIcons_LOD->ReloadTexture(pTexture_591428, "endcap", 2); |
304 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_507698], "edge_top", 2); | 283 } |
305 pIcons_LOD->ReloadTexture(pTexture_591428, "endcap", 2); | 284 else |
306 } | 285 { |
307 else | 286 pTexture_RightFrame->Load("ib-r-A.pcx", 0); |
308 { | 287 pTexture_BottomFrame->Load("ib-b-A.pcx", 0); |
309 pTexture_RightFrame->Load("ib-r-A.pcx", 0); | 288 pTexture_TopFrame->Load("ib-t-A.pcx", 0); |
310 pTexture_BottomFrame->Load("ib-b-A.pcx", 0); | 289 pTexture_LeftFrame->Load("ib-l-A.pcx", 0); |
311 pTexture_TopFrame->Load("ib-t-A.pcx", 0); | 290 pTexture_StatusBar->Load("IB-Foot-a.pcx", 0); |
312 pTexture_LeftFrame->Load("ib-l-A.pcx", 0); | 291 uTextureID_right_panel = pIcons_LOD->LoadTexture("ib-mb-A", TEXTURE_16BIT_PALETTE); |
313 pTexture_StatusBar->Load("IB-Foot-a.pcx", 0); | 292 uTextureID_Minimap_Loop = pIcons_LOD->LoadTexture("ib-autmask-a", TEXTURE_16BIT_PALETTE); |
314 uTextureID_right_panel = pIcons_LOD->LoadTexture("ib-mb-A", TEXTURE_16BIT_PALETTE); | 293 uTextureID_Compas = pIcons_LOD->LoadTexture("IB-COMP-A", TEXTURE_16BIT_PALETTE); |
315 uTextureID_Minimap_Loop = pIcons_LOD->LoadTexture("ib-autmask-a", TEXTURE_16BIT_PALETTE); | 294 dword_5079D0 = pIcons_LOD->LoadTexture("IB-InitG-a", TEXTURE_16BIT_PALETTE); |
316 uTextureID_Compas = pIcons_LOD->LoadTexture("IB-COMP-A", TEXTURE_16BIT_PALETTE); | 295 dword_5079C8 = pIcons_LOD->LoadTexture("IB-InitY-a", TEXTURE_16BIT_PALETTE); |
317 dword_5079D0 = pIcons_LOD->LoadTexture("IB-InitG-a", TEXTURE_16BIT_PALETTE); | 296 dword_5079CC = pIcons_LOD->LoadTexture("IB-InitR-a", TEXTURE_16BIT_PALETTE); |
318 dword_5079C8 = pIcons_LOD->LoadTexture("IB-InitY-a", TEXTURE_16BIT_PALETTE); | 297 uTextureID_Btn_NPCLeft = pIcons_LOD->LoadTexture("IB-NPCLD-A", TEXTURE_16BIT_PALETTE); |
319 dword_5079CC = pIcons_LOD->LoadTexture("IB-InitR-a", TEXTURE_16BIT_PALETTE); | 298 uTextureID_Btn_NPCRight = pIcons_LOD->LoadTexture("IB-NPCRD-A", TEXTURE_16BIT_PALETTE); |
320 uTextureID_Btn_NPCLeft = pIcons_LOD->LoadTexture("IB-NPCLD-A", TEXTURE_16BIT_PALETTE); | 299 uTextureID_GameUI_CharSelectionFrame = pIcons_LOD->LoadTexture("IB-selec-A", TEXTURE_16BIT_PALETTE); |
321 uTextureID_Btn_NPCRight = pIcons_LOD->LoadTexture("IB-NPCRD-A", TEXTURE_16BIT_PALETTE); | 300 uTextureID_Btn_CastSpell = pIcons_LOD->LoadTexture("ib-m1d-a", TEXTURE_16BIT_PALETTE); |
322 uTextureID_GameUI_CharSelectionFrame = pIcons_LOD->LoadTexture("IB-selec-A", TEXTURE_16BIT_PALETTE); | 301 uTextureID_Btn_Rest = pIcons_LOD->LoadTexture("ib-m2d-a", TEXTURE_16BIT_PALETTE); |
323 uTextureID_Btn_CastSpell = pIcons_LOD->LoadTexture("ib-m1d-a", TEXTURE_16BIT_PALETTE); | 302 uTextureID_Btn_QuickReference = pIcons_LOD->LoadTexture("ib-m3d-a", TEXTURE_16BIT_PALETTE); |
324 uTextureID_Btn_Rest = pIcons_LOD->LoadTexture("ib-m2d-a", TEXTURE_16BIT_PALETTE); | 303 uTextureID_Btn_GameSettings = pIcons_LOD->LoadTexture("ib-m4d-a", TEXTURE_16BIT_PALETTE); |
325 uTextureID_Btn_QuickReference = pIcons_LOD->LoadTexture("ib-m3d-a", TEXTURE_16BIT_PALETTE); | 304 uTextureID_Btn_ZoomIn = pIcons_LOD->LoadTexture("ib-autout-a", TEXTURE_16BIT_PALETTE); |
326 uTextureID_Btn_GameSettings = pIcons_LOD->LoadTexture("ib-m4d-a", TEXTURE_16BIT_PALETTE); | 305 uTextureID_Btn_ZoomOut = pIcons_LOD->LoadTexture("ib-autin-a", TEXTURE_16BIT_PALETTE); |
327 uTextureID_Btn_ZoomIn = pIcons_LOD->LoadTexture("ib-autout-a", TEXTURE_16BIT_PALETTE); | 306 uExitCancelTextureId = pIcons_LOD->LoadTexture("ib-bcu-a", TEXTURE_16BIT_PALETTE); |
328 uTextureID_Btn_ZoomOut = pIcons_LOD->LoadTexture("ib-autin-a", TEXTURE_16BIT_PALETTE); | 307 uTextureID_PlayerBuff_Bless = pIcons_LOD->LoadTexture("isg-01-a", TEXTURE_16BIT_PALETTE); |
329 uExitCancelTextureId = pIcons_LOD->LoadTexture("ib-bcu-a", TEXTURE_16BIT_PALETTE); | 308 uTextureID_PlayerBuff_Preservation = pIcons_LOD->LoadTexture("isg-02-a", TEXTURE_16BIT_PALETTE); |
330 uTextureID_PlayerBuff_Bless = pIcons_LOD->LoadTexture("isg-01-a", TEXTURE_16BIT_PALETTE); | 309 uTextureID_PlayerBuff_Hammerhands = pIcons_LOD->LoadTexture("isg-03-a", TEXTURE_16BIT_PALETTE); |
331 uTextureID_PlayerBuff_Preservation = pIcons_LOD->LoadTexture("isg-02-a", TEXTURE_16BIT_PALETTE); | 310 uTextureID_PlayerBuff_PainReflection = pIcons_LOD->LoadTexture("isg-04-a", TEXTURE_16BIT_PALETTE); |
332 uTextureID_PlayerBuff_Hammerhands = pIcons_LOD->LoadTexture("isg-03-a", TEXTURE_16BIT_PALETTE); | 311 uTextureID_50795C = pIcons_LOD->LoadTexture("evtnpc", TEXTURE_16BIT_PALETTE); |
333 uTextureID_PlayerBuff_PainReflection = pIcons_LOD->LoadTexture("isg-04-a", TEXTURE_16BIT_PALETTE); | 312 uTextureID_CharacterUI_InventoryBackground = pIcons_LOD->LoadTexture("fr_inven", TEXTURE_16BIT_PALETTE); |
334 uTextureID_50795C = pIcons_LOD->LoadTexture("evtnpc", TEXTURE_16BIT_PALETTE); | 313 pUIAnim_WizardEye->uIconID = pIconsFrameTable->FindIcon("wizeyeA"); |
335 uTextureID_CharacterUI_InventoryBackground = pIcons_LOD->LoadTexture("fr_inven", TEXTURE_16BIT_PALETTE); | 314 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnim_WizardEye->uIconID); |
336 pUIAnim_WizardEye->uIconID = pIconsFrameTable->FindIcon("wizeyeA"); | 315 pUIAnum_Torchlight->uIconID = pIconsFrameTable->FindIcon("torchA"); |
337 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnim_WizardEye->uIconID); | 316 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnum_Torchlight->uIconID); |
338 pUIAnum_Torchlight->uIconID = pIconsFrameTable->FindIcon("torchA"); | 317 uTextureID_Parchment = pIcons_LOD->LoadTexture("parchment", TEXTURE_16BIT_PALETTE); |
339 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnum_Torchlight->uIconID); | 318 uTextureID_5076B4 = pIcons_LOD->LoadTexture("cornr_ll", TEXTURE_16BIT_PALETTE); |
340 uTextureID_Parchment = pIcons_LOD->LoadTexture("parchment", TEXTURE_16BIT_PALETTE); | 319 uTextureID_5076B0 = pIcons_LOD->LoadTexture("cornr_lr", TEXTURE_16BIT_PALETTE); |
341 uTextureID_5076B4 = pIcons_LOD->LoadTexture("cornr_ll", TEXTURE_16BIT_PALETTE); | 320 uTextureID_5076AC = pIcons_LOD->LoadTexture("cornr_ul", TEXTURE_16BIT_PALETTE); |
342 uTextureID_5076B0 = pIcons_LOD->LoadTexture("cornr_lr", TEXTURE_16BIT_PALETTE); | 321 uTextureID_5076A8 = pIcons_LOD->LoadTexture("cornr_ur", TEXTURE_16BIT_PALETTE); |
343 uTextureID_5076AC = pIcons_LOD->LoadTexture("cornr_ul", TEXTURE_16BIT_PALETTE); | 322 uTextureID_5076A4 = pIcons_LOD->LoadTexture("edge_btm", TEXTURE_16BIT_PALETTE); |
344 uTextureID_5076A8 = pIcons_LOD->LoadTexture("cornr_ur", TEXTURE_16BIT_PALETTE); | 323 uTextureID_5076A0 = pIcons_LOD->LoadTexture("edge_lf", TEXTURE_16BIT_PALETTE); |
345 uTextureID_5076A4 = pIcons_LOD->LoadTexture("edge_btm", TEXTURE_16BIT_PALETTE); | 324 uTextureID_50769C = pIcons_LOD->LoadTexture("edge_rt", TEXTURE_16BIT_PALETTE); |
346 uTextureID_5076A0 = pIcons_LOD->LoadTexture("edge_lf", TEXTURE_16BIT_PALETTE); | 325 uTextureID_507698 = pIcons_LOD->LoadTexture("edge_top", TEXTURE_16BIT_PALETTE); |
347 uTextureID_50769C = pIcons_LOD->LoadTexture("edge_rt", TEXTURE_16BIT_PALETTE); | 326 pTexture_591428 = pIcons_LOD->LoadTexturePtr("endcap", TEXTURE_16BIT_PALETTE); |
348 uTextureID_507698 = pIcons_LOD->LoadTexture("edge_top", TEXTURE_16BIT_PALETTE); | 327 } |
349 pTexture_591428 = pIcons_LOD->LoadTexturePtr("endcap", TEXTURE_16BIT_PALETTE); | 328 uGameUIFontMain = TargetColor(0xAu, 0, 0); |
350 | 329 uGameUIFontShadow = TargetColor(230, 214, 193); |
351 } | 330 } |
352 v3 = TargetColor(0xAu, 0, 0); | |
353 v4 = 214; | |
354 v5 = 230; | |
355 v6 = 193; | |
356 } | |
357 else if (align == PartyAlignment_Good) | 331 else if (align == PartyAlignment_Good) |
358 { | 332 { |
359 if ( bReplace ) | 333 if ( bReplace ) |
360 { | 334 { |
361 pTexture_RightFrame->Reload("ib-r-B.pcx"); | 335 pTexture_RightFrame->Reload("ib-r-B.pcx"); |
398 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076A0], "edge_lf-b", 2); | 372 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076A0], "edge_lf-b", 2); |
399 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_50769C], "edge_rt-b", 2); | 373 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_50769C], "edge_rt-b", 2); |
400 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_507698], "edge_top-b", 2); | 374 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_507698], "edge_top-b", 2); |
401 pIcons_LOD->ReloadTexture(pTexture_591428, "endcap-b", 2); | 375 pIcons_LOD->ReloadTexture(pTexture_591428, "endcap-b", 2); |
402 } | 376 } |
403 v3 = TargetColor(0, 0, 0xC8u); | 377 uGameUIFontMain = TargetColor(0, 0, 0xC8u); |
404 v5 = 255; | 378 uGameUIFontShadow = TargetColor(255, 255, 255); |
405 v4 = 225; | |
406 v6 = 255; | |
407 } | 379 } |
408 else Error("Invalid alignment type: %u", align); | 380 else Error("Invalid alignment type: %u", align); |
409 | 381 } |
410 uGameUIFontMain = v3; | |
411 uGameUIFontShadow = TargetColor(v5, v4, v6); | |
412 } | |
413 | |
414 | |
415 | 382 |
416 //----- (00424CD7) -------------------------------------------------------- | 383 //----- (00424CD7) -------------------------------------------------------- |
417 int sr_424CD7(unsigned int num_vertices) | 384 int sr_424CD7(unsigned int num_vertices) |
418 { | 385 { |
419 //unsigned int v1; // edx@1 | 386 //unsigned int v1; // edx@1 |