Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hey niko and all, I am working on a game and I want that my game user can create their own skin for player model.... for that I have created a folder named player skins to the main.directory... And created a configuration.menu in my game... but I don't know how to add functionality... when I add some ."png" file to the skins folder... Then how to display that texture in my configuration menu... and when clicking on particular texture and click on apply... the new texture will be applied to player models... It will be helpfull to create clothes and all other things.. for player model... which will unlock on a specific level.. Anh ideas how to do that??? |
||||
|
You can use the ccbLoadTexture() function for this, it should do the trick, did you see it? |
||||
|
Yeah I know that but I want that it will display a thumbnail of texture contains in the folder and when on cliking that thumbnail.. the ccbload texture javscript will execute and assign the selected thumbnail to model... But it doesn't seems to be possible.. |
||||
|
Ah, you mean you would need some method to iterate the files in a directory, right? |
||||
|
Yes exactly...is it possible.. |
||||
|
Hm.. no, sorry, right now I don't think it is. |
||||
|
Hope this should be added in future updates.. |
|