@ -89,14 +89,14 @@ using namespace STRING_MANAGER;
// STATIC FUNCTIONS DECLARATIONS //
///////////////////////////////////
static void setupCreatorName ( CSheetHelpSetup & setup ) ;
static void setHelpText ( CSheetHelpSetup & setup , const uc string & text ) ;
static void setHelpText ( CSheetHelpSetup & setup , const string & text ) ;
static void setHelpTextID ( CSheetHelpSetup & setup , sint32 id ) ;
static void fillSabrinaPhraseListBrick ( const CSPhraseCom & phrase , IListSheetBase * listBrick ) ;
static void setupListBrickHeader ( CSheetHelpSetup & setup ) ;
static void hideListBrickHeader ( CSheetHelpSetup & setup ) ;
static void setupHelpPage ( CInterfaceGroup * window , const string & url ) ;
static void setupHelpTitle ( CInterfaceGroup * group , const uc string & title ) ;
static void setupHelpTitle ( CInterfaceGroup * group , const string & title ) ;
static void setHelpCtrlSheet ( CSheetHelpSetup & setup , uint32 sheetId ) ;
// Setup help for an item in a window (type is known)
@ -187,7 +187,7 @@ void CInterfaceHelp::initWindows()
// add observers for the update of phrase help texts (depends of weight of equipped weapons)
for ( uint i = 0 ; i < MAX_HANDINV_ENTRIES ; + + i )
{
CCDBNodeLeaf * pNodeLeaf = NLGUI : : CDBManager : : getInstance ( ) - > getDbProp ( st d: : st ring( LOCAL_INVENTORY ) + " :HAND: " + toString ( i ) , false ) ;
CCDBNodeLeaf * pNodeLeaf = NLGUI : : CDBManager : : getInstance ( ) - > getDbProp ( st ring( LOCAL_INVENTORY ) + " :HAND: " + toString ( i ) , false ) ;
if ( pNodeLeaf )
{
ICDBNode : : CTextId textId ;
@ -210,7 +210,7 @@ void CInterfaceHelp::release()
// add observers for the update of phrase help texts (depends of weight of equipped weapons)
for ( uint i = 0 ; i < MAX_HANDINV_ENTRIES ; + + i )
{
CCDBNodeLeaf * pNodeLeaf = NLGUI : : CDBManager : : getInstance ( ) - > getDbProp ( st d: : st ring( LOCAL_INVENTORY ) + " :HAND: " + toString ( i ) , false ) ;
CCDBNodeLeaf * pNodeLeaf = NLGUI : : CDBManager : : getInstance ( ) - > getDbProp ( st ring( LOCAL_INVENTORY ) + " :HAND: " + toString ( i ) , false ) ;
if ( pNodeLeaf )
{
ICDBNode : : CTextId textId ;
@ -565,7 +565,7 @@ void CInterfaceHelp::updateWindowSPhraseTexts()
*/
class CHandlerCloseHelp : public IActionHandler
{
void execute ( CCtrlBase * pCaller , const st d: : st ring & sParams )
void execute ( CCtrlBase * pCaller , const st ring & sParams )
{
CInterfaceHelp : : closeAll ( ) ;
}
@ -578,7 +578,7 @@ REGISTER_ACTION_HANDLER( CHandlerCloseHelp, "close_help");
*/
class CHandlerOpenItemHelp : public IActionHandler
{
void execute ( CCtrlBase * pCaller , const st d: : st ring & sParams )
void execute ( CCtrlBase * pCaller , const st ring & sParams )
{
CDBCtrlSheet * cs = dynamic_cast < CDBCtrlSheet * > ( pCaller ) ;
if ( cs ! = NULL & & cs - > getSheetId ( ) ! = 0 )
@ -609,7 +609,7 @@ REGISTER_ACTION_HANDLER( CHandlerOpenItemHelp, "open_item_help");
*/
class CHandlerOpenPactHelp : public IActionHandler
{
void execute ( CCtrlBase * pCaller , const st d: : st ring & sParams )
void execute ( CCtrlBase * pCaller , const st ring & sParams )
{
CDBCtrlSheet * cs = dynamic_cast < CDBCtrlSheet * > ( pCaller ) ;
if ( cs ! = NULL & & cs - > getSheetId ( ) ! = 0 )
@ -633,7 +633,7 @@ REGISTER_ACTION_HANDLER( CHandlerOpenPactHelp, "open_pact_help");
*/
class CHandlerOpenTitleHelp : public IActionHandler
{
void execute ( CCtrlBase * pCaller , const st d: : st ring & sParams )
void execute ( CCtrlBase * pCaller , const st ring & sParams )
{
// display web profile if necessary
if ( getParam ( sParams , " from " ) = = " contact " )
@ -656,10 +656,10 @@ class CHandlerOpenTitleHelp : public IActionHandler
sint index = peopleList - > getIndexFromContainerID ( fatherGC - > getId ( ) ) ;
if ( index = = - 1 )
return ;
uc string name = peopleList - > getName ( index ) ;
string name = peopleList - > getName ( index ) ;
if ( ! name . empty ( ) )
{
CAHManager : : getInstance ( ) - > runActionHandler ( " show_hide " , pCaller , " profile|pname= " + name . toUtf8 ( ) + " |ptype= " + toString ( ( int ) CEntityCL : : Player ) ) ;
CAHManager : : getInstance ( ) - > runActionHandler ( " show_hide " , pCaller , " profile|pname= " + name + " |ptype= " + toString ( ( int ) CEntityCL : : Player ) ) ;
}
return ;
}
@ -670,7 +670,7 @@ class CHandlerOpenTitleHelp : public IActionHandler
if ( selection = = NULL ) return ;
//if(selection->isNPC())
{
st d: : st ring name = selection - > getEntityName ( ) ;
st ring name = selection - > getEntityName ( ) ;
if ( name . empty ( ) )
{
// try to get the name from the string manager (for npc)
@ -679,7 +679,7 @@ class CHandlerOpenTitleHelp : public IActionHandler
{
STRING_MANAGER : : CStringManagerClient * pSMC = STRING_MANAGER : : CStringManagerClient : : instance ( ) ;
pSMC - > getString ( nDBid , name ) ;
st d: : st ring copyName = name ;
st ring copyName = name ;
name = CEntityCL : : removeTitleAndShardFromName ( name ) ;
if ( name . empty ( ) )
{
@ -689,7 +689,7 @@ class CHandlerOpenTitleHelp : public IActionHandler
woman = pChar - > getGender ( ) = = GSGENDER : : female ;
// extract the replacement id
st d: : st ring strNewTitle = CEntityCL : : getTitleFromName ( copyName ) ;
st ring strNewTitle = CEntityCL : : getTitleFromName ( copyName ) ;
// retrieve the translated string
if ( ! strNewTitle . empty ( ) )
@ -716,8 +716,8 @@ class CHandlerOpenTitleHelp : public IActionHandler
// Get name and title
// ------------------
uc string name ;
uc string title ;
string name ;
string title ;
bool reservedTitle = false ;
string sFrom = getParam ( sParams , " from " ) ;
if ( sFrom = = " target " )
@ -752,7 +752,7 @@ class CHandlerOpenTitleHelp : public IActionHandler
for ( titleIDnb = 0 ; titleIDnb < CHARACTER_TITLE : : NB_CHARACTER_TITLE ; + + titleIDnb )
{
bool women = UserEntity & & UserEntity - > getGender ( ) = = GSGENDER : : female ;
if ( CStringManagerClient : : getTitleLocalizedName ( CHARACTER_TITLE : : toString ( ( CHARACTER_TITLE : : ECharacterTitle ) titleIDnb ) , women ) = = title .toUtf8 ( ) )
if ( CStringManagerClient : : getTitleLocalizedName ( CHARACTER_TITLE : : toString ( ( CHARACTER_TITLE : : ECharacterTitle ) titleIDnb ) , women ) = = title )
break ;
}
@ -764,21 +764,21 @@ class CHandlerOpenTitleHelp : public IActionHandler
// Display all infos found
// -----------------------
uc string titleText = CI18N : : get ( " uihelpTitleFormat " ) ;
strFindReplace ( titleText , " %name " , name .toString ( ) );
string titleText = CI18N : : get ( " uihelpTitleFormat " ) ;
strFindReplace ( titleText , " %name " , name );
// Display title
uc string: : size_type p1 = title . find ( ' ( ' ) ;
if ( p1 ! = uc string: : npos )
string: : size_type p1 = title . find ( ' ( ' ) ;
if ( p1 ! = string: : npos )
{
uc string: : size_type p2 = title . find ( ' ) ' , p1 + 1 ) ;
if ( p2 ! = uc string: : npos )
string: : size_type p2 = title . find ( ' ) ' , p1 + 1 ) ;
if ( p2 ! = string: : npos )
title = title . substr ( p1 + 1 , p2 - p1 - 1 ) ;
}
strFindReplace ( titleText , " %title " , title ) ;
// Display all skills needed to obtain this title
uc string sSkillsNeeded ;
string sSkillsNeeded ;
if ( ! title . empty ( ) & & pTU = = NULL )
sSkillsNeeded = CI18N : : get ( " uiTitleCantObtain " ) ;
@ -822,7 +822,7 @@ class CHandlerOpenTitleHelp : public IActionHandler
strFindReplace ( titleText , " %skills " , sSkillsNeeded ) ;
// Display all bricks needed to obtain this title
uc string sBricksNeeded ;
string sBricksNeeded ;
if ( pTU ! = NULL )
{
sBricksNeeded = CI18N : : get ( " uiTitleBrickHeader " ) ;
@ -861,7 +861,7 @@ REGISTER_ACTION_HANDLER( CHandlerOpenTitleHelp, "open_title_help");
*/
class CHandlerOpenSkillToTradeHelp : public IActionHandler
{
void execute ( CCtrlBase * pCaller , const st d: : st ring & sParams )
void execute ( CCtrlBase * pCaller , const st ring & sParams )
{
CDBCtrlSheet * cs = dynamic_cast < CDBCtrlSheet * > ( pCaller ) ;
if ( cs ! = NULL )
@ -884,7 +884,7 @@ REGISTER_ACTION_HANDLER( CHandlerOpenSkillToTradeHelp, "open_skill_to_trade_help
*/
class CHandlerOpenHelpAuto : public IActionHandler
{
void execute ( CCtrlBase * pCaller , const st d: : st ring & sParams )
void execute ( CCtrlBase * pCaller , const st ring & sParams )
{
CDBCtrlSheet * cs = dynamic_cast < CDBCtrlSheet * > ( pCaller ) ;
if ( ! cs )
@ -914,7 +914,7 @@ REGISTER_ACTION_HANDLER( CHandlerOpenHelpAuto, "open_help_auto");
*/
class CHandlerBrowse : public IActionHandler
{
void execute ( CCtrlBase * pCaller , const st d: : st ring & sParams )
void execute ( CCtrlBase * pCaller , const st ring & sParams )
{
string container = getParam ( sParams , " name " ) ;
CInterfaceElement * element = CWidgetManager : : getInstance ( ) - > getElementFromId ( container ) ;
@ -1052,7 +1052,7 @@ REGISTER_ACTION_HANDLER( CHandlerBrowse, "browse");
class CHandlerBrowseUndo : public IActionHandler
{
public :
void execute ( CCtrlBase * pCaller , const st d: : st ring & sParams )
void execute ( CCtrlBase * pCaller , const st ring & sParams )
{
CInterfaceManager * pIM = CInterfaceManager : : getInstance ( ) ;
string container = getParam ( sParams , " name " ) ;
@ -1071,7 +1071,7 @@ REGISTER_ACTION_HANDLER( CHandlerBrowseUndo, "browse_undo");
class CHandlerBrowseRedo : public IActionHandler
{
public :
void execute ( CCtrlBase * pCaller , const st d: : st ring & sParams )
void execute ( CCtrlBase * pCaller , const st ring & sParams )
{
CInterfaceManager * pIM = CInterfaceManager : : getInstance ( ) ;
string container = getParam ( sParams , " name " ) ;
@ -1090,7 +1090,7 @@ REGISTER_ACTION_HANDLER( CHandlerBrowseRedo, "browse_redo");
class CHandlerBrowseRefresh : public IActionHandler
{
public :
void execute ( CCtrlBase * pCaller , const st d: : st ring & sParams )
void execute ( CCtrlBase * pCaller , const st ring & sParams )
{
CInterfaceManager * pIM = CInterfaceManager : : getInstance ( ) ;
string container = getParam ( sParams , " name " ) ;
@ -1108,7 +1108,7 @@ REGISTER_ACTION_HANDLER( CHandlerBrowseRefresh, "browse_refresh");
// ***************************************************************************
class CHandlerHTMLSubmitForm : public IActionHandler
{
void execute ( CCtrlBase * pCaller , const st d: : st ring & sParams )
void execute ( CCtrlBase * pCaller , const st ring & sParams )
{
string container = getParam ( sParams , " name " ) ;
@ -1153,9 +1153,9 @@ static void setupHelpPage(CInterfaceGroup *window, const string &url)
}
// ***************************************************************************
void setHelpText ( CSheetHelpSetup & setup , const uc string & text )
void setHelpText ( CSheetHelpSetup & setup , const string & text )
{
uc string copyStr = text ;
string copyStr = text ;
// remove trailing \n
while ( ! copyStr . empty ( ) & & copyStr [ copyStr . size ( ) - 1 ] = = ' \n ' )
{
@ -1166,7 +1166,7 @@ void setHelpText(CSheetHelpSetup &setup, const ucstring &text)
CViewText * viewText = dynamic_cast < CViewText * > ( setup . HelpWindow - > getView ( setup . ViewText ) ) ;
if ( viewText )
{
viewText - > setTextFormatTaged ( copyStr .toUtf8 ( ) );
viewText - > setTextFormatTaged ( copyStr );
}
CInterfaceGroup * viewTextGroup = setup . HelpWindow - > getGroup ( setup . ScrollTextGroup ) ;
if ( viewTextGroup ) viewTextGroup - > setActive ( true ) ;
@ -1203,12 +1203,12 @@ void setHelpTextID(CSheetHelpSetup &setup, sint32 id)
}
// ***************************************************************************
static void setupHelpTitle ( CInterfaceGroup * group , const uc string & title )
static void setupHelpTitle ( CInterfaceGroup * group , const string & title )
{
CGroupContainer * pGC = dynamic_cast < CGroupContainer * > ( group ) ;
if ( ! group )
return ;
pGC - > set UC Title( title ) ;
pGC - > set Title( title ) ;
}
// ***************************************************************************
@ -1237,10 +1237,10 @@ static void setupSkillToTradeHelp(CSheetHelpSetup &setup)
setup . DestSheet - > setActive ( true ) ;
}
uc string skillText ;
string skillText ;
// Name in title
const ucstring title ( CStringManagerClient : : getSkillLocalizedName ( skill ) ) ;
const char * title = CStringManagerClient : : getSkillLocalizedName ( skill ) ;
setupHelpTitle ( setup . HelpWindow , title ) ;
// search all job that have minimum required level for that skill
@ -1249,7 +1249,7 @@ static void setupSkillToTradeHelp(CSheetHelpSetup &setup)
// {
// for (uint job = 0; job < 8; ++job)
// {
// st d::st ring dbPath = toString("CHARACTER_INFO:CAREER%d:JOB%d:JOB_CAP", (int) career, (int) job);
// st ring dbPath = toString("CHARACTER_INFO:CAREER%d:JOB%d:JOB_CAP", (int) career, (int) job);
// uint level = (uint) NLGUI::CDBManager::getInstance()->getDbProp(dbPath)->getValue32();
// if (level != 0) // has the player this job ?
// {
@ -1265,10 +1265,11 @@ static void setupSkillToTradeHelp(CSheetHelpSetup &setup)
// }
// setup skill desc if available.
const ucstring desc ( CStringManagerClient : : getSkillLocalizedDescription ( skill ) ) ;
if ( ! desc . empty ( ) )
const char * desc = CStringManagerClient : : getSkillLocalizedDescription ( skill ) ;
if ( * desc )
{
skillText + = " \n " + desc ;
skillText + = " \n " ;
skillText + = desc ;
}
setHelpText ( setup , skillText ) ;
@ -1305,7 +1306,7 @@ static string toPercentageText(float val)
}
// ***************************************************************************
void getItemDefenseText ( CDBCtrlSheet * item , uc string & itemText )
void getItemDefenseText ( CDBCtrlSheet * item , string & itemText )
{
// retrieve the current itemInfo
const CClientItemInfo & itemInfo = getInventory ( ) . getItemInfo ( getInventory ( ) . getItemSlotId ( item ) ) ;
@ -1322,7 +1323,7 @@ void getItemDefenseText(CDBCtrlSheet *item, ucstring &itemText)
}
void getDamageText ( CDBCtrlSheet * item , const CItemSheet * pIS , uc string & itemText , bool displayAsMod )
void getDamageText ( CDBCtrlSheet * item , const CItemSheet * pIS , string & itemText , bool displayAsMod )
{
// retrieve the current itemInfo
const CClientItemInfo & itemInfo = getInventory ( ) . getItemInfo ( getInventory ( ) . getItemSlotId ( item ) ) ;
@ -1347,7 +1348,7 @@ void getDamageText(CDBCtrlSheet *item, const CItemSheet*pIS, ucstring &itemText,
}
}
void getSpeedText ( CDBCtrlSheet * item , uc string & itemText , bool displayAsMod )
void getSpeedText ( CDBCtrlSheet * item , string & itemText , bool displayAsMod )
{
// retrieve the current itemInfo
const CClientItemInfo & itemInfo = getInventory ( ) . getItemInfo ( getInventory ( ) . getItemSlotId ( item ) ) ;
@ -1358,7 +1359,7 @@ void getSpeedText(CDBCtrlSheet *item, ucstring &itemText, bool displayAsMod)
strFindReplace ( itemText , " %speed " , strMod + toReadableFloat ( itemInfo . HitRate ) ) ;
}
void getRangeText ( CDBCtrlSheet * item , uc string & itemText , bool displayAsMod )
void getRangeText ( CDBCtrlSheet * item , string & itemText , bool displayAsMod )
{
// retrieve the current itemInfo
const CClientItemInfo & itemInfo = getInventory ( ) . getItemInfo ( getInventory ( ) . getItemSlotId ( item ) ) ;
@ -1369,7 +1370,7 @@ void getRangeText(CDBCtrlSheet *item, ucstring &itemText, bool displayAsMod)
strFindReplace ( itemText , " %range " , strMod + toReadableFloat ( itemInfo . Range / 1000.f ) ) ;
}
void getHPAndSapLoadText ( CDBCtrlSheet * item , const CItemSheet * pIS , uc string & itemText )
void getHPAndSapLoadText ( CDBCtrlSheet * item , const CItemSheet * pIS , string & itemText )
{
// retrieve the current itemInfo
const CClientItemInfo & itemInfo = getInventory ( ) . getItemInfo ( getInventory ( ) . getItemSlotId ( item ) ) ;
@ -1386,7 +1387,7 @@ void getHPAndSapLoadText(CDBCtrlSheet *item, const CItemSheet*pIS, ucstring &ite
}
void getBuffText ( CDBCtrlSheet * item , uc string & itemText )
void getBuffText ( CDBCtrlSheet * item , string & itemText )
{
// retrieve the current itemInfo
const CClientItemInfo & itemInfo = getInventory ( ) . getItemInfo ( getInventory ( ) . getItemSlotId ( item ) ) ;
@ -1394,7 +1395,7 @@ void getBuffText(CDBCtrlSheet *item, ucstring &itemText)
const string valIds [ ] = { " Hp " , " Sap " , " Sta " , " Focus " } ;
sint32 vals [ ] = { itemInfo . HpBuff , itemInfo . SapBuff , itemInfo . StaBuff , itemInfo . FocusBuff } ;
uint numVals = sizeof ( vals ) / sizeof ( vals [ 0 ] ) ;
uc string bufInfo ;
string bufInfo ;
// For each buf, append a line if !=0
for ( uint i = 0 ; i < numVals ; i + + )
@ -1402,7 +1403,7 @@ void getBuffText(CDBCtrlSheet *item, ucstring &itemText)
sint32 modifier = vals [ i ] ;
if ( modifier ! = 0 )
{
uc string line = CI18N : : get ( " uihelpItem " + valIds [ i ] + ( modifier > 0 ? " Bonus " : " Malus " ) ) ;
string line = CI18N : : get ( " uihelpItem " + valIds [ i ] + ( modifier > 0 ? " Bonus " : " Malus " ) ) ;
strFindReplace ( line , " %val " , toString ( modifier ) ) ;
bufInfo + = line ;
}
@ -1416,13 +1417,13 @@ void getBuffText(CDBCtrlSheet *item, ucstring &itemText)
strFindReplace ( itemText , " %buffs " , bufInfo ) ;
}
void getMagicProtection ( CDBCtrlSheet * item , uc string & itemText )
void getMagicProtection ( CDBCtrlSheet * item , string & itemText )
{
CInterfaceManager * pIM = CInterfaceManager : : getInstance ( ) ;
// retrieve the current itemInfo
const CClientItemInfo & itemInfo = getInventory ( ) . getItemInfo ( getInventory ( ) . getItemSlotId ( item ) ) ;
uc string mProtInfo ;
string mProtInfo ;
// Header (always here, because at least max absorb)
mProtInfo = CI18N : : get ( " uihelpMagicProtectFormatHeader " ) ;
@ -1433,7 +1434,7 @@ void getMagicProtection(CDBCtrlSheet *item, ucstring &itemText)
if ( itemInfo . MagicProtection [ i ] ! = PROTECTION_TYPE : : None )
{
// Protection info
uc string str = CI18N : : get ( " uihelpMagicProtectFormat " ) ;
string str = CI18N : : get ( " uihelpMagicProtectFormat " ) ;
strFindReplace ( str , " %t " , CI18N : : get ( " pt " + PROTECTION_TYPE : : toString ( itemInfo . MagicProtection [ i ] ) ) ) ;
strFindReplace ( str , " %v " , toString ( itemInfo . MagicProtectionFactor [ i ] ) ) ;
mProtInfo + = str ;
@ -1449,7 +1450,7 @@ void getMagicProtection(CDBCtrlSheet *item, ucstring &itemText)
maxAbsorb = maxAbsorb * nodeFactor - > getValue32 ( ) / 100 ;
// Add to text
uc string str = CI18N : : get ( " uihelpMagicProtectMaxAbsorbFormat " ) ;
string str = CI18N : : get ( " uihelpMagicProtectMaxAbsorbFormat " ) ;
strFindReplace ( str , " %v " , toString ( maxAbsorb ) ) ;
mProtInfo + = str ;
}
@ -1458,12 +1459,12 @@ void getMagicProtection(CDBCtrlSheet *item, ucstring &itemText)
strFindReplace ( itemText , " %magic_protection " , mProtInfo ) ;
}
void getMagicResistance ( CDBCtrlSheet * item , uc string & itemText )
void getMagicResistance ( CDBCtrlSheet * item , string & itemText )
{
// retrieve the current itemInfo
const CClientItemInfo & itemInfo = getInventory ( ) . getItemInfo ( getInventory ( ) . getItemSlotId ( item ) ) ;
uc string mResistInfo ;
string mResistInfo ;
// Header (always here, because at least max absorb)
mResistInfo = CI18N : : get ( " uihelpMagicResistFormatHeader " ) ;
@ -1481,7 +1482,7 @@ void getMagicResistance(CDBCtrlSheet *item, ucstring &itemText)
if ( resist [ i ] ! = 0 )
{
// Resist info
uc string str = CI18N : : get ( " uihelpMagicResistFormat " ) ;
string str = CI18N : : get ( " uihelpMagicResistFormat " ) ;
strFindReplace ( str , " %t " , CI18N : : get ( " rs " + RESISTANCE_TYPE : : toString ( ( RESISTANCE_TYPE : : TResistanceType ) i ) ) ) ;
strFindReplace ( str , " %v " , toReadableFloat ( float ( resist [ i ] ) / 100 ) ) ;
mResistInfo + = str ;
@ -1492,7 +1493,7 @@ void getMagicResistance(CDBCtrlSheet *item, ucstring &itemText)
strFindReplace ( itemText , " %magic_resistance " , mResistInfo ) ;
}
void getActionMalus ( CDBCtrlSheet * item , uc string & itemText )
void getActionMalus ( CDBCtrlSheet * item , string & itemText )
{
// retrieve the current itemInfo
const CClientItemInfo & itemInfo = getInventory ( ) . getItemInfo ( getInventory ( ) . getItemSlotId ( item ) ) ;
@ -1500,7 +1501,7 @@ void getActionMalus(CDBCtrlSheet *item, ucstring &itemText)
strFindReplace ( itemText , " %actmalus " , toPercentageText ( itemInfo . WearEquipmentMalus ) ) ;
}
void getBulkText ( CDBCtrlSheet * item , const CItemSheet * pIS , uc string & itemText )
void getBulkText ( CDBCtrlSheet * item , const CItemSheet * pIS , string & itemText )
{
// Display direct value: because cannot know where this item will be drop!! (bag, mektoub etc...)
float slotBulkTotal = max ( ( sint32 ) 1 , item - > getQuantity ( ) ) * pIS - > Bulk ;
@ -1513,7 +1514,7 @@ void getBulkText(CDBCtrlSheet *item, const CItemSheet*pIS, ucstring &itemText)
strFindReplace ( itemText , " %bulk " , toString ( " %.2f " , slotBulkTotal ) ) ;
}
void getWeightText ( CDBCtrlSheet * item , const CItemSheet * pIS , uc string & itemText )
void getWeightText ( CDBCtrlSheet * item , const CItemSheet * pIS , string & itemText )
{
CInterfaceManager * pIM = CInterfaceManager : : getInstance ( ) ;
@ -1550,14 +1551,14 @@ void getWeightText(CDBCtrlSheet *item, const CItemSheet*pIS, ucstring &itemText)
strFindReplace ( itemText , " %weight " , " ??? " ) ;
}
void getMagicBonus ( CDBCtrlSheet * item , uc string & itemText )
void getMagicBonus ( CDBCtrlSheet * item , string & itemText )
{
// retrieve the current itemInfo
const CClientItemInfo & itemInfo = getInventory ( ) . getItemInfo ( getInventory ( ) . getItemSlotId ( item ) ) ;
nlctassert ( CClientItemInfo : : NumMagicFactorType = = 4 ) ;
const string valIds [ CClientItemInfo : : NumMagicFactorType ] = { " OffElemental " , " OffAffliction " , " DefHeal " , " DefAffliction " } ;
uc string mbInfo ;
string mbInfo ;
// For each magic bonus, test first if equal
sint32 allCastSpeedFactor = sint ( itemInfo . CastingSpeedFactor [ 0 ] * 100 ) ;
@ -1582,7 +1583,7 @@ void getMagicBonus(CDBCtrlSheet *item, ucstring &itemText)
if ( allCastSpeedFactor ! = 0 | | allMagicPowerFactor ! = 0 )
{
// else display "all"
uc string line = CI18N : : get ( " uihelpItemMagicBonusAll " ) ;
string line = CI18N : : get ( " uihelpItemMagicBonusAll " ) ;
strFindReplace ( line , " %cs " , toString ( " %+d " , allCastSpeedFactor ) ) ;
strFindReplace ( line , " %mp " , toString ( " %+d " , allMagicPowerFactor ) ) ;
mbInfo + = line ;
@ -1597,7 +1598,7 @@ void getMagicBonus(CDBCtrlSheet *item, ucstring &itemText)
sint32 mp = sint ( itemInfo . MagicPowerFactor [ i ] * 100 ) ;
if ( cs ! = 0 | | mp ! = 0 )
{
uc string line = CI18N : : get ( string ( " uihelpItemMagicBonus " ) + valIds [ i ] ) ;
string line = CI18N : : get ( string ( " uihelpItemMagicBonus " ) + valIds [ i ] ) ;
strFindReplace ( line , " %cs " , toString ( " %+d " , cs ) ) ;
strFindReplace ( line , " %mp " , toString ( " %+d " , mp ) ) ;
mbInfo + = line ;
@ -1609,7 +1610,7 @@ void getMagicBonus(CDBCtrlSheet *item, ucstring &itemText)
if ( ! mbInfo . empty ( ) )
{
// add spell level header
uc string spellRuleFmt = CI18N : : get ( " uihelpItemMagicBonusHeader " ) ;
string spellRuleFmt = CI18N : : get ( " uihelpItemMagicBonusHeader " ) ;
strFindReplace ( spellRuleFmt , " %mglvl " , toString ( item - > getQuality ( ) ) ) ;
mbInfo = spellRuleFmt + mbInfo ;
}
@ -1618,11 +1619,11 @@ void getMagicBonus(CDBCtrlSheet *item, ucstring &itemText)
strFindReplace ( itemText , " %magic_bonus " , mbInfo ) ;
}
void getItemRequirementText ( CDBCtrlSheet * item , const CItemSheet * pIS , uc string & itemText )
void getItemRequirementText ( CDBCtrlSheet * item , const CItemSheet * pIS , string & itemText )
{
CInterfaceManager * pIM = CInterfaceManager : : getInstance ( ) ;
bool requiredNeeded = false ;
uc string fmt , fmtc ;
string fmt , fmtc ;
// retrieve the current itemInfo
const CClientItemInfo & itemInfo = getInventory ( ) . getItemInfo ( getInventory ( ) . getItemSlotId ( item ) ) ;
@ -1655,7 +1656,7 @@ void getItemRequirementText(CDBCtrlSheet *item, const CItemSheet*pIS, ucstring &
fmt = CI18N : : get ( " uihelpItemSkillReqNotMetFmt " ) ;
strFindReplace ( fmt , " %d " , toString ( ( uint ) itemInfo . RequiredSkillLevel ) ) ;
const ucstring skillName ( STRING_MANAGER : : CStringManagerClient : : getSkillLocalizedName ( itemInfo . RequiredSkill ) ) ;
const char * skillName = STRING_MANAGER : : CStringManagerClient : : getSkillLocalizedName ( itemInfo . RequiredSkill ) ;
strFindReplace ( fmt , " %s " , skillName ) ;
}
else
@ -1686,7 +1687,7 @@ void getItemRequirementText(CDBCtrlSheet *item, const CItemSheet*pIS, ucstring &
fmt = CI18N : : get ( " uihelpItemSkillReqNotMetFmt " ) ;
strFindReplace ( fmt , " %d " , toString ( ( uint ) itemInfo . RequiredSkillLevel2 ) ) ;
const ucstring skillName ( STRING_MANAGER : : CStringManagerClient : : getSkillLocalizedName ( itemInfo . RequiredSkill2 ) ) ;
const char * skillName = STRING_MANAGER : : CStringManagerClient : : getSkillLocalizedName ( itemInfo . RequiredSkill2 ) ;
strFindReplace ( fmt , " %s " , skillName ) ;
}
else
@ -1749,7 +1750,7 @@ void getItemRequirementText(CDBCtrlSheet *item, const CItemSheet*pIS, ucstring &
if ( req )
{
// Build the req string
uc string fmt ;
string fmt ;
if ( pIM - > isItemCaracRequirementMet ( caracType , ( sint32 ) caracValue ) )
fmt = CI18N : : get ( " uihelpItemCaracReqMetFmt " ) ;
else
@ -1784,7 +1785,7 @@ void getItemRequirementText(CDBCtrlSheet *item, const CItemSheet*pIS, ucstring &
if ( skillReq )
{
// Build the req string
uc string fmt ;
string fmt ;
if ( req )
fmt = CI18N : : get ( " uihelpItemCaracReqAnd " ) ;
@ -1793,7 +1794,7 @@ void getItemRequirementText(CDBCtrlSheet *item, const CItemSheet*pIS, ucstring &
else
fmt + = CI18N : : get ( " uihelpItemSkillReqNotMetFmt " ) ;
strFindReplace ( fmt , " %d " , toString ( ( uint ) itemInfo . MinRequiredSkillLevel ) ) ;
const ucstring skillName = STRING_MANAGER : : CStringManagerClient : : getSkillLocalizedName ( itemInfo . RequiredSkill ) ;
const char * skillName = STRING_MANAGER : : CStringManagerClient : : getSkillLocalizedName ( itemInfo . RequiredSkill ) ;
strFindReplace ( fmt , " %s " , skillName ) ;
strFindReplace ( itemText , " %skillreq " , fmt ) ;
@ -1805,12 +1806,12 @@ void getItemRequirementText(CDBCtrlSheet *item, const CItemSheet*pIS, ucstring &
# endif
}
void getSkillModVsType ( CDBCtrlSheet * item , const CItemSheet * pIS , uc string & itemText )
void getSkillModVsType ( CDBCtrlSheet * item , const CItemSheet * pIS , string & itemText )
{
// retrieve the current itemInfo
const CClientItemInfo & itemInfo = getInventory ( ) . getItemInfo ( getInventory ( ) . getItemSlotId ( item ) ) ;
uc string sMod ;
string sMod ;
// check skill mod
if ( ! itemInfo . TypeSkillMods . empty ( ) )
{
@ -1831,9 +1832,9 @@ void getSkillModVsType(CDBCtrlSheet *item, const CItemSheet*pIS, ucstring &itemT
strFindReplace ( itemText , " %skill_mod_vs_type " , sMod ) ;
}
void getArmorBonus ( CDBCtrlSheet * item , uc string & itemText , const CItemSheet * pIS )
void getArmorBonus ( CDBCtrlSheet * item , string & itemText , const CItemSheet * pIS )
{
ucstring armor_bonus ( " " ) ;
string armor_bonus ;
sint32 level = 0 ;
if ( pIS - > Armor . ArmorType = = ARMORTYPE : : HEAVY )
@ -1848,7 +1849,7 @@ void getArmorBonus(CDBCtrlSheet *item, ucstring &itemText, const CItemSheet*pIS)
}
// ***************************************************************************
void getItemText ( CDBCtrlSheet * item , uc string & itemText , const CItemSheet * pIS )
void getItemText ( CDBCtrlSheet * item , string & itemText , const CItemSheet * pIS )
{
if ( ( item = = NULL ) | | ( pIS = = NULL ) )
return ;
@ -1894,24 +1895,24 @@ void getItemText (CDBCtrlSheet *item, ucstring &itemText, const CItemSheet*pIS)
CItemSpecialEffectHelper : : getInstance ( ) - > getItemSpecialEffectText ( pIS , itemText ) ;
// Description
const ucstring desc ( CStringManagerClient : : getItemLocalizedDescription ( pIS - > Id ) ) ;
if ( ! desc . empty ( ) )
const char * desc = CStringManagerClient : : getItemLocalizedDescription ( pIS - > Id ) ;
if ( * desc )
{
strFindReplace ( itemText , " %desc " , " @{FFF9} " + CI18N : : get ( " uiMissionDesc " ) + " \n @{FFFF} " + desc + " \n " ) ;
}
else
strFindReplace ( itemText , " %desc " , uc string( ) ) ;
strFindReplace ( itemText , " %desc " , string( ) ) ;
// Custom text
const CClientItemInfo & itemInfo = getInventory ( ) . getItemInfo ( getInventory ( ) . getItemSlotId ( item ) ) ;
if ( ! itemInfo . CustomText . empty ( ) )
{
strFindReplace ( itemText , " %custom_text " , " \n @{FFFF} " + itemInfo . CustomText + " \n " ) ;
uc string itemMFC = CI18N : : get ( " uiItemTextMessageFromCrafter " ) ;
strFindReplace ( itemText , " %custom_text " , " \n @{FFFF} " + itemInfo . CustomText . toUtf8 ( ) + " \n " ) ;
string itemMFC = CI18N : : get ( " uiItemTextMessageFromCrafter " ) ;
strFindReplace ( itemText , " %mfc " , itemMFC ) ;
}
else
strFindReplace ( itemText , " %custom_text " , uc string( ) ) ;
strFindReplace ( itemText , " %custom_text " , string( ) ) ;
if ( pIS - > Family = = ITEMFAMILY : : COSMETIC )
{
@ -1919,10 +1920,10 @@ void getItemText (CDBCtrlSheet *item, ucstring &itemText, const CItemSheet*pIS)
if ( UserEntity - > getGender ( ) ! = pIS - > Cosmetic . Gender | | UserEntity - > people ( ) ! = people )
strFindReplace ( itemText , " %cansell " , CI18N : : get ( " uihelpItemCosmeticDontFit " ) ) ;
else
strFindReplace ( itemText , " %cansell " , uc string( ) ) ;
strFindReplace ( itemText , " %cansell " , string( ) ) ;
}
else if ( pIS - > DropOrSell )
strFindReplace ( itemText , " %cansell " , uc string( ) ) ;
strFindReplace ( itemText , " %cansell " , string( ) ) ;
else
strFindReplace ( itemText , " %cansell " , CI18N : : get ( " uihelpItemCantSell " ) ) ;
@ -2012,8 +2013,8 @@ void getItemText (CDBCtrlSheet *item, ucstring &itemText, const CItemSheet*pIS)
// Craft some part?
if ( pIS - > canBuildSomeItemPart ( ) )
{
uc string fmt = CI18N : : get ( " uihelpItemMPCraft " ) ;
st d: : st ring ipList ;
string fmt = CI18N : : get ( " uihelpItemMPCraft " ) ;
st ring ipList ;
pIS - > getItemPartListAsText ( ipList ) ;
strFindReplace ( fmt , " %ip " , ipList ) ;
strFindReplace ( itemText , " %craft " , fmt ) ;
@ -2111,11 +2112,11 @@ void getItemText (CDBCtrlSheet *item, ucstring &itemText, const CItemSheet*pIS)
// ***************************************************************************
static void setupEnchantedItem ( CSheetHelpSetup & setup , uc string & itemText )
static void setupEnchantedItem ( CSheetHelpSetup & setup , string & itemText )
{
// if don't find the tag in the text (eg: if not useful), no-op
static const uc string enchantTag ( " %enchantment " ) ;
if ( itemText . find ( enchantTag ) = = uc string: : npos )
static const string enchantTag ( " %enchantment " ) ;
if ( itemText . find ( enchantTag ) = = string: : npos )
return ;
// retrieve the current itemInfo
@ -2132,7 +2133,7 @@ static void setupEnchantedItem(CSheetHelpSetup &setup, ucstring &itemText)
CSPhraseManager * pPM = CSPhraseManager : : getInstance ( ) ;
// fill the enchantement info
uc string enchantInfo ;
string enchantInfo ;
const CItemSheet * pIS = ctrl - > asItemSheet ( ) ;
if ( pIS & & pIS - > Family = = ITEMFAMILY : : CRYSTALLIZED_SPELL )
pPM - > buildPhraseDesc ( enchantInfo , itemInfo . Enchantment , 0 , false , " uihelpPhraseCrystalSpellFormat " ) ;
@ -2159,7 +2160,7 @@ static void setupEnchantedItem(CSheetHelpSetup &setup, ucstring &itemText)
hideListBrickHeader ( setup ) ;
// hide the text
strFindReplace ( itemText , enchantTag , uc string( ) ) ;
strFindReplace ( itemText , enchantTag , string( ) ) ;
}
}
@ -2500,14 +2501,14 @@ void refreshItemHelp(CSheetHelpSetup &setup)
setupCreatorName ( setup ) ;
// **** setup the item Text info
uc string itemText ;
string itemText ;
CEntitySheet * pES = SheetMngr . get ( CSheetId ( setup . SrcSheet - > getSheetId ( ) ) ) ;
if ( ( pES ! = NULL ) & & ( pES - > type ( ) = = CEntitySheet : : ITEM ) )
{
CItemSheet * pIS = ( CItemSheet * ) pES ;
// ---- Common
uc string title = setup . SrcSheet - > getItemActualName ( ) ;
string title = setup . SrcSheet - > getItemActualName ( ) . toUtf8 ( ) ;
setupHelpTitle ( setup . HelpWindow , title ) ;
getItemText ( setup . SrcSheet , itemText , pIS ) ;
@ -2591,7 +2592,7 @@ static void setupPactHelp(CSheetHelpSetup &setup)
const CPactSheet : : SPact & pactLose = pact - > PactLose [ pactLevel ] ;
// **** setup the brick Text info
uc string pactText ;
string pactText ;
// TODO Localisation
setupHelpTitle ( setup . HelpWindow , pactLose . Name ) ;
@ -2698,7 +2699,7 @@ void refreshMissionHelp(CSheetHelpSetup &setup, const CPrerequisitInfos &infos)
// fill text, choose color according to conditions and block
for ( uint j = i ; j < orIndexMax ; + + j )
{
const st d: : st ring text = setup . HelpWindow - > getId ( ) + " :content:scroll_text_id:text_list: " + NLMISC : : toString ( " text_%u " , j + 1 ) ;
const st ring text = setup . HelpWindow - > getId ( ) + " :content:scroll_text_id:text_list: " + NLMISC : : toString ( " text_%u " , j + 1 ) ;
CViewText * viewText = dynamic_cast < CViewText * > ( setup . HelpWindow - > getElement ( text ) ) ;
if ( viewText )
{
@ -2709,7 +2710,7 @@ void refreshMissionHelp(CSheetHelpSetup &setup, const CPrerequisitInfos &infos)
viewText - > setHardText ( " uiMissionOr " ) ;
}
const st d: : st ring textId = setup . HelpWindow - > getId ( ) + " :content:scroll_text_id:text_list: " + NLMISC : : toString ( " text_id_prereq_%u " , j + 1 ) ;
const st ring textId = setup . HelpWindow - > getId ( ) + " :content:scroll_text_id:text_list: " + NLMISC : : toString ( " text_id_prereq_%u " , j + 1 ) ;
CViewTextID * viewTextID = dynamic_cast < CViewTextID * > ( setup . HelpWindow - > getElement ( textId ) ) ;
if ( viewTextID )
@ -2737,12 +2738,12 @@ void refreshMissionHelp(CSheetHelpSetup &setup, const CPrerequisitInfos &infos)
// inactivate other lines
for ( uint i = ( uint ) infos . Prerequisits . size ( ) ; i < 15 ; + + i )
{
const st d: : st ring text = setup . HelpWindow - > getId ( ) + " :content:scroll_text_id:text_list: " + NLMISC : : toString ( " text_%u " , i + 1 ) ;
const st ring text = setup . HelpWindow - > getId ( ) + " :content:scroll_text_id:text_list: " + NLMISC : : toString ( " text_%u " , i + 1 ) ;
CViewText * viewText = dynamic_cast < CViewText * > ( setup . HelpWindow - > getElement ( text ) ) ;
if ( viewText )
viewText - > setActive ( false ) ;
const st d: : st ring textId = setup . HelpWindow - > getId ( ) + " :content:scroll_text_id:text_list: " + NLMISC : : toString ( " text_id_prereq_%u " , i + 1 ) ;
const st ring textId = setup . HelpWindow - > getId ( ) + " :content:scroll_text_id:text_list: " + NLMISC : : toString ( " text_id_prereq_%u " , i + 1 ) ;
CViewTextID * viewTextID = dynamic_cast < CViewTextID * > ( setup . HelpWindow - > getElement ( textId ) ) ;
if ( viewTextID )
viewTextID - > setActive ( false ) ;
@ -2873,12 +2874,12 @@ void setupOutpostBuildingHelp(CSheetHelpSetup &setup)
setupHelpTitle ( setup . HelpWindow , CI18N : : get ( " uihelpOutpostBuilding " ) ) ;
uc string sOBText ;
string sOBText ;
sOBText = CI18N : : get ( " uihelpOBFormat_ " + COutpostBuildingSheet : : toString ( pOBS - > OBType ) ) ;
{
uc string timeText ;
string timeText ;
timeText = toString ( pOBS - > CostTime / 60 ) + CI18N : : get ( " uiBotChatTimeMinute " ) ;
if ( ( pOBS - > CostTime % 60 ) ! = 0 )
timeText + = toString ( pOBS - > CostTime % 60 ) + CI18N : : get ( " uiBotChatTimeSecond " ) ;
@ -2944,7 +2945,7 @@ static sint getBonusMalusSpecialTT(CDBCtrlSheet *cs)
// ***************************************************************************
void getSabrinaBrickText ( CSBrickSheet * pBR , uc string & brickText )
void getSabrinaBrickText ( CSBrickSheet * pBR , string & brickText )
{
if ( ! pBR )
return ;
@ -2963,15 +2964,15 @@ void getSabrinaBrickText(CSBrickSheet *pBR, ucstring &brickText)
// Level
strFindReplace ( brickText , " %lvl " , toString ( pBR - > Level ) ) ;
// Kill the whole text between %ks, if the skill is unknown
const uc string killSkill ( " %ks " ) ;
const string killSkill ( " %ks " ) ;
if ( pBR - > getSkill ( ) = = SKILLS : : unknown )
{
uc string: : size_type pos0 = brickText . find ( killSkill ) ;
string: : size_type pos0 = brickText . find ( killSkill ) ;
if ( pos0 ! = ucstring : : npos )
{
uc string: : size_type pos1 = brickText . find ( killSkill , pos0 + killSkill . size ( ) ) ;
if ( pos1 ! = uc string: : npos )
brickText . replace ( pos0 , pos1 + killSkill . size ( ) - pos0 , uc string( ) ) ;
string: : size_type pos1 = brickText . find ( killSkill , pos0 + killSkill . size ( ) ) ;
if ( pos1 ! = string: : npos )
brickText . replace ( pos0 , pos1 + killSkill . size ( ) - pos0 , string( ) ) ;
}
}
else
@ -2984,7 +2985,7 @@ void getSabrinaBrickText(CSBrickSheet *pBR, ucstring &brickText)
strFindReplace ( brickText , " %skill " , CStringManagerClient : : getSkillLocalizedName ( pBR - > getSkill ( ) ) ) ;
else
{
uc string fullSkillText ;
string fullSkillText ;
bool first = true ;
for ( uint i = 0 ; i < pBR - > UsedSkills . size ( ) ; i + + )
{
@ -3014,13 +3015,13 @@ void getSabrinaBrickText(CSBrickSheet *pBR, ucstring &brickText)
// Kill the whole text between %krc, if the relative cost is 0
if ( pBR - > SabrinaRelativeCost = = 0.f )
{
const uc string killRC ( " %krc " ) ;
uc string: : size_type pos0 = brickText . find ( killRC ) ;
if ( pos0 ! = uc string: : npos )
const string killRC ( " %krc " ) ;
string: : size_type pos0 = brickText . find ( killRC ) ;
if ( pos0 ! = string: : npos )
{
uc string: : size_type pos1 = brickText . find ( killRC , pos0 + killRC . size ( ) ) ;
if ( pos1 ! = uc string: : npos )
brickText . replace ( pos0 , pos1 + killRC . size ( ) - pos0 , uc string( ) ) ;
string: : size_type pos1 = brickText . find ( killRC , pos0 + killRC . size ( ) ) ;
if ( pos1 ! = string: : npos )
brickText . replace ( pos0 , pos1 + killRC . size ( ) - pos0 , string( ) ) ;
}
}
else
@ -3053,7 +3054,7 @@ void getSabrinaBrickText(CSBrickSheet *pBR, ucstring &brickText)
}
else
{
uc string mpInfo ;
string mpInfo ;
for ( uint i = 0 ; i < pBR - > FaberPlan . ItemPartMps . size ( ) ; i + + )
{
CSBrickSheet : : CFaberPlan : : CItemPartMP & mpSlot = pBR - > FaberPlan . ItemPartMps [ i ] ;
@ -3074,7 +3075,7 @@ void getSabrinaBrickText(CSBrickSheet *pBR, ucstring &brickText)
}
else
{
uc string mpInfo ;
string mpInfo ;
for ( uint i = 0 ; i < pBR - > FaberPlan . FormulaMps . size ( ) ; i + + )
{
CSBrickSheet : : CFaberPlan : : CFormulaMP & mpSlot = pBR - > FaberPlan . FormulaMps [ i ] ;
@ -3090,7 +3091,7 @@ void getSabrinaBrickText(CSBrickSheet *pBR, ucstring &brickText)
}
// *** Magic
uc string magicResistStr ;
string magicResistStr ;
// Has Some Magic Resistance setuped?
if ( pBR - > isMagic ( ) & & pBR - > MagicResistType ! = RESISTANCE_TYPE : : None )
{
@ -3190,10 +3191,10 @@ void setupSabrinaPhraseHelp(CSheetHelpSetup &setup, const CSPhraseCom &phrase, u
}
// **** setup the phrase Text info
setupHelpTitle ( setup . HelpWindow , phrase . Name );
setupHelpTitle ( setup . HelpWindow , phrase . Name .toUtf8 ( ) );
// get the phraseText
uc string phraseText ;
string phraseText ;
// if required, add the .sphrase requirements.
// NB: don't add if from bot chat validation (useless cause already filtered by server)
pPM - > buildPhraseDesc ( phraseText , phrase , phraseSheetId , ! setup . FromBotChat ) ;
@ -3261,12 +3262,12 @@ static void setupSabrinaBrickHelp(CSheetHelpSetup &setup, bool auraDisabled)
// **** setup the brick Text info
uc string brickText ;
string brickText ;
CSBrickManager * pBM = CSBrickManager : : getInstance ( ) ;
CSBrickSheet * pBR = pBM - > getBrick ( CSheetId ( setup . SrcSheet - > getSheetId ( ) ) ) ;
if ( pBR )
{
const ucstring title ( CStringManagerClient : : getSBrickLocalizedName ( pBR - > Id ) ) ;
const char * title = CStringManagerClient : : getSBrickLocalizedName ( pBR - > Id ) ;
setupHelpTitle ( setup . HelpWindow , title ) ;
// add brick info
@ -3596,7 +3597,7 @@ public:
else if ( getAuraDisabledState ( cs ) )
{
// get the normal string, and append a short info.
st d: : st ring str ;
st ring str ;
cs - > getContextHelp ( str ) ;
str + = CI18N : : get ( " uittAuraDisabled " ) ;
@ -3735,7 +3736,7 @@ REGISTER_ACTION_HANDLER( CAHMilkoKick, "milko_kick");
// ***************************************************************************
static void onMpChangeItemPart ( CInterfaceGroup * wnd , uint32 itemSheetId , const st d: : st ring & statPrefixId )
static void onMpChangeItemPart ( CInterfaceGroup * wnd , uint32 itemSheetId , const st ring & statPrefixId )
{
CInterfaceManager * pIM = CInterfaceManager : : getInstance ( ) ;
@ -3939,7 +3940,7 @@ public:
s + = getSystemInformation ( ) ;
string progname ;
st d: : st ring moduleName ;
st ring moduleName ;
# ifdef NL_OS_WINDOWS
wchar_t name [ 1024 ] ;
GetModuleFileNameW ( NULL , name , 1023 ) ;