Index · Preferences · Help
Announcements · BYOND Features · Bug Reports · Fixes and Features · Developer How-To · Code Problems · Design Philosophy · Creations · Classified Ads · Gaming · Computers & Technology · Community
Forum Search:

[Advanced Search]

[Messages in this Thread] [Show All (4)] [Return to Code Problems]

Author:Kaioken [Posts]
Date:11/5/09 5:56 pm
Topic:Re: winset() help
Post ID:725919
Parent ID:725869
Next ID:725887
Garthor wrote:
> You need to use the \ref text macro to actually place it there, and you need to fulfill a few weird conditions.

No weird conditions as far as I know, all you need to do is supply any kind of proper reference to an available icon. ID:704164

> The alternative is to use \ref[fcopy_rsc(icon())]. You cannot just use \ref on the icon() proc directly

That would be because it returns an /icon object, and not an icon file.

> as the icon has to be used before it will be displayable, for whatever reason.

It's not the problem here, but that is actually almost the case; a new icon produced with an /icon object isn't copied to the RSC until you try to do something with it, at which point fcopy_rsc() is implicitly invoked (for example, when you do atom.icon = icon(...)) so the icon can actually be used and received by players. Usually you wouldn't care about all that though, seeing as it's always done automatically in the typical situations.

Messages in this Thread: [Show All (4)]

  winset() help Apocaliptic (11/5/09 7:10 am)
      Re: winset() help Garthor (11/5/09 12:35 pm)
          Re: winset() help Kaioken (11/5/09 5:56 pm)
          Re: winset() help Apocaliptic (11/5/09 1:52 pm)