annotate UIOptions.cpp @ 741:cd9ae9a2c99c

Слияние
author Ritor1
date Fri, 22 Mar 2013 19:59:03 +0600
parents d6236f6a9882
children dfd683c4f538
rev   line source
706
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
1 #include <assert.h>
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
2
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
3 #include "MM7.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
4
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
5 #include "MapInfo.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
6 #include "Game.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
7 #include "GUIWindow.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
8 #include "GUIFont.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
9 #include "GUIButton.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
10 #include "GUIProgressBar.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
11 #include "Party.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
12 #include "AudioPlayer.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
13 #include "Outdoor.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
14 #include "IndoorCamera.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
15 #include "Overlays.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
16 #include "Monsters.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
17 #include "Arcomage.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
18 #include "LOD.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
19 #include "Actor.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
20 #include "Allocator.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
21 #include "Events.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
22 #include "Viewport.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
23 #include "FrameTableInc.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
24 #include "Math.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
25 #include "SpriteObject.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
26 #include "ObjectList.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
27 #include "Chest.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
28 #include "PaletteManager.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
29 #include "DecorationList.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
30 #include "SaveLoad.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
31 #include "stru123.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
32 #include "Time.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
33 #include "IconFrameTable.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
34 #include "Awards.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
35 #include "Autonotes.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
36 #include "stru160.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
37 #include "stru279.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
38 #include "TurnEngine.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
39 #include "stru277.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
40 #include "Weather.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
41 #include "stru272.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
42 #include "stru298.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
43 #include "StorylineTextTable.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
44 #include "Events2D.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
45 #include "texts.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
46 #include "stru351.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
47
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
48 #include "mm7_data.h"
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
49
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
50
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
51
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
52 //----- (004142D3) --------------------------------------------------------
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
53 char __cdecl GameMenuUI_DrawKeyBindings()
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
54 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
55 unsigned int v0; // ebp@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
56 int v1; // ecx@2
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
57 unsigned int v2; // eax@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
58 GUIWindow *v3; // edx@6
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
59 signed int v4; // ecx@7
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
60 signed int v5; // eax@8
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
61 const char *v6; // ST0C_4@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
62 unsigned int v7; // eax@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
63 const char *v8; // ST0C_4@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
64 unsigned int v9; // eax@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
65 const char *v10; // ST0C_4@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
66 unsigned int v11; // eax@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
67 const char *v12; // ST0C_4@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
68 unsigned int v13; // eax@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
69 const char *v14; // ST0C_4@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
70 unsigned int v15; // eax@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
71 const char *v16; // ST0C_4@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
72 unsigned int v17; // eax@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
73 const char *v18; // ST0C_4@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
74 unsigned int v19; // eax@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
75 const char *v20; // ST0C_4@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
76 unsigned int v21; // eax@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
77 signed int v22; // ebp@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
78 const char *v23; // ST0C_4@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
79 unsigned int v24; // eax@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
80 const char *v25; // ST0C_4@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
81 unsigned int v26; // eax@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
82 const char *v27; // ST0C_4@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
83 unsigned int v28; // eax@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
84 const char *v29; // ST0C_4@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
85 unsigned int v30; // eax@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
86 const char *v31; // ST0C_4@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
87 unsigned int v32; // eax@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
88 const char *v33; // ST0C_4@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
89 unsigned int v34; // eax@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
90 const char *v35; // ST0C_4@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
91 unsigned int v36; // eax@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
92 const char *v37; // ST0C_4@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
93 unsigned int v38; // eax@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
94 const char *v39; // ST0C_4@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
95 unsigned int v40; // eax@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
96 const char *v41; // ST0C_4@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
97 unsigned int v42; // eax@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
98 const char *v43; // ST0C_4@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
99 unsigned int v44; // eax@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
100 const char *v45; // ST0C_4@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
101 unsigned int v46; // eax@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
102 const char *v47; // ST0C_4@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
103 unsigned int v48; // eax@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
104 const char *v49; // ST0C_4@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
105 unsigned int v50; // eax@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
106 const char *v51; // ST0C_4@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
107 unsigned int v52; // eax@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
108 const char *v53; // ST0C_4@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
109 unsigned int v54; // eax@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
110 const char *v55; // ST0C_4@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
111 unsigned int v56; // eax@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
112 const char *v57; // ST0C_4@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
113 unsigned int v58; // eax@17
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
114 unsigned int v59; // eax@18
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
115 int v61; // [sp-14h] [bp-28h]@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
116 const char *v62; // [sp-10h] [bp-24h]@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
117 int v63; // [sp-Ch] [bp-20h]@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
118 int v64; // [sp-8h] [bp-1Ch]@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
119 unsigned int v65; // [sp-4h] [bp-18h]@16
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
120 unsigned int a5; // [sp+10h] [bp-4h]@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
121
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
122 v0 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0xFFu);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
123 a5 = v0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
124 if ( byte_4E28FC )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
125 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
126 v1 = dword_507C0C + 15;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
127 dword_507C0C = v1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
128 if ( v1 == 255 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
129 byte_4E28FC = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
130 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
131 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
132 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
133 v1 = dword_507C0C - 15;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
134 dword_507C0C = v1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
135 if ( v1 == 15 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
136 byte_4E28FC = 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
137 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
138 v2 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(v1, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
139 v3 = pGUIWindow_CurrentMenu;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
140 dword_507C08 = v2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
141 if ( pGUIWindow_CurrentMenu->field_40 == 2 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
142 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
143 pPrevVirtualCidesMapping[dword_506E68] = pKeyActionMap->pPressedKeysBuffer[0];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
144 memset(&KeyButtonFlagChangesArray, 0, sizeof(KeyButtonFlagChangesArray));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
145 v4 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
146 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
147 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
148 v5 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
149 do
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
150 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
151 if ( v4 != v5 && pPrevVirtualCidesMapping[v4] == pPrevVirtualCidesMapping[v5] )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
152 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
153 KeyButtonFlagChangesArray[v4] = 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
154 KeyButtonFlagChangesArray[v5] = 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
155 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
156 ++v5;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
157 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
158 while ( v5 < 28 );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
159 ++v4;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
160 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
161 while ( v4 < 28 );
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
162 dword_506E68 = -1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
163 v3->field_40 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
164 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
165 pRenderer->DrawTextureIndexed(8, 8, (Texture *)(uTextureID_Optkb[0] != -1 ? &pIcons_LOD->pTextures[uTextureID_Optkb[0]] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
166 if ( KeyboardPageNum == 1 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
167 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
168 pRenderer->DrawTextureIndexed(0x13, 0x12E, (Texture *)(uTextureID_Optkb[3] != -1 ? &pIcons_LOD->pTextures[uTextureID_Optkb[3]] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
169 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 23, 142, v0, ascii_4E2D5C, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
170 v6 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[0]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
171 v7 = sub_414D24(0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
172 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 127, 142, v7, v6, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
173 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 23, 163, v0, ascii_4E2D50, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
174 v8 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[1]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
175 v9 = sub_414D24(1);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
176 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 127, 163, v9, v8, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
177 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 23, 184, v0, ascii_4E2D48, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
178 v10 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[2]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
179 v11 = sub_414D24(2);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
180 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 127, 184, v11, v10, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
181 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 23, 205, v0, ascii_4E2D40, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
182 v12 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[3]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
183 v13 = sub_414D24(3);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
184 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 127, 205, v13, v12, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
185 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 23, 226, v0, ascii_4E2D38, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
186 v14 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[4]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
187 v15 = sub_414D24(4);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
188 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 127, 226, v15, v14, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
189 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 23, 247, v0, ascii_4E2D30, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
190 v16 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[5]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
191 v17 = sub_414D24(5);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
192 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 127, 247, v17, v16, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
193 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 23, 268, v0, ascii_4E2D28, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
194 v18 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[6]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
195 v19 = sub_414D24(6);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
196 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 127, 268, v19, v18, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
197 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 247, 142, v0, ascii_4E2D1C, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
198 v20 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[7]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
199 v21 = sub_414D24(7);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
200 v22 = 350;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
201 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 350, 142, v21, v20, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
202 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 247, 163, a5, ascii_4E2D14, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
203 v23 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[8]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
204 v24 = sub_414D24(8);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
205 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 350, 163, v24, v23, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
206 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 247, 184, a5, ascii_4E2D0C, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
207 v25 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[9]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
208 v26 = sub_414D24(9);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
209 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 350, 184, v26, v25, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
210 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 247, 205, a5, ascii_4E2D04, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
211 v27 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[10]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
212 v28 = sub_414D24(10);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
213 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 350, 205, v28, v27, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
214 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 247, 226, a5, ascii_4E2CFC, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
215 v29 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[11]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
216 v30 = sub_414D24(11);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
217 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 350, 226, v30, v29, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
218 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 247, 247, a5, ascii_4E2CF0, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
219 v31 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[12]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
220 v32 = sub_414D24(12);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
221 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 350, 247, v32, v31, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
222 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 247, 268, a5, ascii_4E2CE8, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
223 v65 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
224 v64 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
225 v63 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
226 v62 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[13]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
227 v61 = 13;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
228 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
229 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
230 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
231 pRenderer->DrawTextureIndexed(0x7F, 0x12E, (Texture *)(uTextureID_Optkb[4] != -1 ? &pIcons_LOD->pTextures[uTextureID_Optkb[4]] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
232 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 23, 142, v0, ascii_4E2CDC, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
233 v33 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[14]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
234 v34 = sub_414D24(14);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
235 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 127, 142, v34, v33, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
236 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 23, 163, v0, ascii_4E2CD4, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
237 v35 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[15]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
238 v36 = sub_414D24(15);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
239 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 127, 163, v36, v35, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
240 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 23, 184, v0, ascii_4E2CC8, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
241 v37 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[16]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
242 v38 = sub_414D24(16);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
243 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 127, 184, v38, v37, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
244 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 23, 205, v0, ascii_4E2CBC, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
245 v39 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[17]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
246 v40 = sub_414D24(17);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
247 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 127, 205, v40, v39, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
248 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 23, 226, v0, ascii_4E2CB0, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
249 v41 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[18]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
250 v42 = sub_414D24(18);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
251 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 127, 226, v42, v41, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
252 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 23, 247, v0, ascii_4E2CA4, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
253 v43 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[19]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
254 v44 = sub_414D24(19);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
255 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 127, 247, v44, v43, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
256 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 23, 268, v0, ascii_4E2C9C, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
257 v45 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[20]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
258 v46 = sub_414D24(20);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
259 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 127, 268, v46, v45, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
260 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 247, 142, v0, ascii_4E2C90, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
261 v47 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[21]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
262 v48 = sub_414D24(21);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
263 v22 = 350;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
264 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 350, 142, v48, v47, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
265 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 247, 163, a5, ascii_4E2C84, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
266 v49 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[22]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
267 v50 = sub_414D24(22);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
268 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 350, 163, v50, v49, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
269 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 247, 184, a5, ascii_4E2C7C, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
270 v51 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[23]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
271 v52 = sub_414D24(23);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
272 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 350, 184, v52, v51, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
273 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 247, 205, a5, ascii_4E2C70, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
274 v53 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[24]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
275 v54 = sub_414D24(24);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
276 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 350, 205, v54, v53, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
277 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 247, 226, a5, ascii_4E2C68, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
278 v55 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[25]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
279 v56 = sub_414D24(25);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
280 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 350, 226, v56, v55, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
281 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 247, 247, a5, ascii_4E2C5C, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
282 v57 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[26]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
283 v58 = sub_414D24(26);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
284 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 350, 247, v58, v57, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
285 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 247, 268, a5, ascii_4E2C54, 0, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
286 v65 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
287 v64 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
288 v63 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
289 v62 = pKeyActionMap->GetVKeyDisplayName(pWindowList_at_506F50_minus1_indexing[0]);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
290 v61 = 27;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
291 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
292 v59 = sub_414D24(v61);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
293 return pGUIWindow_CurrentMenu->DrawText(pFontLucida, v22, 268, v59, v62, v63, v64, v65);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
294 }
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
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
297 //----- (00414D24) --------------------------------------------------------
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
298 unsigned int __thiscall sub_414D24(int _this)
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
299 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
300 int v1; // esi@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
301 unsigned int v2; // edi@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
302 unsigned int v3; // ebx@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
303 unsigned int result; // eax@1
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 v1 = _this;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
306 v2 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xE1u, 0xCDu, 0x23u);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
307 v3 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFu, 0, 0);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
308 result = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0xFFu);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
309 if ( dword_506E68 == v1 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
310 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
311 if ( GetTickCount() % 0x3E8 <= 0x1F4 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
312 result = v3;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
313 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
314 result = v2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
315 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
316 else
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
317 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
318 if ( KeyButtonFlagChangesArray[v1] )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
319 result = dword_507C08;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
320 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
321 return result;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
322 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
323 // 506E68: using guessed type int dword_506E68;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
324 // 506E6C: using guessed type __int16 word_506E6C[18];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
325 // 507C08: using guessed type int dword_507C08;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
326
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
327 //----- (00414D9A) --------------------------------------------------------
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
328 void __cdecl GameMenuUI_DrawVideoOptions()
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
329 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
330 const char *v0; // ST0C_4@3
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
331 unsigned __int16 v1; // ax@3
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
332 int v2; // eax@10
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
333 GUIWindow v3; // [sp+8h] [bp-54h]@3
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
334
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
335 pRenderer->DrawTextureIndexed(
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
336 8u,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
337 8u,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
338 (Texture *)(uTextureID_507C10 != -1 ? &pIcons_LOD->pTextures[uTextureID_507C10] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
339 if ( !pRenderer->bWindowMode && GammaController::IsGammaSupported() )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
340 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
341 pRenderer->DrawTextureIndexed(
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
342 17 * uGammaPos + 42,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
343 162u,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
344 (Texture *)(pTextureIDs_GammaPositions[uGammaPos] != -1 ? &pIcons_LOD->pTextures[pTextureIDs_GammaPositions[uGammaPos]] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
345 pRenderer->DrawTextureRGB(0x112u, 0xA9u, &stru_506E40);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
346 v3.uFrameX = 22;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
347 v0 = pGlobalTXT_LocalizationStrings[226];
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
348 v3.uFrameY = 190;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
349 v3.uFrameWidth = 211;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
350 v3.uFrameHeight = 79;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
351 v3.uFrameZ = 232;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
352 v3.uFrameW = 268;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
353 v1 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
354 v3.DrawTitleText(pFontSmallnum, 0, 0, v1, v0, 3u);
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
355 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
356 if ( !pRenderer->pRenderD3D )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
357 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
358 pRenderer->DrawTextureIndexed(
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
359 0x14u,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
360 0x119u,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
361 (Texture *)(uTextureID_507C50 != -1 ? &pIcons_LOD->pTextures[uTextureID_507C50] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
362 pRenderer->DrawTextureIndexed(
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
363 0x14u,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
364 0x12Fu,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
365 (Texture *)(uTextureID_507C54 != -1 ? &pIcons_LOD->pTextures[uTextureID_507C54] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
366 v2 = uTextureID_507C58;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
367 goto LABEL_12;
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 if ( pGame->uFlags2 & GAME_FLAGS_2_DRAW_BLOODSPLATS )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
370 pRenderer->DrawTextureIndexed(
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
371 0x14u,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
372 0x119u,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
373 (Texture *)(uTextureID_507C14 != -1 ? &pIcons_LOD->pTextures[uTextureID_507C14] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
374 if ( pRenderer->bUseColoredLights )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
375 pRenderer->DrawTextureIndexed(
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
376 0x14u,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
377 0x12Fu,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
378 (Texture *)(uTextureID_507C18 != -1 ? &pIcons_LOD->pTextures[uTextureID_507C18] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
379 if ( pRenderer->bTinting )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
380 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
381 v2 = uTextureID_507C1C;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
382 LABEL_12:
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
383 pRenderer->DrawTextureIndexed(0x14u, 0x145u, (Texture *)(v2 != -1 ? &pIcons_LOD->pTextures[v2] : 0));
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 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
386
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
387
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
388
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
389 //----- (00414F82) --------------------------------------------------------
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
390 void __cdecl DrawGameOptions()
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
391 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
392 signed int v0; // eax@1
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
393
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
394 pRenderer->DrawTextureIndexed(8, 8, (Texture *)(uTextureID_Options != -1 ? &pIcons_LOD->pTextures[uTextureID_Options] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
395 pRenderer->DrawTextureIndexed(8, 132, (Texture *)(uTextureID_ControlBG[0] != -1 ? &pIcons_LOD->pTextures[uTextureID_ControlBG[0]] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
396 v0 = 0;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
397 if ( uTurnSpeed == 128 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
398 {
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
399 v0 = 2;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
400 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
401 else
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 if ( uTurnSpeed == 64 )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
404 v0 = 1;
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
405 }
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
406 pRenderer->DrawTextureIndexed(BtnTurnCoord[v0], 270, (Texture *)(uTextureID_ControlBG[v0 + 1] != -1 ? &pIcons_LOD->pTextures[uTextureID_ControlBG[v0 + 1]] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
407 if ( bWalkSound )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
408 pRenderer->DrawTextureIndexed(20, 303, (Texture *)(uTextureID_ControlBG[21] != -1 ? &pIcons_LOD->pTextures[uTextureID_ControlBG[21]] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
409 if ( bShowDamage )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
410 pRenderer->DrawTextureIndexed(128, 303, (Texture *)(uTextureID_ControlBG[22] != -1 ? &pIcons_LOD->pTextures[uTextureID_ControlBG[22]] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
411 if ( bFlipOnExit )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
412 pRenderer->DrawTextureIndexed(128, 325, (Texture *)(uTextureID_ControlBG[9] != -1 ? &pIcons_LOD->pTextures[uTextureID_ControlBG[9]] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
413 if ( bAlwaysRun )
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
414 pRenderer->DrawTextureIndexed(20, 325, (Texture *)(uTextureID_ControlBG[20] != -1 ? &pIcons_LOD->pTextures[uTextureID_ControlBG[20]] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
415 pRenderer->DrawTextureIndexed(17 * (char)uSoundVolumeMultiplier + 265, 162,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
416 (Texture *)(uTextureID_ControlBG[(char)uSoundVolumeMultiplier + 10] != -1 ? &pIcons_LOD->pTextures[uTextureID_ControlBG[(char)uSoundVolumeMultiplier + 10]] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
417 pRenderer->DrawTextureIndexed(17 * (char)uMusicVolimeMultiplier + 265, 216,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
418 (Texture *)(uTextureID_ControlBG[(char)uMusicVolimeMultiplier + 10] != -1 ? &pIcons_LOD->pTextures[uTextureID_ControlBG[(char)uMusicVolimeMultiplier + 10]] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
419 pRenderer->DrawTextureIndexed(17 * (char)uVoicesVolumeMultiplier + 265, 270,
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
420 (Texture *)(uTextureID_ControlBG[(char)uVoicesVolumeMultiplier + 10] != -1 ? &pIcons_LOD->pTextures[uTextureID_ControlBG[(char)uVoicesVolumeMultiplier + 10]] : 0));
d6236f6a9882 Rough function rearranging to new files
Gloval
parents: 701
diff changeset
421 }