ID:151063
 
Hello,

Recentry I have been trying to get some
custom objects (derived from /atom) to
be correctly displayed on the stat pane.

Howaver, the more I try the less I get...

I have a /something wich has an icon var
that correctly points to a valid file, so
I did:

/something
  var
    name
    binary/value
    icon

  display()
    var/output = "<SMALL><IMG CLASS=icon SRC=\ref[icon]></SMALL>"
    output += " [name] "
    if (value) output += "([value.value()])"
    return output


By the way, I have pre-defined the <SMALL> tag
in a client script.

When I call world << O.display() I get just what I
want, but when I do it inside a stat all I get is a
bunch of "HTML" code in the stat pane.

like this:

/mob
  Stat()
    for(var/something/O in world)
      stat(O.name, O.display())




Is there a way, or is this a feature sugestion?

Thanks!

Julio

</<>
On 5/23/01 7:38 pm Monteiro wrote:

When I call world << O.display() I get just what I
want, but when I do it inside a stat all I get is a
bunch of "HTML" code in the stat pane.

The stat panels don't support html yet. That's on the List, though!
In response to Tom
do stat panes show icons?
i have seen FQO show them
but i want two inventories
like contents
but two of them
so i could show what the user has equiped with graphics
inside the statpanel
In response to Firekingx
On 5/25/01 11:18 am Firekingx wrote:
do stat panes show icons?
i have seen FQO show them
but i want two inventories
like contents
but two of them
so i could show what the user has equiped with graphics
inside the statpanel

That one is easy:
mob
  Stat()
    var/obj/O

    stat(O) // this will stat O's icon along with its name

    statpanel("equiped") // this changes the statpanel

    stat(usr.equiped) //this will stat all objs in the
                      //'equiped' list


If any doubts still persist, just experiment with
the stat() function, or check its info.


Cheers,

Monteiro

PS: Good luck with the key thing!