Game Development Community

Join Server Gui

by Xavier "eXoDuS" Amado · in Torque Game Engine · 12/16/2001 (5:57 am) · 2 replies

Hi, i was wondering what this did:
Canvas.getContent().query();
it's the command that the query server buttons exectues when clicked, thing is that i removed the JoinServerGui and replaced it with a JoinServerDlg ... i mean, i did it a dialog isntead of a content, but that button wont work and i dont know how to make it work

#1
12/17/2001 (5:49 pm)
Canvas.getContent() returns the root gui control, in this case the JoinServerGui. If you change it to a dialog box (and renamed it JoinServerDlg), the join server gui is no longer the root control. You'd have to change all instances of "Canvas.getContent()" with the name of the dialog control... JoinServerDlg.query(), etc.

Don't forget to rename the methods as well from JoinServerGui::query to your new name: JoinServerDlg::query
#2
12/17/2001 (6:55 pm)
kewl! that answers all my questions! =)
Thanks