comparison GUIButton.cpp @ 1026:6afa77761a00

Слияние
author Ritor1
date Tue, 21 May 2013 12:43:08 +0600
parents 9ac94d00012e
children 0dbf6c4dd029
comparison
equal deleted inserted replaced
1025:8b492d4722d4 1026:6afa77761a00
1 #include "GUIWindow.h" 1 #include "GUIWindow.h"
2 #include "GUIFont.h" 2 #include "GUIFont.h"
3 #include "Allocator.h"
4 3
5 #include "mm7_data.h" 4 #include "mm7_data.h"
6 5
7 6
8 7
155 } 154 }
156 } 155 }
157 156
158 157
159 //----- (00415180) -------------------------------------------------------- 158 //----- (00415180) --------------------------------------------------------
160 char GUIButton::DrawLabel(const char *edx0, GUIFont *pFont, int a5, int *a9) 159 void GUIButton::DrawLabel( const char *label_text, struct GUIFont *pFont, int a5, int uFontShadowColor )
161 { 160 {
162 const char *v5; // ebx@1 161 const char *v5; // ebx@1
163 GUIButton *v6; // esi@1 162 GUIButton *v6; // esi@1
164 int v7; // eax@1 163 int v7; // eax@1
165 164
166 v5 = edx0; 165 v5 = label_text;
167 v6 = this; 166 v6 = this;
168 //strlen(edx0); 167 //strlen(edx0);
169 v7 = pFont->GetLineWidth(edx0); 168 v7 = pFont->GetLineWidth(label_text);
170 return pParent->DrawText( 169 return pParent->DrawText(
171 pFont, 170 pFont,
172 v6->uX + (signed int)(v6->uWidth - v7) / 2, 171 v6->uX + (signed int)(v6->uWidth - v7) / 2,
173 v6->uY + (signed int)(v6->uHeight - LOBYTE(pFont->uFontHeight)) / 2, 172 v6->uY + (signed int)(v6->uHeight - pFont->uFontHeight) / 2,
174 a5, 173 a5,
175 v5, 174 label_text,
176 0, 175 0,
177 0, 176 0,
178 (unsigned int)a9); 177 uFontShadowColor);
179 } 178 }