About Store Forum Documentation Contact
Donations:
197$/mo



Post Reply 
get icon from filename
Author Message
b1s Offline
Member

Post: #1
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
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: get icon from filename
Meshs(obj.mesh())
02-15-2010 03:16 PM
Find all posts by this user Quote this message in a reply
Post Reply