mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Localize dmbox and gmbox
This commit is contained in:
parent
6a31381c8e
commit
6049ecfc6e
2 changed files with 5 additions and 3 deletions
|
@ -21,6 +21,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "cl_ui.h"
|
#include "cl_ui.h"
|
||||||
|
#include "../qcommon/localization.h"
|
||||||
|
|
||||||
Event EV_DMBox_Goin
|
Event EV_DMBox_Goin
|
||||||
(
|
(
|
||||||
|
@ -321,7 +322,7 @@ void UIDMBox::Print(const char *text)
|
||||||
m_items[m_numitems].font = m_font;
|
m_items[m_numitems].font = m_font;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_items[m_numitems].string = CalculateBreaks(m_items[m_numitems].font, text1, s_dmboxWidth);
|
m_items[m_numitems].string = CalculateBreaks(m_items[m_numitems].font, Sys_LV_CL_ConvertString(text1), s_dmboxWidth);
|
||||||
|
|
||||||
m_numitems++;
|
m_numitems++;
|
||||||
VerifyBoxOut();
|
VerifyBoxOut();
|
||||||
|
|
|
@ -21,6 +21,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "cl_ui.h"
|
#include "cl_ui.h"
|
||||||
|
#include "../qcommon/localization.h"
|
||||||
|
|
||||||
Event EV_GMBox_Goin
|
Event EV_GMBox_Goin
|
||||||
(
|
(
|
||||||
|
@ -295,7 +296,7 @@ void UIGMBox::Print(const char *text)
|
||||||
|
|
||||||
m_items[m_numitems].flags = 0;
|
m_items[m_numitems].flags = 0;
|
||||||
|
|
||||||
if (*text == 3) {
|
if (*text == MESSAGE_WHITE) {
|
||||||
m_items[m_numitems].color = UWhite;
|
m_items[m_numitems].color = UWhite;
|
||||||
m_items[m_numitems].font = m_fontbold;
|
m_items[m_numitems].font = m_fontbold;
|
||||||
m_items[m_numitems].flags |= GMBOX_ITEM_FLAG_BOLD;
|
m_items[m_numitems].flags |= GMBOX_ITEM_FLAG_BOLD;
|
||||||
|
@ -306,7 +307,7 @@ void UIGMBox::Print(const char *text)
|
||||||
m_items[m_numitems].font = m_font;
|
m_items[m_numitems].font = m_font;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_items[m_numitems].string = CalculateBreaks(m_items[m_numitems].font, text1, s_gmboxWidth);
|
m_items[m_numitems].string = CalculateBreaks(m_items[m_numitems].font, Sys_LV_CL_ConvertString(text1), s_gmboxWidth);
|
||||||
|
|
||||||
m_numitems++;
|
m_numitems++;
|
||||||
VerifyBoxOut();
|
VerifyBoxOut();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue