Jump to content

Recommended Posts

Posted

Hi all.

I'm looking for a H5 simple interface that has one extra window that can be opened from the server side.

I am able to create a new window in the interface, but have no ideea on how I make it open from the java side.

If anyone has this kind of simple interface and wants to share it, or can point me in the right direction on how to do it, I would greatly apreciate it.

Thanks all and happy new year.

 

Posted

You would need to create a new Server->Client packet. I know that you can send bypasses from the client to the server without the need of creating a new client->server packet, but I am yet to find a way to do it the other way around.

Posted

What's the Window name for the only window you can send HTML in from the server? I want to make it bigger so I can send content in it.

I thought it was Tutorial something but I connot find it in interface.xdat.

Posted

you can send to all html windows, you just need to change the viewtype, but but the name of npcs window is "NPCDialogWnd".

the function for you to understand how to send to another window:

function HandleLoadHtmlFromString(string param)
{
	local string htmlString;
	local int tmp;

	ParseString(param, "HTMLString", htmlString);
	ParseInt(param, "isExtra", tmp);

	if(tmp != 1)
	{
		m_hHtmlViewer.LoadHtmlFromString(htmlString);
		ShowNPCDialogWnd();

	}else
	{
		m_ScriptExtra.HandleShowBoardPacket(param);
	}
}

 

  • Upvote 1

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


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