EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   XML Modification Help & Info (https://www.eq2interface.com/forums/forumdisplay.php?f=22)
-   -   Icons as buttons? (https://www.eq2interface.com/forums/showthread.php?t=11371)

samejima 07-30-2008 12:26 AM

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.

gm9 07-30-2008 01:42 AM

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.

samejima 07-30-2008 01:47 AM

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.

gm9 07-30-2008 03:18 AM

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.

Landiin 07-30-2008 06:15 AM

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.

samejima 07-30-2008 03:03 PM

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!

samejima 07-30-2008 03:33 PM

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.

gm9 07-30-2008 03:57 PM

Quote:

Originally Posted by samejima (Post 74625)
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. :)


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

vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI