• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Help with NEW female equipment background!!

ahchx

Landlubber
hi,
i make a female version of the equipment background, but i dont know how make this to load only on the female characters, i test it replacing the original (male version) with mine and WORKS!

i will upload the tx version, free to use for anybody who knows how attach this background on the female players only.

thks
 

Attachments

  • nuevo item equip fem.rar
    464.2 KB · Views: 51
The texture file use is set in RESOURCE\INI\interfaces\items.ini .
You'd have to copy the entries for the existing "interfaces\CharacterEquipment_SLIB.tga" and rename them.
So you might have [SETUP_BIG_PICTURE] and [SETUP_BIG_PICTURE_FEMALE]
and also [MAP_PICTURE] and [MAP_PICTURE_FEMALE] . Make the female entries use your custom texture.

Then open PROGRAM\INTERFACE\items.c and find:
Code:
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");
}
Replace it with:
Code:
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 <--
}
I think this might work, but you'll have to try. I don't know much about interfaces, so I might be wrong though... :?
 
It'll at least be similar to the correct solution, even if you find it doesn't quite work yet. :doff
 
Back
Top