Quote:
Originally Posted by Tricxta
but...that's a real challenge!!
|
not really...
PHP Code:
//#CLIENTSIDE
function onCreated(){
this.filetypes = {"png", "mng", "gif"};
}
function FileBrowser_FilesList.onSelect(id, text, row){
for(temp.type : this.filetypes){
if(text.pos(type) > -1){
FileBrowser_DebugText.addtext("" NL "<img src =\""@text.substring(0, text.pos(type) + type.length())@"\">", true);
}
}
}
PS I was too lazy to create a new GUI object that drew where the mouse was when hovering over a file name but it's not really too far off of this
everyone always make things far harder than they need to be please stop doing that