EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > UI Developer Discussion

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 05-13-2009, 01:27 AM
samejima samejima is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Jul 2005
Server: Unrest
Posts: 156
Default 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!

Last edited by samejima : 05-13-2009 at 01:40 AM.
Reply With Quote
  #2  
Unread 05-13-2009, 02:35 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Quote:
Originally Posted by samejima View Post
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!
Sorry, I still don't get the question. For the graphical portion of an icon you'd add an iconstyle or iconresource/rect directly as you said. However, for making a button you'd usually use something like the button or checkbox instead. edit: For using an icon as a button see my post below.
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.

Last edited by gm9 : 05-13-2009 at 04:35 AM.
Reply With Quote
  #3  
Unread 05-13-2009, 04:19 AM
samejima samejima is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Jul 2005
Server: Unrest
Posts: 156
Default

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.
Reply With Quote
  #4  
Unread 05-13-2009, 04:34 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

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.
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
  #5  
Unread 05-13-2009, 04:39 AM
samejima samejima is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Jul 2005
Server: Unrest
Posts: 156
Default

Aye, essentially I could not get IconStyles to work. So I just ended up hard coding it.
Reply With Quote
  #6  
Unread 05-13-2009, 05:56 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

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.
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
  #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
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:54 PM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI