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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • sell adena l2rebon signature x1 - 1kk = 1 dollars l2reborn x10 - 500kk = 4.7 dollars E-Global x Lu4 - 1kk = 2.7 dollars BOHPTS - x20-x500 TOP PRICE DISCORD - GODDARDSHOP TELEGRAM - MMOPROMO
    • Hello send me on discord to receive the files source packages you order fron team, thanks you.
    • 亲爱的 SocNet 用户! 我们想向您介绍我们平台当前的促销和特惠活动列表: 1. 在 9 月使用优惠码 SEPTEMBER2025(9 折优惠)即可在我们的商店(网站、机器人)购物!您还可以在首次购买时使用优惠码:SOCNET(85 折优惠) 2. 获得 $1 商店余额或 10-20% 折扣,只需在我们网站注册后按照以下模板填写您的用户名: "SEND ME BONUS, MY USERNAME IS..." ——需要在我们的论坛主题帖中发布! 3. 获得 $1 用于首次试用 SMM 面板:只需在我们网站(支持中心)提交一个主题为 “Get Trial Bonus” 的工单。 4. 我们的 Telegram 频道和机器人中每周都会赠送 Telegram Stars! 当前链接: 数字商品商店(网站):前往 购买 Telegram Stars 的 Telegram 机器人:前往 SMM 面板:前往 – 推广您的社交媒体账号。 商店 Telegram 机器人:前往 新闻资源: Telegram 频道: https://t.me/accsforyou_shop WhatsApp 频道: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n Discord 服务器: https://discord.gg/y9AStFFsrh 我们正在积极寻找以下商品类别的供应商: — Snapchat 新旧账号 | 带积分 (snapscores) | 地区: 欧洲/美国 | 邮箱/手机号完全访问权限 — Reddit 老账号(暴力破解或被盗来源,自注册)| 帖子和评论业力值 100 至 100,000+ | 含邮箱完全访问权限 — LinkedIn 老账号 | 拥有真实连接 (connections) | 地区: 欧洲/美国 | 邮箱完全访问权限 + 活跃的 2FA 密码 — Instagram 老账号 (2010-2023 年) | 邮箱完全访问权限(可能包含活跃的 2FA 密码) — Facebook 老账号 (2010-2023 年) | 邮箱完全访问权限(可能包含活跃的 2FA 密码)| 有好友或无好友 | 地区: 欧洲/美国/亚洲 — Threads 账号 | 邮箱完全访问权限(可能包含活跃的 2FA 密码) — TikTok/Facebook/Google ADS 代理广告账号 请通过以下联系方式联系我们 —— 我们来讨论合作条件! 我们也随时欢迎其他合作机会。 联系方式和支持: Telegram: https://t.me/socnet_support WhatsApp: https://wa.me/79051904467 Discord: socnet_support 邮箱: solomonbog@socnet.store 通过这些联系方式您还可以: — 咨询批量采购 — 建立合作伙伴关系(现有合作伙伴: https://socnet.bgng.io/partners ) — 成为我们的供应商
    • 亲爱的 SocNet 用户! 我们想向您介绍我们平台当前的促销和特惠活动列表: 1. 在 9 月使用优惠码 SEPTEMBER2025(9 折优惠)即可在我们的商店(网站、机器人)购物!您还可以在首次购买时使用优惠码:SOCNET(85 折优惠) 2. 获得 $1 商店余额或 10-20% 折扣,只需在我们网站注册后按照以下模板填写您的用户名: "SEND ME BONUS, MY USERNAME IS..." ——需要在我们的论坛主题帖中发布! 3. 获得 $1 用于首次试用 SMM 面板:只需在我们网站(支持中心)提交一个主题为 “Get Trial Bonus” 的工单。 4. 我们的 Telegram 频道和机器人中每周都会赠送 Telegram Stars! 当前链接: 数字商品商店(网站):前往 购买 Telegram Stars 的 Telegram 机器人:前往 SMM 面板:前往 – 推广您的社交媒体账号。 商店 Telegram 机器人:前往 新闻资源: Telegram 频道: https://t.me/accsforyou_shop WhatsApp 频道: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n Discord 服务器: https://discord.gg/y9AStFFsrh 我们正在积极寻找以下商品类别的供应商: — Snapchat 新旧账号 | 带积分 (snapscores) | 地区: 欧洲/美国 | 邮箱/手机号完全访问权限 — Reddit 老账号(暴力破解或被盗来源,自注册)| 帖子和评论业力值 100 至 100,000+ | 含邮箱完全访问权限 — LinkedIn 老账号 | 拥有真实连接 (connections) | 地区: 欧洲/美国 | 邮箱完全访问权限 + 活跃的 2FA 密码 — Instagram 老账号 (2010-2023 年) | 邮箱完全访问权限(可能包含活跃的 2FA 密码) — Facebook 老账号 (2010-2023 年) | 邮箱完全访问权限(可能包含活跃的 2FA 密码)| 有好友或无好友 | 地区: 欧洲/美国/亚洲 — Threads 账号 | 邮箱完全访问权限(可能包含活跃的 2FA 密码) — TikTok/Facebook/Google ADS 代理广告账号 请通过以下联系方式联系我们 —— 我们来讨论合作条件! 我们也随时欢迎其他合作机会。 联系方式和支持: Telegram: https://t.me/socnet_support WhatsApp: https://wa.me/79051904467 Discord: socnet_support 邮箱: solomonbog@socnet.store 通过这些联系方式您还可以: — 咨询批量采购 — 建立合作伙伴关系(现有合作伙伴: https://socnet.bgng.io/partners ) — 成为我们的供应商
  • 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