Thread: Custom Icons?
View Single Post
  #7  
Unread 06-30-2009, 07:13 PM
Zonx's Avatar
Zonx Zonx is offline
A Green Troll
This person is a EQ2Map developer.
Featured
 
Join Date: Dec 2004
Server: Blackburrow
Posts: 2,221
Default

So the whole point of IconStyle is to support a button that has a variable base image with standard state changes. Two icons using the same IconStyle might have different base images but they share the same rollover glow, Frame, etc.

It might help to think of an Icon as a button that accepts an image for the center rather than text. You define a standard background, rollover, frame and so forth using an IconStyle. The base image is defined in the Icon via IconRect and IconResource.

Typically IconRect and IconResource are supplied by DynamicData or a hardcoded feed. You can set these via script, but its probably useless if the image resource hasn't already been loaded into memory.

There is also an IconID Attribute. Not sure but I think you can set this to the id of an Icon in memory and it will load that image into your icon. Again not positive, but I think some IconIDs can be dug out of Macros saved via the save_hotkeys command.
Reply With Quote