Good day! I'm trying to overhaul the portrait system in the game. I would like it to be similar to the system with item icons. Several portraits per sheet. And I'm stuck on lines similar to these two.
GameInterface.CHARACTERS_SCROLL.(attributeName).img1 = GetFacePicName(pchar);
GameInterface.CHARACTERS_SCROLL.(attributeName).tex1 = FindFaceGroupNum("CHARACTERS_SCROLL.ImagesGroup","FACE128_" + pchar.FaceID);
As I understand it, the first line indicates which piece of texture to show, and the second which texture to take. But when you edit these lines, the portrait simply disappears.
GameInterface.CHARACTERS_SCROLL.(attributeName).img1 = GetFacePicName(pchar);
GameInterface.CHARACTERS_SCROLL.(attributeName).tex1 = FindFaceGroupNum("CHARACTERS_SCROLL.ImagesGroup","FACE128_" + pchar.FaceID);
As I understand it, the first line indicates which piece of texture to show, and the second which texture to take. But when you edit these lines, the portrait simply disappears.