ID:263457
 
Code:
    var/icon/H = new('Ama.dmi')
H.icon += rgb(usr.CR,usr.CG,usr.CB)
usr.Ama = H


Problem description:
Inside of the popup i have [usr.Ama] to show it.
I tried using \icon [usr.Ama] but that dident work. i tried allot of other stuff too.
How can i have it show the customized icon?
Chibi-Gohan0 wrote:
Code:
>   var/icon/H = new('Ama.dmi')
> H.icon += rgb(usr.CR,usr.CG,usr.CB)
> usr.Ama = H
>

Problem description:
Inside of the popup i have [usr.Ama] to show it.

This won't work. You actually have to do a thing or two before showing the image in the browser.

I tried using \icon [usr.Ama] but that dident work. i tried allot of other stuff too.

The \icon macro is for the Text window, really, and doesn't work in popup browsers.

How can i have it show the customized icon?

First, you need to use browse_rsc() to cache the file for browser-use. Then in the subsequent browse(), use the filename specified in browse_rsc(). For example:
    usr << browse_rsc(usr.Ama, "AmaPic.png")
usr << browse("<img src='AmaPic.png' />", "window=WindowName; size=300x300")


Hiead
In response to Hiead
buti have a popup with allot of other stuff in it. i want part of it to show the customized attack. not just that?
In response to Chibi-Gohan0
The browse would be treated as normal. That snippet wasn't for you to go and copy+paste into your project; it was a demonstration on how you might display the image. the <img> tag would replace the \icon[usr.Ama], [usr.Ama], and "allot of other stuff too."

Hiead