Statistics: Posted by Jip — 15 Jul 2016, 13:34
local FatboyBlueprint = __blueprints['uel0401']
LOG('***', repr(FatboyBlueprint),'***')
for unitID, unitBLUEPRINT in __blueprints do
if unitID == 'uel0401' then
LOG('Unit ID='..unitID)
LOG('Unit Background='..(unitBLUEPRINT.General.Icon or 'no General.Icon found'))
IconName = unitID..'_icon.dds'
Filepath = '/textures/ui/common/icons/units/'
if DiskFindFiles(Filepath, IconName) then
LOG('Found Iconfile: '..IconName..' inside directory: '..Filepath)
else
LOG('Iconfile not found!')
end
end
end
Statistics: Posted by Uveso — 15 Jul 2016, 06:36
Statistics: Posted by Jip — 14 Jul 2016, 18:59
unitId..'_icon.dds'
for _, file in DiskFindFiles('/textures/', iconname) do
return file
end
Statistics: Posted by Myxir — 14 Jul 2016, 18:14
Statistics: Posted by Jip — 14 Jul 2016, 15:30