Jump to content

Need simple interface with one extra window


redsky9

Recommended Posts

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.

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.



×
×
  • Create New...