Skip to content

Need simple interface with one extra window

Featured Replies

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.

 

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.

Set a param inside the html and separe the windows(normal -> extra) in the interface script

 

 

  • Author

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.

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);
	}
}

 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.