void InitInterface(string iniName)
{
InterfaceStack.SelectMenu_node = "LaunchItems"; // çàïîìèÃÂàåì, ÷òî çâàòü ïî Ãâ€2
GameInterface.title = "titleItems";
xi_refCharacter = pchar;
FillCharactersScroll();
SendMessage(&GameInterface,"ls",MSG_INTERFACE_INIT,iniName);
SetEventHandler("InterfaceBreak","ProcessExitCancel",0);
SetEventHandler("exitCancel","ProcessExitCancel",0);
SetEventHandler("ievnt_command","ProcessCommandExecute",0);
SetEventHandler("frame","ProcessFrame",1);
SetEventHandler("ShowInfoWindow","ShowInfoWindow",0);
SetEventHandler("MouseRClickUp","HideInfoWindow",0);
SetEventHandler("TableSelectChange", "TableSelectChange", 0);
SetEventHandler("eTabControlPress","procTabChange",0);
SetEventHandler("ExitMapWindow","ExitMapWindow",0);
XI_RegistryExitKey("IExit_F2");
SetVariable();
SetNewGroupPicture("Weight_PIC", "ICONS_CHAR", "weight");
SetNewGroupPicture("Money_PIC", "ICONS_CHAR", "Money");
// ahchx -->
ref pchar = GetMainCharacter();
if(pchar .sex != "man" && pchar .sex != "skeleton")
{
SetNodeUsing("SETUP_BIG_PICTURE_FEMALE" , true);
SetNodeUsing("SETUP_BIG_PICTURE" , false);
SetNodeUsing("MAP_PICTURE_FEMALE" , true);
SetNodeUsing("MAP_PICTURE" , false);
}
else
{
SetNodeUsing("SETUP_BIG_PICTURE_FEMALE" , false);
SetNodeUsing("SETUP_BIG_PICTURE" , true);
SetNodeUsing("MAP_PICTURE_FEMALE" , false);
SetNodeUsing("MAP_PICTURE" , true);
}
// ahchx <--
}