mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
- Added Chinese language support (thx to Noword from TBS)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2424 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -403,11 +403,13 @@ void BeginCivQuote( SOLDIERTYPE *pCiv, UINT8 ubCivQuoteID, UINT8 ubEntryID, INT1
|
||||
// Create video oeverlay....
|
||||
memset( &VideoOverlayDesc, 0, sizeof( VIDEO_OVERLAY_DESC ) );
|
||||
|
||||
//never use it anymore
|
||||
//SET_USE_WINFONTS( TRUE );
|
||||
//SET_WINFONT( giSubTitleWinFont );
|
||||
// Prepare text box
|
||||
SET_USE_WINFONTS( TRUE );
|
||||
SET_WINFONT( giSubTitleWinFont );
|
||||
gCivQuoteData.iDialogueBox = PrepareMercPopupBox( gCivQuoteData.iDialogueBox , BASIC_MERC_POPUP_BACKGROUND, BASIC_MERC_POPUP_BORDER, gzCivQuote, DIALOGUE_DEFAULT_WIDTH, 0, 0, 0, &gusCivQuoteBoxWidth, &gusCivQuoteBoxHeight );
|
||||
SET_USE_WINFONTS( FALSE );
|
||||
//SET_USE_WINFONTS( FALSE );
|
||||
|
||||
|
||||
// OK, find center for box......
|
||||
sX = sX - ( gusCivQuoteBoxWidth / 2 );
|
||||
|
||||
@@ -2041,11 +2041,12 @@ void ExecuteTacticalTextBox( INT16 sLeftPosition, STR16 pString )
|
||||
|
||||
memset( &VideoOverlayDesc, 0, sizeof( VIDEO_OVERLAY_DESC ) );
|
||||
|
||||
//never use it anymore
|
||||
//SET_USE_WINFONTS( TRUE );
|
||||
//SET_WINFONT( giSubTitleWinFont );
|
||||
// Prepare text box
|
||||
SET_USE_WINFONTS( TRUE );
|
||||
SET_WINFONT( giSubTitleWinFont );
|
||||
iDialogueBox = PrepareMercPopupBox( iDialogueBox , BASIC_MERC_POPUP_BACKGROUND, BASIC_MERC_POPUP_BORDER, pString, DIALOGUE_DEFAULT_SUBTITLE_WIDTH, 0, 0, 0, &gusSubtitleBoxWidth, &gusSubtitleBoxHeight );
|
||||
SET_USE_WINFONTS( FALSE );
|
||||
//SET_USE_WINFONTS( FALSE );
|
||||
|
||||
|
||||
VideoOverlayDesc.sLeft = sLeftPosition;
|
||||
|
||||
@@ -784,11 +784,7 @@ void RenderTalkingMenu( )
|
||||
RemoveMercPopupBoxFromIndex( iInterfaceDialogueBox );
|
||||
iInterfaceDialogueBox = -1;
|
||||
}
|
||||
|
||||
SET_USE_WINFONTS( TRUE );
|
||||
SET_WINFONT( giSubTitleWinFont );
|
||||
iInterfaceDialogueBox = PrepareMercPopupBox( iInterfaceDialogueBox,BASIC_MERC_POPUP_BACKGROUND, BASIC_MERC_POPUP_BORDER, gTalkPanel.zQuoteStr, TALK_PANEL_DEFAULT_SUBTITLE_WIDTH, 0, 0, 0, &usTextBoxWidth, &usTextBoxHeight );
|
||||
SET_USE_WINFONTS( FALSE );
|
||||
|
||||
gTalkPanel.fSetupSubTitles = FALSE;
|
||||
|
||||
|
||||
@@ -4717,13 +4717,8 @@ void InitShopKeeperSubTitledText( STR16 pString )
|
||||
UINT16 usActualWidth=0;
|
||||
UINT16 usActualHeight=0;
|
||||
|
||||
SET_USE_WINFONTS( TRUE );
|
||||
SET_WINFONT( giSubTitleWinFont );
|
||||
|
||||
|
||||
giPopUpBoxId = PrepareMercPopupBox( giPopUpBoxId, BASIC_MERC_POPUP_BACKGROUND, BASIC_MERC_POPUP_BORDER, gsShopKeeperTalkingText, 300, 0, 0, 0, &usActualWidth, &usActualHeight);
|
||||
|
||||
SET_USE_WINFONTS( FALSE );
|
||||
|
||||
// gusPositionOfSubTitlesX = ( 640 - usActualWidth ) / 2 ;
|
||||
//position it to start under the guys face
|
||||
|
||||
@@ -30,6 +30,7 @@ typedef PARSE_STAGE;
|
||||
#define FRENCH_PREFIX "French."
|
||||
#define ITALIAN_PREFIX "Italian."
|
||||
#define TAIWANESE_PREFIX "Tiawanese."
|
||||
#define CHINESE_PREFIX "Chinese."
|
||||
|
||||
#define ATTACHMENTSFILENAME "Attachments.xml"
|
||||
#define ATTACHMENTINFOFILENAME "AttachmentInfo.xml"
|
||||
|
||||
Reference in New Issue
Block a user