Форум администраторов игровых серверов

Форум администраторов игровых серверов (https://forum.zone-game.info/TT.php)
-   Тех-документация (https://forum.zone-game.info/forumdisplay.php?f=41)
-   -   How to add hover image in HTML (https://forum.zone-game.info/showthread.php?t=36284)

Napster321 31.08.2014 04:03

How to add hover image in HTML
 
This is an example from a H5

http://i.imgur.com/Y2mQMIX.png
http://i.imgur.com/hzDAcWT.png
http://i.imgur.com/ZgpSjAg.png



This is what happens when i add it on mine

http://i.imgur.com/Y2mQMIX.png
http://i.imgur.com/ZgpSjAg.png


Код HTML:

<button action="bypass -h npc_%objectId%_Chat 1" value="Teleport" width=270 height=22 back="L2UI_B.Btn1Chat_down" fore="L2UI_B.Btn1Chat">

OneThunder 31.08.2014 08:34

Re: How to add hover image in HTML
 
https://forum.zone-game.info/showthread.php?t=34822

Napster321 31.08.2014 12:27

Re: How to add hover image in HTML
 
Цитата:

Сообщение от Temptation (Сообщение 373460)

I have the utx files i just want it be shown on hover

Donatte 31.08.2014 13:05

Re: How to add hover image in HTML
 
If you want to create a new images pack, then you need add to all images right suffixes. As example you add button with name 123. So, images must have the next names: 123, 123_Over, 123_Down.

Finally, you need use this template:
Код:

<button action="bypass blablabla" width=120 height=34 back=MyImagePack.123_Down fore=MyImagePack.123>
Image with _Over suffix will be used automatically when you press the button.

Napster321 31.08.2014 13:52

Re: How to add hover image in HTML
 
Цитата:

Сообщение от Donatte (Сообщение 373477)
If you want to create a new images pack, then you need add to all images right suffixes. As example you add button with name 123. So, images must have the next names: 123, 123_Over, 123_Down.

Finally, you need use this template:
Код:

<button action="bypass blablabla" width=120 height=34 back=MyImagePack.123_Down fore=MyImagePack.123>
Image with _Over suffix will be used automatically when you press the button.

http://i.imgur.com/DOW5SBp.png

Добавлено через 7 минут
Цитата:

Сообщение от Napster321 (Сообщение 373480)

case matters?

Donatte 31.08.2014 14:05

Re: How to add hover image in HTML
 
Цитата:

Сообщение от Napster321 (Сообщение 373480)
case matters?

I think yes. Anyway, i use it and all works fine.

Napster321 31.08.2014 14:31

Re: How to add hover image in HTML
 
Цитата:

Сообщение от Donatte (Сообщение 373483)
I think yes. Anyway, i use it and all works fine.

what client do you use?
I'm using Gracia Final

Donatte 31.08.2014 16:25

Re: How to add hover image in HTML
 
I think it does not matter which client is used. All the buttons have the same name and work in all clients equally.

OneThunder 31.08.2014 17:28

Re: How to add hover image in HTML
 
Case matters, Make them all like


Btn1Tele
Btn1Tele_Over
Btn1Tele_Down

http://imghost.in/img/2014-04/21/8l4...dx5x4n2j7i.jpg

adaria 31.08.2014 17:40

Re: How to add hover image in HTML
 
Ура! Кто уже украл мою utx! :)

Isobel - MMOPlay Head Community Manager


Текущее время: 21:47. Часовой пояс GMT +3.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd. Перевод: zCarot