b1s
Member
|
get icon from filename
Is it possible to get this from the mesh name not from the .obj?
Code:
// get icon
for(Game::ObjParams *op=&obj; op; op=op->base()) // iterate through all ObjParams, to find first with a valid icon
if(CChar *op_file_name=Game::Objs(op)) // if current ObjParams is stored in a file (the file name is not NULL)
if(icon=Images.get(GetExtNot(op_file_name)+".ico.gfx")) // if there exists an icon with the same name as ObjParams but with different extension
break; // break
|
|
02-14-2010 01:05 PM |
|
Esenthel
Administrator
|
RE: get icon from filename
Meshs(obj.mesh())
|
|
02-15-2010 03:16 PM |
|