mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
skill menu entries can be translated
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7180 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+34
-14
@@ -140,7 +140,7 @@ TraitSelection::Setup( UINT32 aVal )
|
|||||||
}
|
}
|
||||||
|
|
||||||
// cancel option
|
// cancel option
|
||||||
swprintf( pStr, L"Cancel" );
|
swprintf( pStr, pSkillMenuStrings[SKILLMENU_CANCEL] );
|
||||||
pOption = new POPUP_OPTION(&std::wstring( pStr ), new popupCallbackFunction<void,UINT32>( &Wrapper_Cancel_TraitSelection, 0 ) );
|
pOption = new POPUP_OPTION(&std::wstring( pStr ), new popupCallbackFunction<void,UINT32>( &Wrapper_Cancel_TraitSelection, 0 ) );
|
||||||
GetPopup()->addOption( *pOption );
|
GetPopup()->addOption( *pOption );
|
||||||
|
|
||||||
@@ -248,7 +248,7 @@ SkillSelection::Setup( UINT32 aVal )
|
|||||||
}
|
}
|
||||||
|
|
||||||
// cancel option
|
// cancel option
|
||||||
swprintf( pStr, L"Cancel" );
|
swprintf( pStr, pSkillMenuStrings[SKILLMENU_CANCEL] );
|
||||||
pOption = new POPUP_OPTION(&std::wstring( pStr ), new popupCallbackFunction<void,UINT32>( &Wrapper_Cancel_SkillSelection, 0 ) );
|
pOption = new POPUP_OPTION(&std::wstring( pStr ), new popupCallbackFunction<void,UINT32>( &Wrapper_Cancel_SkillSelection, 0 ) );
|
||||||
GetPopup()->addOption( *pOption );
|
GetPopup()->addOption( *pOption );
|
||||||
}
|
}
|
||||||
@@ -354,7 +354,7 @@ ArtillerySector::Setup( UINT32 aVal )
|
|||||||
}
|
}
|
||||||
|
|
||||||
// cancel option
|
// cancel option
|
||||||
swprintf( pStr, L"Cancel" );
|
swprintf( pStr, pSkillMenuStrings[SKILLMENU_CANCEL] );
|
||||||
pOption = new POPUP_OPTION(&std::wstring( pStr ), new popupCallbackFunction<void,UINT32>( &Wrapper_Cancel_ArtillerySector, 0 ) );
|
pOption = new POPUP_OPTION(&std::wstring( pStr ), new popupCallbackFunction<void,UINT32>( &Wrapper_Cancel_ArtillerySector, 0 ) );
|
||||||
GetPopup()->addOption( *pOption );
|
GetPopup()->addOption( *pOption );
|
||||||
|
|
||||||
@@ -397,7 +397,7 @@ ArtilleryTeam::Setup( UINT32 aVal )
|
|||||||
INT16 sSectorY = SECTORY(usSector);
|
INT16 sSectorY = SECTORY(usSector);
|
||||||
|
|
||||||
// order artillery from militia
|
// order artillery from militia
|
||||||
swprintf( pStr, L"Militia" );
|
swprintf( pStr, pSkillMenuStrings[SKILLMENU_MILITIA] );
|
||||||
|
|
||||||
pOption = new POPUP_OPTION(&std::wstring( pStr ), new popupCallbackFunction<void, UINT32>( &Wrapper_Function_ArtilleryTeam, MILITIA_TEAM ) );
|
pOption = new POPUP_OPTION(&std::wstring( pStr ), new popupCallbackFunction<void, UINT32>( &Wrapper_Function_ArtilleryTeam, MILITIA_TEAM ) );
|
||||||
|
|
||||||
@@ -410,7 +410,7 @@ ArtilleryTeam::Setup( UINT32 aVal )
|
|||||||
GetPopup()->addOption( *pOption );
|
GetPopup()->addOption( *pOption );
|
||||||
|
|
||||||
// order artillery from our mercs
|
// order artillery from our mercs
|
||||||
swprintf( pStr, L"Other Squads" );
|
swprintf( pStr, pSkillMenuStrings[SKILLMENU_OTHERSQUADS] );
|
||||||
|
|
||||||
pOption = new POPUP_OPTION(&std::wstring( pStr ), new popupCallbackFunction<void, INT8>( &Wrapper_Function_ArtilleryTeam, pSoldier->bTeam ) );
|
pOption = new POPUP_OPTION(&std::wstring( pStr ), new popupCallbackFunction<void, INT8>( &Wrapper_Function_ArtilleryTeam, pSoldier->bTeam ) );
|
||||||
|
|
||||||
@@ -423,7 +423,7 @@ ArtilleryTeam::Setup( UINT32 aVal )
|
|||||||
GetPopup()->addOption( *pOption );
|
GetPopup()->addOption( *pOption );
|
||||||
|
|
||||||
// cancel option
|
// cancel option
|
||||||
swprintf( pStr, L"Cancel" );
|
swprintf( pStr, pSkillMenuStrings[SKILLMENU_CANCEL] );
|
||||||
pOption = new POPUP_OPTION(&std::wstring( pStr ), new popupCallbackFunction<void,UINT32>( &Wrapper_Cancel_ArtilleryTeam, 0 ) );
|
pOption = new POPUP_OPTION(&std::wstring( pStr ), new popupCallbackFunction<void,UINT32>( &Wrapper_Cancel_ArtilleryTeam, 0 ) );
|
||||||
GetPopup()->addOption( *pOption );
|
GetPopup()->addOption( *pOption );
|
||||||
|
|
||||||
@@ -511,7 +511,7 @@ ReinforcementSector::Setup( UINT32 aVal )
|
|||||||
}
|
}
|
||||||
|
|
||||||
// cancel option
|
// cancel option
|
||||||
swprintf( pStr, L"Cancel" );
|
swprintf( pStr, pSkillMenuStrings[SKILLMENU_CANCEL] );
|
||||||
pOption = new POPUP_OPTION(&std::wstring( pStr ), new popupCallbackFunction<void, UINT32>( &Wrapper_Cancel_ReinforcementSector, 0 ) );
|
pOption = new POPUP_OPTION(&std::wstring( pStr ), new popupCallbackFunction<void, UINT32>( &Wrapper_Cancel_ReinforcementSector, 0 ) );
|
||||||
GetPopup()->addOption( *pOption );
|
GetPopup()->addOption( *pOption );
|
||||||
}
|
}
|
||||||
@@ -547,7 +547,7 @@ ReinforcementNumber::Setup( UINT32 aVal )
|
|||||||
UINT8 numberofmilitia = CountAllMilitiaInSector( SECTORX(usSector), SECTORY(usSector) );
|
UINT8 numberofmilitia = CountAllMilitiaInSector( SECTORX(usSector), SECTORY(usSector) );
|
||||||
|
|
||||||
// 5 militia option
|
// 5 militia option
|
||||||
swprintf( pStr, L"5 Militia" );
|
swprintf( pStr, pSkillMenuStrings[SKILLMENU_X_MILITIA], 5 );
|
||||||
pOption = new POPUP_OPTION(&std::wstring( pStr ), new popupCallbackFunction<void, UINT32>( &Wrapper_Function_ReinforcementNumber, 5 ) );
|
pOption = new POPUP_OPTION(&std::wstring( pStr ), new popupCallbackFunction<void, UINT32>( &Wrapper_Function_ReinforcementNumber, 5 ) );
|
||||||
|
|
||||||
if ( numberofmilitia < 5 )
|
if ( numberofmilitia < 5 )
|
||||||
@@ -559,7 +559,7 @@ ReinforcementNumber::Setup( UINT32 aVal )
|
|||||||
GetPopup()->addOption( *pOption );
|
GetPopup()->addOption( *pOption );
|
||||||
|
|
||||||
// 10 militia option
|
// 10 militia option
|
||||||
swprintf( pStr, L"10 Militia" );
|
swprintf( pStr, pSkillMenuStrings[SKILLMENU_X_MILITIA], 10 );
|
||||||
pOption = new POPUP_OPTION(&std::wstring( pStr ), new popupCallbackFunction<void, UINT32>( &Wrapper_Function_ReinforcementNumber, 10 ) );
|
pOption = new POPUP_OPTION(&std::wstring( pStr ), new popupCallbackFunction<void, UINT32>( &Wrapper_Function_ReinforcementNumber, 10 ) );
|
||||||
|
|
||||||
if ( numberofmilitia < 10 )
|
if ( numberofmilitia < 10 )
|
||||||
@@ -571,7 +571,7 @@ ReinforcementNumber::Setup( UINT32 aVal )
|
|||||||
GetPopup()->addOption( *pOption );
|
GetPopup()->addOption( *pOption );
|
||||||
|
|
||||||
// 15 militia option
|
// 15 militia option
|
||||||
swprintf( pStr, L"15 Militia" );
|
swprintf( pStr, pSkillMenuStrings[SKILLMENU_X_MILITIA], 15 );
|
||||||
pOption = new POPUP_OPTION(&std::wstring( pStr ), new popupCallbackFunction<void, UINT32>( &Wrapper_Function_ReinforcementNumber, 15 ) );
|
pOption = new POPUP_OPTION(&std::wstring( pStr ), new popupCallbackFunction<void, UINT32>( &Wrapper_Function_ReinforcementNumber, 15 ) );
|
||||||
|
|
||||||
if ( numberofmilitia < 15 )
|
if ( numberofmilitia < 15 )
|
||||||
@@ -583,7 +583,7 @@ ReinforcementNumber::Setup( UINT32 aVal )
|
|||||||
GetPopup()->addOption( *pOption );
|
GetPopup()->addOption( *pOption );
|
||||||
|
|
||||||
// 20 militia option
|
// 20 militia option
|
||||||
swprintf( pStr, L"20 Militia" );
|
swprintf( pStr, pSkillMenuStrings[SKILLMENU_X_MILITIA], 20 );
|
||||||
pOption = new POPUP_OPTION(&std::wstring( pStr ), new popupCallbackFunction<void, UINT32>( &Wrapper_Function_ReinforcementNumber, 20 ) );
|
pOption = new POPUP_OPTION(&std::wstring( pStr ), new popupCallbackFunction<void, UINT32>( &Wrapper_Function_ReinforcementNumber, 20 ) );
|
||||||
|
|
||||||
if ( numberofmilitia < 20 )
|
if ( numberofmilitia < 20 )
|
||||||
@@ -592,16 +592,36 @@ ReinforcementNumber::Setup( UINT32 aVal )
|
|||||||
pOption->setAvail(new popupCallbackFunction<bool,void*>( &Popup_OptionOff, NULL ));
|
pOption->setAvail(new popupCallbackFunction<bool,void*>( &Popup_OptionOff, NULL ));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 30 militia option
|
||||||
|
swprintf( pStr, pSkillMenuStrings[SKILLMENU_X_MILITIA], 30 );
|
||||||
|
pOption = new POPUP_OPTION( &std::wstring( pStr ), new popupCallbackFunction<void, UINT32>( &Wrapper_Function_ReinforcementNumber, 30 ) );
|
||||||
|
|
||||||
|
if ( numberofmilitia < 30 )
|
||||||
|
{
|
||||||
|
// Set this option off.
|
||||||
|
pOption->setAvail( new popupCallbackFunction<bool, void*>( &Popup_OptionOff, NULL ) );
|
||||||
|
}
|
||||||
|
|
||||||
|
// 40 militia option
|
||||||
|
swprintf( pStr, pSkillMenuStrings[SKILLMENU_X_MILITIA], 40 );
|
||||||
|
pOption = new POPUP_OPTION( &std::wstring( pStr ), new popupCallbackFunction<void, UINT32>( &Wrapper_Function_ReinforcementNumber, 40 ) );
|
||||||
|
|
||||||
|
if ( numberofmilitia < 40 )
|
||||||
|
{
|
||||||
|
// Set this option off.
|
||||||
|
pOption->setAvail( new popupCallbackFunction<bool, void*>( &Popup_OptionOff, NULL ) );
|
||||||
|
}
|
||||||
|
|
||||||
GetPopup()->addOption( *pOption );
|
GetPopup()->addOption( *pOption );
|
||||||
|
|
||||||
// all militia option
|
// all militia option
|
||||||
swprintf( pStr, L"All Militia" );
|
swprintf( pStr, pSkillMenuStrings[SKILLMENU_ALL_MILITIA] );
|
||||||
|
|
||||||
pOption = new POPUP_OPTION(&std::wstring( pStr ), new popupCallbackFunction<void, UINT32>( &Wrapper_Function_ReinforcementNumber, numberofmilitia ) );
|
pOption = new POPUP_OPTION(&std::wstring( pStr ), new popupCallbackFunction<void, UINT32>( &Wrapper_Function_ReinforcementNumber, numberofmilitia ) );
|
||||||
GetPopup()->addOption( *pOption );
|
GetPopup()->addOption( *pOption );
|
||||||
|
|
||||||
// cancel option
|
// cancel option
|
||||||
swprintf( pStr, L"Cancel" );
|
swprintf( pStr, pSkillMenuStrings[SKILLMENU_CANCEL] );
|
||||||
pOption = new POPUP_OPTION(&std::wstring( pStr ), new popupCallbackFunction<void, UINT32>( &Wrapper_Cancel_ReinforcementNumber, 0 ) );
|
pOption = new POPUP_OPTION(&std::wstring( pStr ), new popupCallbackFunction<void, UINT32>( &Wrapper_Cancel_ReinforcementNumber, 0 ) );
|
||||||
GetPopup()->addOption( *pOption );
|
GetPopup()->addOption( *pOption );
|
||||||
}
|
}
|
||||||
@@ -680,7 +700,7 @@ SoldierSelection::Setup( UINT32 aVal )
|
|||||||
}
|
}
|
||||||
|
|
||||||
// cancel option
|
// cancel option
|
||||||
swprintf( pStr, L"Cancel" );
|
swprintf( pStr, pSkillMenuStrings[SKILLMENU_CANCEL] );
|
||||||
pOption = new POPUP_OPTION(&std::wstring( pStr ), new popupCallbackFunction<void,UINT32>( &Wrapper_Cancel_SoldierSelection, 0 ) );
|
pOption = new POPUP_OPTION(&std::wstring( pStr ), new popupCallbackFunction<void,UINT32>( &Wrapper_Cancel_SoldierSelection, 0 ) );
|
||||||
GetPopup()->addOption( *pOption );
|
GetPopup()->addOption( *pOption );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -157,6 +157,17 @@ extern STR16 pMilitiaControlMenuStrings[]; //lal
|
|||||||
extern STR16 pTraitSkillsMenuStrings[]; //Flugente
|
extern STR16 pTraitSkillsMenuStrings[]; //Flugente
|
||||||
extern STR16 pTraitSkillsMenuDescStrings[]; //Flugente
|
extern STR16 pTraitSkillsMenuDescStrings[]; //Flugente
|
||||||
extern STR16 pTraitSkillsDenialStrings[]; //Flugente
|
extern STR16 pTraitSkillsDenialStrings[]; //Flugente
|
||||||
|
|
||||||
|
enum
|
||||||
|
{
|
||||||
|
SKILLMENU_MILITIA,
|
||||||
|
SKILLMENU_OTHERSQUADS,
|
||||||
|
SKILLMENU_CANCEL,
|
||||||
|
SKILLMENU_X_MILITIA,
|
||||||
|
SKILLMENU_ALL_MILITIA,
|
||||||
|
};
|
||||||
|
|
||||||
|
extern STR16 pSkillMenuStrings[]; //Flugente
|
||||||
//extern STR16 pTalkToAllMenuStrings[];
|
//extern STR16 pTalkToAllMenuStrings[];
|
||||||
extern STR16 pSnitchMenuStrings[];
|
extern STR16 pSnitchMenuStrings[];
|
||||||
extern STR16 pSnitchMenuDescStrings[];
|
extern STR16 pSnitchMenuDescStrings[];
|
||||||
|
|||||||
@@ -2203,6 +2203,15 @@ STR16 pTraitSkillsDenialStrings[] =
|
|||||||
L" - 恶魔的财产", //L" - posession by a demon"
|
L" - 恶魔的财产", //L" - posession by a demon"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
STR16 pSkillMenuStrings[] = // TODO.Translate
|
||||||
|
{
|
||||||
|
L"Militia",
|
||||||
|
L"Other Squads",
|
||||||
|
L"Cancel",
|
||||||
|
L"%d Militia",
|
||||||
|
|
||||||
|
L"All Militia",
|
||||||
|
};
|
||||||
|
|
||||||
STR16 pSnitchMenuStrings[] =
|
STR16 pSnitchMenuStrings[] =
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2200,6 +2200,16 @@ STR16 pTraitSkillsDenialStrings[] =
|
|||||||
L" - possession by a demon",
|
L" - possession by a demon",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
STR16 pSkillMenuStrings[] = // TODO.Translate
|
||||||
|
{
|
||||||
|
L"Militia",
|
||||||
|
L"Other Squads",
|
||||||
|
L"Cancel",
|
||||||
|
L"%d Militia",
|
||||||
|
|
||||||
|
L"All Militia",
|
||||||
|
};
|
||||||
|
|
||||||
// TODO.Translate
|
// TODO.Translate
|
||||||
STR16 pSnitchMenuStrings[] =
|
STR16 pSnitchMenuStrings[] =
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2204,6 +2204,16 @@ STR16 pTraitSkillsDenialStrings[] =
|
|||||||
L" - possession by a demon",
|
L" - possession by a demon",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
STR16 pSkillMenuStrings[] =
|
||||||
|
{
|
||||||
|
L"Militia",
|
||||||
|
L"Other Squads",
|
||||||
|
L"Cancel",
|
||||||
|
L"%d Militia",
|
||||||
|
|
||||||
|
L"All Militia",
|
||||||
|
};
|
||||||
|
|
||||||
STR16 pSnitchMenuStrings[] =
|
STR16 pSnitchMenuStrings[] =
|
||||||
{
|
{
|
||||||
// snitch
|
// snitch
|
||||||
|
|||||||
@@ -2207,6 +2207,15 @@ STR16 pTraitSkillsDenialStrings[] =
|
|||||||
L" - possession par un démon",
|
L" - possession par un démon",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
STR16 pSkillMenuStrings[] = // TODO.Translate
|
||||||
|
{
|
||||||
|
L"Militia",
|
||||||
|
L"Other Squads",
|
||||||
|
L"Cancel",
|
||||||
|
L"%d Militia",
|
||||||
|
|
||||||
|
L"All Militia",
|
||||||
|
};
|
||||||
|
|
||||||
STR16 pSnitchMenuStrings[] =
|
STR16 pSnitchMenuStrings[] =
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2205,6 +2205,16 @@ STR16 pTraitSkillsDenialStrings[] =
|
|||||||
L" - besessen von einem Dämon",
|
L" - besessen von einem Dämon",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
STR16 pSkillMenuStrings[] = // TODO.Translate
|
||||||
|
{
|
||||||
|
L"Militia",
|
||||||
|
L"Other Squads",
|
||||||
|
L"Cancel",
|
||||||
|
L"%d Militia",
|
||||||
|
|
||||||
|
L"All Militia",
|
||||||
|
};
|
||||||
|
|
||||||
// TODO.Translate
|
// TODO.Translate
|
||||||
STR16 pSnitchMenuStrings[] =
|
STR16 pSnitchMenuStrings[] =
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2196,6 +2196,16 @@ STR16 pTraitSkillsDenialStrings[] =
|
|||||||
L" - possession by a demon",
|
L" - possession by a demon",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
STR16 pSkillMenuStrings[] = // TODO.Translate
|
||||||
|
{
|
||||||
|
L"Militia",
|
||||||
|
L"Other Squads",
|
||||||
|
L"Cancel",
|
||||||
|
L"%d Militia",
|
||||||
|
|
||||||
|
L"All Militia",
|
||||||
|
};
|
||||||
|
|
||||||
// TODO.Translate
|
// TODO.Translate
|
||||||
STR16 pSnitchMenuStrings[] =
|
STR16 pSnitchMenuStrings[] =
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2212,6 +2212,16 @@ STR16 pTraitSkillsDenialStrings[] =
|
|||||||
L" - possession by a demon",
|
L" - possession by a demon",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
STR16 pSkillMenuStrings[] = // TODO.Translate
|
||||||
|
{
|
||||||
|
L"Militia",
|
||||||
|
L"Other Squads",
|
||||||
|
L"Cancel",
|
||||||
|
L"%d Militia",
|
||||||
|
|
||||||
|
L"All Militia",
|
||||||
|
};
|
||||||
|
|
||||||
STR16 pSnitchMenuStrings[] =
|
STR16 pSnitchMenuStrings[] =
|
||||||
{
|
{
|
||||||
// snitch
|
// snitch
|
||||||
|
|||||||
@@ -2204,6 +2204,16 @@ STR16 pTraitSkillsDenialStrings[] =
|
|||||||
L" - possession by a demon",
|
L" - possession by a demon",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
STR16 pSkillMenuStrings[] = // TODO.Translate
|
||||||
|
{
|
||||||
|
L"Militia",
|
||||||
|
L"Other Squads",
|
||||||
|
L"Cancel",
|
||||||
|
L"%d Militia",
|
||||||
|
|
||||||
|
L"All Militia",
|
||||||
|
};
|
||||||
|
|
||||||
// TODO.Translate
|
// TODO.Translate
|
||||||
STR16 pSnitchMenuStrings[] =
|
STR16 pSnitchMenuStrings[] =
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2204,6 +2204,16 @@ STR16 pTraitSkillsDenialStrings[] =
|
|||||||
L" - possession by a demon",
|
L" - possession by a demon",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
STR16 pSkillMenuStrings[] = // TODO.Translate
|
||||||
|
{
|
||||||
|
L"Militia",
|
||||||
|
L"Other Squads",
|
||||||
|
L"Cancel",
|
||||||
|
L"%d Militia",
|
||||||
|
|
||||||
|
L"All Militia",
|
||||||
|
};
|
||||||
|
|
||||||
// TODO.Translate
|
// TODO.Translate
|
||||||
STR16 pSnitchMenuStrings[] =
|
STR16 pSnitchMenuStrings[] =
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user