ID:170329
 
I was just wondering how you would make a form close after the "Submit" button has been pressed?

Thanks to anyone who can answer my quesiton.

- GunRunner
In the ProcessForm() proc, add this line:
    usr << browse(null, form_window)


form_window is the form's var that allows you to specify a window in the popup browser. Sending null to that window through the browse() proc tells BYOND to close the window.
In response to Shadowdarke
thanks!

one more thing though, how do you get it to show an image in the window?

ie A characters icon?

thanks again!
In response to GunRunner
The browse_rsc() proc should help you with that.
In response to SSJ2GohanDBGT
i still cant get it to work...


i really dont wanna ask for code though...
In response to GunOcelot
Basically what browse_rsc() does it loads an icon into memory.

Example:
src << browse_rsc(src.icon) //This'll be something like "player.dmi"

src << browse("<img src=[src.icon]>") //Display the image in the browser.


Not too complicated.