View Single Post
  #12  
Old 03-21-2012, 09:44 AM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
Quote:
Originally Posted by Tricxta View Post
but...that's a real challenge!!
not really...

PHP Code:
//#CLIENTSIDE
function onCreated(){
  
this.filetypes = {"png""mng""gif"};
}

function 
FileBrowser_FilesList.onSelect(idtextrow){
  for(
temp.type this.filetypes){
    if(
text.pos(type) > -1){
       
FileBrowser_DebugText.addtext("" NL "<img src =\""@text.substring(0text.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

Last edited by Mark Sir Link; 03-21-2012 at 09:55 AM..
Reply With Quote