![]() |
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. |
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.
|
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" /> |
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. |
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.
|
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!
|
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.
|
Quote:
|
| All times are GMT -5. The time now is 01:27 PM. |
vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI