annotate MMT.cpp @ 2309:a07bf9afa652

ActorDamageFromMonster minor cleanups
author Grumpy7
date Mon, 17 Mar 2014 22:49:54 +0100
parents 42848bb89be8
children 8a62bd4d51e2
rev   line source
2290
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
1 #define _CRT_SECURE_NO_WARNINGS
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
2
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
3 #include "MMT.h"
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
4 #include "GUIWindow.h"
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
5 #include "mm7_unsorted_subs.h"
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
6 #include "mm7_data.h"
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
7 #include "AudioPlayer.h"
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
8 #include "Mouse.h"
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
9 #include "LOD.h"
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
10 #include "Render.h"
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
11 #include "VideoPlayer.h"
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
12 #include "CShow.h"
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
13 #include "GUIFont.h"
2295
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
14 #include "lib/libpng/png.h"
2290
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
15
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
16 void ShowLogoVideo()
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
17 {
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
18 RGBTexture tex; // [sp+Ch] [bp-30h]@1
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
19 //unsigned int uTrackStartMS; // [sp+34h] [bp-8h]@8
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
20 //unsigned int uTrackEndMS; // [sp+38h] [bp-4h]@8
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
21
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
22 pVideoPlayer->bStopBeforeSchedule = false;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
23 pVideoPlayer->pResetflag = 0;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
24 bGameoverLoop = 1;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
25 if (!bNoVideo)
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
26 {
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
27 pRenderer->PresentBlackScreen();
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
28 PlayFullscreenMovie(MOVIE_3DOLogo, true);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
29 if ( !pVideoPlayer->bStopBeforeSchedule )
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
30 {
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
31 PlayFullscreenMovie(MOVIE_NWCLogo, true);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
32 if ( !pVideoPlayer->bStopBeforeSchedule )
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
33 PlayFullscreenMovie(MOVIE_JVC, true);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
34 }
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
35 }
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
36 char pContainerName[64];
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
37
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
38 sprintf(pContainerName, "data\\New_Icons/%s", "MMTTITLE.pcx");
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
39 tex.LoadPCXFile(pContainerName, 0);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
40
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
41 pRenderer->BeginScene();
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
42 pRenderer->DrawTextureRGB(0, 0, &tex);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
43 free(tex.pPixels);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
44 tex.pPixels = 0;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
45 MainMenuUI_LoadFontsAndSomeStuff();
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
46 DrawMMTCopyrightWindow();
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
47
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
48 pRenderer->EndScene();
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
49 pRenderer->Present();
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
50
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
51 #ifndef _DEBUG
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
52 Sleep(1500); // let the copyright window stay for a while
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
53 #endif
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
54
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
55 /*if (!bNoSound && pAudioPlayer->hAILRedbook )
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
56 {
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
57 pAudioPlayer->SetMusicVolume((signed __int64)(pSoundVolumeLevels[uMusicVolimeMultiplier] * 64.0));
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
58 AIL_redbook_stop(pAudioPlayer->hAILRedbook);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
59 AIL_redbook_track_info(pAudioPlayer->hAILRedbook, 14, &uTrackStartMS, &uTrackEndMS);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
60 AIL_redbook_play(pAudioPlayer->hAILRedbook, uTrackStartMS + 1, uTrackEndMS);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
61 } */
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
62 bGameoverLoop = 0;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
63 }
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
64
2295
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
65 void abort_(const char * s, ...)
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
66 {
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
67 va_list args;
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
68 va_start(args, s);
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
69 vfprintf(stderr, s, args);
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
70 fprintf(stderr, "\n");
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
71 va_end(args);
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
72 abort();
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
73 }
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
74
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
75 Texture *ConvertPNG(const char *name)
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
76 {
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
77 int x, y;
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
78 int width, height;
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
79 png_byte color_type;
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
80 png_byte bit_depth;
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
81 png_structp png_ptr;
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
82 png_infop info_ptr;
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
83 int number_of_passes;
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
84 png_bytep * row_pointers;
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
85 uint i = 0;
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
86 Texture *tex;
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
87
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
88 char header[8]; // 8 is the maximum size that can be checked
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
89
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
90 /* open file and test for it being a png */
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
91 FILE *fp = fopen(name, "rb");
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
92 if (!fp)
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
93 Log::Warning(L"[read_png_file] File %s could not be opened for reading", name);
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
94 fread(header, 1, 8, fp);
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
95 //if (png_sig_cmp(header, 0, 8))
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
96 //Log::Warning(L"[read_png_file] File %s is not recognized as a PNG file", pContainerName);
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
97 /* initialize stuff */
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
98 png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
99
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
100 if (!png_ptr)
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
101 abort_("[read_png_file] png_create_read_struct failed");
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
102
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
103 info_ptr = png_create_info_struct(png_ptr);
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
104 if (!info_ptr)
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
105 abort_("[read_png_file] png_create_info_struct failed");
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
106
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
107 if (setjmp(png_jmpbuf(png_ptr)))
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
108 abort_("[read_png_file] Error during init_io");
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
109
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
110 png_init_io(png_ptr, fp);
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
111 png_set_sig_bytes(png_ptr, 8);
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
112
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
113 png_read_info(png_ptr, info_ptr);
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
114
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
115 width = png_get_image_width(png_ptr, info_ptr);
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
116 height = png_get_image_height(png_ptr, info_ptr);
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
117 color_type = png_get_color_type(png_ptr, info_ptr);
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
118 bit_depth = png_get_bit_depth(png_ptr, info_ptr);
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
119
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
120 number_of_passes = png_set_interlace_handling(png_ptr);
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
121 png_read_update_info(png_ptr, info_ptr);
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
122
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
123
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
124 /* read file */
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
125 if (setjmp(png_jmpbuf(png_ptr)))
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
126 abort_("[read_png_file] Error during read_image");
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
127
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
128 row_pointers = (png_bytep*) malloc(sizeof(png_bytep) * height);
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
129 for (y=0; y<height; y++)
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
130 row_pointers[y] = (png_byte*) malloc(png_get_rowbytes(png_ptr,info_ptr));
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
131 unsigned __int16 * pl = (unsigned __int16 *)row_pointers;
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
132 png_read_image(png_ptr, row_pointers);
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
133
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
134 fclose(fp);
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
135 tex = pIcons_LOD->GetTexture(pIcons_LOD->FindTextureByName("Pending"));//не знаю как зачистить
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
136 tex->uTextureHeight = height;
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
137 tex->uTextureWidth = width;
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
138 tex->uSizeOfMaxLevelOfDetail = png_get_rowbytes(png_ptr, info_ptr);
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
139 tex->uTextureSize = png_get_rowbytes(png_ptr, info_ptr);
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
140 tex->uDecompressedSize = png_get_rowbytes(png_ptr, info_ptr);
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
141
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
142 for (y=0; y<height; y++)
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
143 {
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
144 for (x=0; x<width; x++)
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
145 {
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
146 if ( pl )
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
147 tex->pPalette16[i] = Color16(LOBYTE(pl), BYTE1(pl), BYTE2(pl));
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
148 i++;
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
149 pl++;
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
150 }
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
151 }
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
152 return tex;
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
153 }
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
154
2290
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
155 void MMT_MainMenu_Loop()
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
156 {
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
157 GUIButton *pButton; // eax@27
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
158 unsigned int pControlParam; // ecx@35
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
159 int v10; // ecx@36
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
160 int v11; // ecx@37
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
161 unsigned int pX;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
162 unsigned int pY; // [sp-18h] [bp-54h]@39
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
163 Texture *pTexture; // [sp-14h] [bp-50h]@39
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
164 GUIButton *pButton2; // [sp+0h] [bp-3Ch]@27
2295
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
165 char pContainerName[64];
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
166
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
167
2290
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
168
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
169 pCurrentScreen = SCREEN_GAME;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
170
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
171 pGUIWindow2 = 0;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
172 pAudioPlayer->StopChannels(-1, -1);//остановить/подготовить канал
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
173 pMouse->RemoveHoldingItem();//избавить курсор от вещи
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
174
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
175 pIcons_LOD->_inlined_sub2();
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
176
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
177 pWindow_MMT_MainMenu = GUIWindow::Create(0, 0, window->GetWidth(), window->GetHeight(), WINDOW_MainMenu, 0, 0);
2299
42848bb89be8 ConvertPNG continue
Ritor1
parents: 2295
diff changeset
178 Texture* MMT_MM6 = pIcons_LOD->LoadTexturePtr("title_new", TEXTURE_16BIT_PALETTE);
2295
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
179
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
180 sprintf(pContainerName, "data\\New_Icons/%s", "mm6_button_oval.png");
2299
42848bb89be8 ConvertPNG continue
Ritor1
parents: 2295
diff changeset
181 //Texture* MMT_MM6 = ConvertPNG(pContainerName);
2295
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
182
6fd03869f65c LoadTexture cleaned and add ConvertPNG function
Ritor1
parents: 2290
diff changeset
183
2290
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
184 Texture* MMT_MM7 = pIcons_LOD->LoadTexturePtr("title_load", TEXTURE_16BIT_PALETTE);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
185 Texture* MMT_MM8 = pIcons_LOD->LoadTexturePtr("title_cred", TEXTURE_16BIT_PALETTE);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
186 Texture* MMT_Continue = pIcons_LOD->LoadTexturePtr("title_exit", TEXTURE_16BIT_PALETTE);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
187 Texture* MMT_Exit = pIcons_LOD->LoadTexturePtr("title_exit", TEXTURE_16BIT_PALETTE);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
188
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
189 pMMT_MainMenu_BtnMM6 = pWindow_MMT_MainMenu->CreateButton((window->GetWidth() / 4) - 100, window->GetHeight() / 4, MMT_MM6->uTextureWidth, MMT_MM6->uTextureHeight, 1, 0, UIMSG_MMT_MainMenu_MM6, 0, 0, "", MMT_MM6, 0);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
190 pMMT_MainMenu_BtnMM7 = pWindow_MMT_MainMenu->CreateButton(window->GetWidth() - (window->GetWidth() / 4), window->GetHeight() / 4, MMT_MM7->uTextureWidth, MMT_MM7->uTextureHeight, 1, 0, UIMSG_MMT_MainMenu_MM7, 1, 0, "", MMT_MM7, 0);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
191 pMMT_MainMenu_BtnMM8 = pWindow_MMT_MainMenu->CreateButton(window->GetWidth() - (window->GetWidth() / 4), window->GetHeight() - ((window->GetHeight() / 4) + 50), MMT_MM8->uTextureWidth, MMT_MM8->uTextureHeight, 1, 0, UIMSG_MMT_MainMenu_MM8, 2, 0, "", MMT_MM8, 0);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
192 pMMT_MainMenu_BtnContinue = pWindow_MMT_MainMenu->CreateButton((window->GetWidth() / 4) - 100, window->GetHeight() - ((window->GetHeight() / 4) + 50), MMT_Continue->uTextureWidth, MMT_Continue->uTextureHeight, 1, 0, UIMSG_MMT_MainMenu_Continue, 3, 0, "", MMT_Continue, 0);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
193 pMMT_MainMenu_BtnExit = pWindow_MMT_MainMenu->CreateButton(window->GetWidth() - 130, window->GetHeight() - 35, MMT_Exit->uTextureWidth, MMT_Exit->uTextureHeight, 1, 0, UIMSG_ExitToWindows, 4, 0, "", MMT_Exit, 0);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
194
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
195 pTexture_PCX.Release();
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
196
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
197 sprintf(pContainerName, "data\\New_Icons/%s", "MMTTITLE.pcx");
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
198 pTexture_PCX.LoadPCXFile(pContainerName, 0);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
199 SetCurrentMenuID(MENU_MMT_MAIN_MENU);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
200 SetForegroundWindow(window->GetApiHandle());
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
201 SendMessageW(window->GetApiHandle(), WM_ACTIVATEAPP, 1, 0);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
202 while (GetCurrentMenuID() == MENU_MMT_MAIN_MENU )
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
203 {
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
204 POINT cursor;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
205 pMouse->GetCursorPos(&cursor);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
206
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
207 for (MSG msg; PeekMessageW(&msg, 0, 0, 0, PM_REMOVE);)
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
208 {
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
209 if (msg.message == WM_QUIT)
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
210 Game_DeinitializeAndTerminate(0);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
211 TranslateMessage(&msg);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
212 DispatchMessageW(&msg);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
213 }
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
214
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
215 if (dword_6BE364_game_settings_1 & GAME_SETTINGS_APP_INACTIVE)
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
216 {
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
217 WaitMessage();
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
218 continue;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
219 }
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
220
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
221 pRenderer->BeginScene();
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
222 pRenderer->DrawTextureRGB(0, 0, &pTexture_PCX);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
223
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
224 MMT_MenuMessageProc();
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
225 GUI_UpdateWindows();
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
226
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
227 if ( !pModalWindow )// ???
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
228 {
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
229 pButton = pWindow_MMT_MainMenu->pControlsHead;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
230 for ( pButton = pWindow_MMT_MainMenu->pControlsHead; pButton; pButton = pButton->pNext )
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
231 {
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
232 if ( cursor.x >= (signed int)pButton->uX && cursor.x <= (signed int)pButton->uZ
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
233 && cursor.y >= (signed int)pButton->uY && cursor.y <= (signed int)pButton->uW )
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
234 {
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
235 pControlParam = pButton->msg_param;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
236 switch (pControlParam) // подсветка кнопок
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
237 {
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
238 case 0:
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
239 pTexture = MMT_MM6;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
240 pX = (window->GetWidth() / 4) - 100;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
241 pY = window->GetHeight() / 4;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
242 break;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
243 case 1:
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
244 pTexture = MMT_MM7;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
245 pX = window->GetWidth() - (window->GetWidth() / 4);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
246 pY = window->GetHeight() / 4;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
247 break;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
248 case 2:
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
249 pTexture = MMT_MM8;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
250 pX = window->GetWidth() - (window->GetWidth() / 4);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
251 pY = window->GetHeight() - ((window->GetHeight() / 4) + 50);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
252 break;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
253 case 3:
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
254 pTexture = MMT_Continue;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
255 pX = (window->GetWidth() / 4) - 100;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
256 pY = window->GetHeight() - ((window->GetHeight() / 4) + 50);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
257 break;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
258 case 4:
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
259 pTexture = MMT_Exit;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
260 pX = window->GetWidth() - 130;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
261 pY = window->GetHeight() - 35;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
262 break;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
263 }
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
264 pRenderer->DrawTextureIndexed(pX, pY, pTexture); //подсветка кнопок
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
265 }
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
266 }
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
267 }
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
268 //}
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
269 pRenderer->EndScene();
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
270 pRenderer->Present();
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
271 }
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
272 MMT_MenuMessageProc();
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
273 pRenderer->BeginScene();
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
274 GUI_UpdateWindows();
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
275 pRenderer->EndScene();
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
276 pRenderer->Present();
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
277 pTexture_PCX.Release();
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
278 if ( pGUIWindow2 )
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
279 {
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
280 pGUIWindow2->Release();
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
281 pGUIWindow2 = 0;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
282 }
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
283 pWindow_MMT_MainMenu->Release();
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
284 pIcons_LOD->RemoveTexturesPackFromTextureList();
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
285 }
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
286
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
287 void MMT_MenuMessageProc()
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
288 {
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
289 int pParam;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
290 int pParam2;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
291 UIMessageType pUIMessageType;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
292
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
293 if ( pMessageQueue_50CBD0->uNumMessages )
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
294 {
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
295 do
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
296 {
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
297
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
298 pMessageQueue_50CBD0->PopMessage(&pUIMessageType, &pParam, &pParam2);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
299
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
300 switch (pUIMessageType)
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
301 {
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
302 case UIMSG_MMT_MainMenu_MM7: //кнопка игры ММ7
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
303 //GUIWindow::Create(495, 172, 0, 0, WINDOW_PressedButton2, (int)pMainMenu_BtnNew, 0);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
304 ShowMM7IntroVideo_and_LoadingScreen();
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
305 SetCurrentMenuID(MENU_MAIN);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
306 break;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
307
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
308 default:
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
309 break;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
310 }
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
311 }
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
312 while ( pMessageQueue_50CBD0->uNumMessages );
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
313 }
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
314 }
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
315 void DrawMMTCopyrightWindow()
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
316 {
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
317 GUIWindow Dst; // [sp+8h] [bp-54h]@1
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
318
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
319 memset(&Dst, 0, 0x54u);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
320 Dst.uFrameWidth = 624;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
321 Dst.uFrameHeight = 256;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
322 Dst.uFrameX = 8;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
323 Dst.uFrameY = 30;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
324 Dst.uFrameHeight = pFontSmallnum->CalcTextHeight("Text Verification: Here we can write an explanation of the project", &Dst, 24, 0)
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
325 + 2 * LOBYTE(pFontSmallnum->uFontHeight)
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
326 + 24;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
327 Dst.uFrameY = 470 - Dst.uFrameHeight;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
328 Dst.uFrameZ = Dst.uFrameX + Dst.uFrameWidth - 1;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
329 Dst.uFrameW = 469;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
330 //Dst.Hint = "abcagfdsgsg ljsrengvlkjesnfkjwnef";
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
331 Dst.DrawMessageBox(0);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
332
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
333 Dst.uFrameWidth -= 24;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
334 Dst.uFrameX += 12;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
335 Dst.uFrameY += 12;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
336 Dst.uFrameHeight -= 12;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
337 Dst.uFrameZ = Dst.uFrameX + Dst.uFrameWidth - 1;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
338 Dst.uFrameW = Dst.uFrameY + Dst.uFrameHeight - 1;
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
339 Dst.DrawTitleText(pFontSmallnum, 0, 0xCu, ui_mainmenu_copyright_color, "Text Verification: Here we can write an explanation of the project", 3);
d65414f65bd4 add MMT.cpp and MMT.h
Ritor1
parents:
diff changeset
340 }