Skip to content

How to make clickable icon?

Featured Replies

Hello guys, i need make clickable icon, maybe have idea?

 

(inside html)

+ eLink("<img src=\"icon.accessory_tateossian_necklace_i00\" width=32 height=32>", 7) +

not working

+ eLink("Necklace", 7) +

only works whit text

 

private static String eLink(String arg0, int arg1)
    {
        return "<a action="bypass npc%objectId%_doenchant " + arg1 + "">" + arg0 + "</a>";
    }

 

return "<button value=\"Whatever\" action=\"bypass npc%objectId%_doenchant\" width=40 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"

Replace The textures and i think you will be fine.
Edit: <a></a> too i guess.

 

I will reply in 30 mins with 100% answer.

Edited by L2J NexuS

13 minutes ago, L2J NexuS said:

return "<button value=\"Whatever\" action=\"bypass npc%objectId%_doenchant\" width=40 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"

Replace The textures and i think you will be fine.
Edit: <a></a> too i guess.

 

I will reply in 30 mins with 100% answer.

 

Thats correct, keep it button jsut replace the back and fore with the icon texture

  • Author

<button  action=\"bypass npc_%objectId%_doenchant 7\" width=32 height=32 back=\"icon.accessory_tateossian_necklace_i00\" fore=\"icon.accessory_tateossian_necklace_i00\">

 

I totally forgot about buttons :D

Thanks, works :)

9 minutes ago, L2DragonWind said:

<button  action=\"bypass npc_%objectId%_doenchant 7\" width=32 height=32 back=\"icon.accessory_tateossian_necklace_i00\" fore=\"icon.accessory_tateossian_necklace_i00\">

 

I totally forgot about buttons :D

Thanks, works :)

You are welcome dude, @Strain thanks for the confirmation.

  • SweeTs locked this topic
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.