Chinese Fixes (by zwwooooo)

- Fixed "new colours on ammotypes not work when use WINFONTS for Chinese version
- Updated Chinese Translations

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8646 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2018-12-19 09:57:05 +00:00
parent 92171038ed
commit d65368b6ff
2 changed files with 25 additions and 4 deletions
+21
View File
@@ -224,6 +224,13 @@ void SetRGBFontForeground( UINT32 uiRed, UINT32 uiGreen, UINT32 uiBlue )
if((FontDefault < 0) || (FontDefault > MAX_FONTS))
return;
FontForeground16 = Get16BPPColor( FROMRGB( uiRed, uiGreen, uiBlue ) );
if (iUseWinFonts) {
if (GET_WINFONT() != -1)
{
uiRed = FROMRGB(uiRed, uiGreen, uiBlue);
SetWinFontForeColor(GET_WINFONT(), &uiRed);
}
}
}
void SetRGBFontBackground( UINT32 uiRed, UINT32 uiGreen, UINT32 uiBlue )
@@ -231,6 +238,13 @@ void SetRGBFontBackground( UINT32 uiRed, UINT32 uiGreen, UINT32 uiBlue )
if((FontDefault < 0) || (FontDefault > MAX_FONTS))
return;
FontBackground16 = Get16BPPColor( FROMRGB( uiRed, uiGreen, uiBlue ) );
if (iUseWinFonts) {
if (GET_WINFONT() != -1)
{
uiRed = FROMRGB(uiRed, uiGreen, uiBlue);
SetWinFontBackColor(GET_WINFONT(), &uiRed);
}
}
}
void SetRGBFontShadow( UINT32 uiRed, UINT32 uiGreen, UINT32 uiBlue )
@@ -245,6 +259,13 @@ void SetRGBFontShadow( UINT32 uiRed, UINT32 uiGreen, UINT32 uiBlue )
void SetRGBFontForeground( UINT16 usFontForeground16 )
{
FontForeground16 = usFontForeground16;
if (iUseWinFonts) {
if (GET_WINFONT() != -1)
{
UINT32 uiRed = GetRGBColor(usFontForeground16);
SetWinFontForeColor(GET_WINFONT(), &uiRed);
}
}
}
void SetRGBFontShadow( UINT16 usFontShadow16 )
+4 -4
View File
@@ -5090,10 +5090,10 @@ STR16 gsAtmSideButtonText[] =
STR16 gsAtmStartButtonText[] =
{
L"转帐 $", // transfer money to merc -- short form
L"状态", // view stats of the merc
L"物品清单", // view the inventory of the merc
L"雇佣合同",
L"状态", //L"Stats", // view stats of the merc
L"更多状态", //L"More Stats",
L"雇佣合同", //L"Employment",
L"物品清单", //L"Inventory", // view the inventory of the merc
};
STR16 sATMText[ ]=