![]() |
Custom Icons?
I could not find any documentation on making your own icons. Is this even possible? Also to clarify I mean like making a button using the Icon tag, not the graphical portion of it.
Again to clarify, I know you can add IconResource and IconRect but I figure there has to be a better way! |
Quote:
|
You answered my question then. I figured there was an easier way such as Iconstyles. I dabbled with it shortly but no matter what I did the Icon would not change. Then I hard coded it via Icon Rect/Source, hence the confusion.
|
IconStyles do work though, unless I misunderstood again.
However, reading my post above it's not quite correct/complete, you can add an OnPress to an <Icon> if you add the TreatAsButton=true parameter, but you probably knew that also. |
Aye, essentially I could not get IconStyles to work. So I just ended up hard coding it.
|
For the styles I think you needed to set BackGlowResource/Rect instead of IconResource/Rect. Or maybe it was in addition to. I'd have to check, just try it out.
|
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. |
| All times are GMT -5. The time now is 01:48 AM. |
vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI