Jump to content

Recommended Posts

Posted (edited)

Alloz all. Got a couple questions about Interlude Htmls.

 

1)I want to make the text inside a button colored and inside " ". Like this 30kdctf.png

but the button code is:

<button value="I will change to the Knight class." action="bypass -h npc_%objectId%_bla" width=265 height=22 back="blabla.bla" fore="blabla.blac">
I can't put "I will change ..." because the value= already got " " . And i can't make them colored with <font color="blabla"> ... </font> .
 
Can the text be colored and inside " " on interlude htmls? If yes post the html code line.
 
 
2)Also the retail deposit cargo box or teleport or some other stuff got a pop up msg when you press the text, like the following cargo deposit
<a action="bypass -h npc_%objectId%_DepositF" msg="1040">Deposit a Cargo Box.</a>
it has the msg="1040" . I want that to get triggered from the button also. (placed it everywhere but it doesn't work). Can it be done from html?
 
If someone knows any of these share some knowledge.
Edited by IpotoniC
Posted

I was also working for that, i rememebr you helped me in the past to get this buttons, but i gave up...

I'm not interested in the button texture. (i posted this photo cause the text inside it is colored and inside " " ).

I'm interested for the text appearance and functionality.

 

I believe the button from the photo is the simple texture behind as a button and somehow the icon and the text is added on top of it. (interlude way)

This way you can make the text however you want,you got the 3 textures for the button and you can add additional icon at the left (quest,teleport,blabla).

 

Anyone knows how to make the text on top of a button? But the functionality from the pop up msg (when there is one) will still get activated by pressing only the text area.

Posted

For sure you cannot change font of button name via html.

If you make simple text over texture, Hover and Mouse Down version will not work.

 

Try to put \" inside of value, you could also trick it by writing ' twice: ''

Posted (edited)

For sure you cannot change font of button name via html.

If you make simple text over texture, Hover and Mouse Down version will not work.

 

Try to put \" inside of value, you could also trick it by writing ' twice: ''

Damn that was obvious the x2 ' , i tried it on html and cause it looked nothing like " i didn't even checked in-game. (Looks the same in-game tho).

 

I'm not talking about simple texture, i'm talking about putting something else on top of a button (text,other button). Is there something for that?

 

Edit: Anyway it's fine tho. The solution is to change the color from the npc text and player's button text will be white. (Just wanted to see if it can be done)

Edited by IpotoniC
Posted

This color is not even in interface files, seems to be in nwindow.dll

 

I also thought of making the image on the server(putting the font on the image and sending it as a crest) but Mouse Over version would be black.

 

I know that you could make this kind of thing with Interface.u changes:

1. You need to put few textures(like 10, which will be maximum amount of those buttons) and same amount of TextBoxes in Interface.xdat file

2. In Interface.u NpcChatWnd needs to search for specific texts at the end of message(like <fancyButton value="Blabla"/> bypass="something")

3. Each text must be replaced with nothing(so it will not be shown as html), Texture made in Interface.xdat must be shown(.ShowWindow()), TextBox must the shown, TextBox text must be replaced with value.

4. Other Textures and TextBoxes must be set as invisible

5. Location of Textures must be set just after HtmlText, location of text should have fixed location(like Texture.getX() + 20)

6. Texture should react for mouseOver and mouseDown event of TextBox(so Hover and Mouse Down texture will be shown correctly)

7. Button click should run bypass

 

This solution has the limitation: If text is long and scroll bar shows, it might show button below whole frame. Maybe this can be fixed though.

Most likely AutoTools guy could make this for you, it is like 2 hours of work.

Posted

No reason to spend more than 5 mins. I've solved my problem. Thanks for the info you posted.

Anything about msg=" " before bypass? (pop up msg).Can it be triggered from the button at html?

Posted

Actually, I check UWindow and this seems to be there. UWindowButton class:

	if(Text != "")
	{
		C.DrawColor=TextColor;
		ClipText(C, TextX, TextY, Text, True);
		C.SetDrawColor(255,255,255);
	}

I am not sure if this works for HTML buttons or XDAT buttons. Maybe for both. I am unable to compile UWindow.u to check it though :/ This would be fun solution.

  • 6 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • GX-Ext Which file of the svn files should i edit to make blow skills to have 100% chance so i can add the settings in the IlExt.ini? because when im changing it from the skilldata.txt it just helps
    • L2REBORN x10  l2reborn x1   LU4 MASTERWORRK BOHPTS - TOP PRICE discord - adver745645
    • 我们感谢您的 反馈 并希望让服务变得更加 优秀! 如果您使用过我们的服务并愿意分享您的体验(任何体验——积极或建设性),请在Trustpilot上留下评价,并获得$1作为感谢。 链接: https://www.trustpilot.com/review/socnet.pro 如何获得奖励: 1. 前往Trustpilot并留下您的评价 2. 向我们发送发布确认截图,以及带有与评价用户名一致的授权账户截图。 3. 指定哪个商店应收到这 $1 奖励。根据商店不同,可能需要您的用户名/电子邮箱。 您的反馈帮助我们成长,并让项目对社区中的每一位成员变得更好。感谢您与我们同行! 条款: 此活动仅适用于一个唯一用户。不允许多账号行为。 项目有效链接: 数字商品商店(网站): 前往 商店 Telegram 机器人: 前往 – 通过 Telegram 方便访问商店。 虚拟号码服务: 前往 用于购买 Telegram Stars 的 Telegram 机器人: 前往 – 在 Telegram 中快捷且优惠地购买 Stars。 SMM 面板: 前往 – 推广您的社交媒体账户。 我们想向您展示当前的 促销和特别优惠列表 用于购买我们提供的产品与服务: 1. 您可在首次购买时使用优惠码:SOCNET(15% 折扣) 2. 获得 $1 商店余额或 10–20% 折扣——只需在我们网站注册后,按照模板填写您的用户名:“SEND ME BONUS, MY USERNAME IS...”并在我们的论坛主题中发布! 3. 首次启动 SMM 面板可获得 $1:只需在我们的网站(Support)提交主题为 “Get Trial Bonus” 的工单。 4. 我们的 Telegram 频道以及 Stars 购买机器人中每周都有 Telegram Stars 抽奖! 新闻: ➡ Telegram 频道: https://t.me/accsforyou_shop ➡ WhatsApp 频道: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器: https://discord.gg/y9AStFFsrh 联系方式与支持: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • 我们感谢您的 反馈 并希望让服务变得更加 优秀! 如果您使用过我们的服务并愿意分享您的体验(任何体验——积极或建设性),请在Trustpilot上留下评价,并获得$1作为感谢。 链接: https://www.trustpilot.com/review/socnet.pro 如何获得奖励: 1. 前往Trustpilot并留下您的评价 2. 向我们发送发布确认截图,以及带有与评价用户名一致的授权账户截图。 3. 指定哪个商店应收到这 $1 奖励。根据商店不同,可能需要您的用户名/电子邮箱。 您的反馈帮助我们成长,并让项目对社区中的每一位成员变得更好。感谢您与我们同行! 条款: 此活动仅适用于一个唯一用户。不允许多账号行为。 项目有效链接: 数字商品商店(网站): 前往 商店 Telegram 机器人: 前往 – 通过 Telegram 方便访问商店。 虚拟号码服务: 前往 用于购买 Telegram Stars 的 Telegram 机器人: 前往 – 在 Telegram 中快捷且优惠地购买 Stars。 SMM 面板: 前往 – 推广您的社交媒体账户。 我们想向您展示当前的 促销和特别优惠列表 用于购买我们提供的产品与服务: 1. 您可在首次购买时使用优惠码:SOCNET(15% 折扣) 2. 获得 $1 商店余额或 10–20% 折扣——只需在我们网站注册后,按照模板填写您的用户名:“SEND ME BONUS, MY USERNAME IS...”并在我们的论坛主题中发布! 3. 首次启动 SMM 面板可获得 $1:只需在我们的网站(Support)提交主题为 “Get Trial Bonus” 的工单。 4. 我们的 Telegram 频道以及 Stars 购买机器人中每周都有 Telegram Stars 抽奖! 新闻: ➡ Telegram 频道: https://t.me/accsforyou_shop ➡ WhatsApp 频道: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器: https://discord.gg/y9AStFFsrh 联系方式与支持: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
  • Topics

×
×
  • 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