Jump to content
  • 0

Question

Posted

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>";
    }

 

4 answers to this question

Recommended Posts

  • 1
Posted (edited)
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
  • Like 1
  • 0
Posted
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

  • 0
Posted

<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 :)

  • 0
Posted
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.

Guest
This topic is now closed to further replies.


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock