Code:
void FillEmblemesScroll()
{
EnumerateIcons("resource\textures\" + sUserSailsPath, "*.tga.tx", "SHIP_WINDOW_EMBLEME", 0);
iEmblemNum = GameInterface.SHIP_WINDOW_EMBLEME.listsize;
iEmblemNum ++;
string attrNameTmp = "pic" + (iEmblemNum);
GameInterface.SHIP_WINDOW_EMBLEME.(attrNameTmp).name1 = "resource\Textures\INTERFACES\Disketa_Empty.tga.tx";
GameInterface.SHIP_WINDOW_EMBLEME.(attrNameTmp).FileName = "Disketa_Empty.tga.tx";
GameInterface.SHIP_WINDOW_EMBLEME.(attrNameTmp).FileName.Name = "None";
GameInterface.SHIP_WINDOW_EMBLEME.(attrNameTmp).FileName.Ext = "tx";
GameInterface.SHIP_WINDOW_EMBLEME.ListSize = iEmblemNum;
GameInterface.SHIP_WINDOW_EMBLEME.current = iEmblemNum;
SetCurrentNode("SHIP_WINDOW_EMBLEME");
SendMessage(&GameInterface,"ls",MSG_INTERFACE_REFRESH_SCROLL,"SHIP_WINDOW_EMBLEME");
SendMessage(&GameInterface,"lsll",MSG_INTERFACE_MSG_TO_NODE,"SHIP_WINDOW_EMBLEME", 1,1);
void FillEmblemesScroll()
{
EnumerateIcons("resource\textures\" + sUserSailsPath, "*.tga.tx", "SHIP_WINDOW_EMBLEME", 0);
iEmblemNum = GameInterface.SHIP_WINDOW_EMBLEME.listsize;
iEmblemNum ++;
string attrNameTmp = "pic" + (iEmblemNum);
GameInterface.SHIP_WINDOW_EMBLEME.(attrNameTmp).name1 = "resource\Textures\INTERFACES\Disketa_Empty.tga.tx";
GameInterface.SHIP_WINDOW_EMBLEME.(attrNameTmp).FileName = "Disketa_Empty.tga.tx";
GameInterface.SHIP_WINDOW_EMBLEME.(attrNameTmp).FileName.Name = "None";
GameInterface.SHIP_WINDOW_EMBLEME.(attrNameTmp).FileName.Ext = "tx";
GameInterface.SHIP_WINDOW_EMBLEME.ListSize = iEmblemNum;
GameInterface.SHIP_WINDOW_EMBLEME.current = iEmblemNum;
SetCurrentNode("SHIP_WINDOW_EMBLEME");
SendMessage(&GameInterface,"ls",MSG_INTERFACE_REFRESH_SCROLL,"SHIP_WINDOW_EMBLEME");
SendMessage(&GameInterface,"lsll",MSG_INTERFACE_MSG_TO_NODE,"SHIP_WINDOW_EMBLEME", 1,1);