TGB/Networking/Standard GUIs

From TDN

This page is a Work In Progress by Seth Willits, dated May 13, 2008.

TGB Networking >> Standard GUIs

Host and Join GUI


When you create a new project in TGB, you will see a "common" folder at the top level of your project. Inside this common folder is a lot of code, GUIs, and other resources that are designed to be shared between projects. Inside of the GUI folder you will see the files NetworkMenu.gui, startServer.gui, and joinServer.gui. You can show these GUIs to offer a standardized interface to your players to start or join a server. All of controls in the interface work right out of the box.


Image:NetworkMenuGui.png

Image:StartServerGui.png

Image:JoinServerGui.png

You can display one the GUIs by pushing them onto the canvas as dialogs doing one of the following:

Canvas.pushDialog(NetworkMenu);
Canvas.pushDialog(StartServerGui);
Canvas.pushDialog(JoinServerGui);