Game Development Community

Gui Script

by none · in Torque Game Engine · 11/03/2008 (9:49 pm) · 0 replies

Hi everyone, this is my first attempt at scripting. I am working on making a simple GUI that opens when the player presses 1. I know how to do that, but I am having trouble making the GUI via scripting. Here is what I have. This is in the customprofiles.cs. What I want it to do is make the workshop table bitmap be the background and to size the gui to 500by400. Can someone help me fix my script. Additionally what other scripts do i need to edit before I can view this in the GUI Editor thanks. Here's the code.

//----------------------------------------------------------------------------
//Weapons Workshop Gui

new GuiControlProfile ("WeaponsCreator")
{
opaque =false;
faltType = "Arial";
fontSize =12;
fontColor= "0 255 0";
border = false;
bitmap = "./WorkShop Table";
hasBitmapArray = true;
};