EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > XML Modification Help & Info

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 07-30-2008, 12:26 AM
samejima samejima is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Jul 2005
Server: Unrest
Posts: 156
Default Icons as buttons?

Basically I want to mimic a hotbars look, I managed to make it with my own image ect but is there a way to make an onpress command? I can't seem to get it to work.

Can I use icons or do I have to use a button, if I have to use a button is there anyway for it to shrink when you press it ect? Thanks for your time.
Reply With Quote
  #2  
Unread 07-30-2008, 01:42 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Yes you can make images take an OnPress, there are numerous ways to achieve this. Yes, you can also make them change size. Take a look at existing UIs when learning the ropes, fastest way to figure standards things like 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
  #3  
Unread 07-30-2008, 01:47 AM
samejima samejima is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Jul 2005
Server: Unrest
Posts: 156
Default

That is really what I try to do I don't like to bug people. I striped apart some UI pieces and this is what I came up with.

Code:
   <Icon Location="150,250" Onpress="say test" framecolor="#B5B5B5" iconframepadding="0" iconpadding="0" iconstyle="/IconStyles.button" Name="B1" renderframe="true" renderoutlines="true" ShadowStyle="/ShadowStyles.Outline1" Size="30,30" textcolor="#FFFFFF" treatasbutton="true" />
Now nothing visibly is wrong with the icon it looks perfect, you can click it it gets smaller just like a hotkey. I even made my own Iconstyles.button just for testing appearance figured it all out. But Onpress doesn't work. Also if you could specify a UI piece that does this id appreciate it and be able to figure it out on my own.
Reply With Quote
  #4  
Unread 07-30-2008, 03:18 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

E.g. Default UI group window has pressable icons on Test server: http://www.eq2interface.com/patches/...upmembers.html

Might be that this does not work for other icons, can't remember. I usually use either styled buttons or styled checkboxes, but you can also just use images and overlay a transparent button, that's certainly the easiest method.
__________________
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 07-30-2008, 06:15 AM
Landiin Landiin is offline
Slayer of clock cycles
This person is a EQ2Map developer.
Featured
 
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
Default

I've never been able to get an icon to work with the OnPress event. I've always had to use the transparent button on top of the icon work-around.
__________________
Landiin's EQ2MAP Updater Discussion Download
Reply With Quote
  #6  
Unread 07-30-2008, 03:03 PM
samejima samejima is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Jul 2005
Server: Unrest
Posts: 156
Default

I tried using a transparent button but then the icon doesnt click it just shows up as an image in which case i might as well use an image.. or am I doing something wrong? thanks for everyones help btw!
Reply With Quote
  #7  
Unread 07-30-2008, 03:33 PM
samejima samejima is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Jul 2005
Server: Unrest
Posts: 156
Default

Well finally got test all updated the onpress for icons works there but not on live. Must have added that functionality I guess? Thanks for the help yall.
Reply With Quote
  #8  
Unread 07-30-2008, 03:57 PM
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
Well finally got test all updated the onpress for icons works there but not on live. Must have added that functionality I guess? Thanks for the help yall.
They probably did, Rothgar said he was trying to make all new functionality as accessible to modders as possible, and that's probably part of it. Since it is planned to go live tomorrow you will know then.
__________________
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
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 12:52 AM.


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