TGB/Networking/Standard GUIs
From TDN
TGB Networking >> Standard GUIs
[edit]
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.
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);
Categories: Networking | Server | Client | TGB | GUI






