From: Barry G. <sm...@gm...> - 2007-05-15 19:24:37
|
Kev, I will make the changes to add a get_path() this afternoon. Out of curiosity, why did you remove the const on the instance()? It seems like you shouldn't be editing the structure? ScreenSet.get_path() will return the path to the base of the skin (I.E What you passed to XML_Parser on creation) Screen.get_path() will return the path to the screen specific config in question (/Main, /Music, etc) That way you can find a png file from a skin with something like if (Item.type() == "button") fopen(ScreenSet.get_path() + Screen.get_path() + '/' + item.get_path()) Does this work? Let me know if you have something else in mind. I should have the changes check in by about 7:00 PST. Thanks, Barry P.S. Great to see your progress! On 5/15/07, Kevron Rees <ke...@ne...> wrote: > Hey all, > > I started implementing the new xml parser. I have > made significant progress past the latest rev, but > I'll finish a bit more before I commit. > > I did make a slight change to the > screenset.h/screenset.cpp files. you'll see that in > rev 118. > > Barry, is there anyway you could get me a function in > screenset to return the folder (path) in which the > screen's xml file resides. I've sort of assumed the > first screen is in "Main/" for now. > > I'll also need a <screen type="menu"/> or a <screen > type = "module"/> tag put in the xml file. I can do > that in the xml files, but I'll need the parser to get > that info to me. > > Much much thanks. It is only a matter of days now and > we'll have it done. > > kev > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Nghost-devel mailing list > Ngh...@li... > https://lists.sourceforge.net/lists/listinfo/nghost-devel > |