GuiCheckboxCtrl not working
by Jeff Trier · in Torque Game Engine · 02/23/2005 (6:58 am) · 4 replies
Hey guys and gals,
I am having a strange problem with my custom check box not working. When I hover over the checkbox, the text highlights. When I click on the check box, I get nothing... no image toggeling, the command that goes to an echo doesn't fire off... nada.
Just for kicks I attached my custom profile to another pre-existing torque control and it works fine, so I am sure it isn't a problem with my custom image array.
Check below for the pertainent code.
Thanks in advance!
-Jeff
Custom GuiCheckBox Profile:
continued...
I am having a strange problem with my custom check box not working. When I hover over the checkbox, the text highlights. When I click on the check box, I get nothing... no image toggeling, the command that goes to an echo doesn't fire off... nada.
Just for kicks I attached my custom profile to another pre-existing torque control and it works fine, so I am sure it isn't a problem with my custom image array.
Check below for the pertainent code.
Thanks in advance!
-Jeff
Custom GuiCheckBox Profile:
new GuiControlProfile (GuiDlCheckTeamProfile)
{
opaque = false;
fillColor = "232 232 232";
border = false;
borderColor = "0 0 0";
fontSize = 14;
fontColor = "0 0 0";
fontColorHL = "32 100 100";
fixedExtent = true;
justify = "left";
bitmap = "./dlTeamCheck";
hasBitmapArray = true;
};continued...
About the author
Originally a Classical/Metal musician, I've always been attracted to anything involving computers, including: Networking, PC Building and Repair, software design and coding. I've been involved with game design and development for over 10 years.
#2
02/23/2005 (7:00 am)
new GuiBitmapCtrl(BottomPrintDlg) {
profile = "CenterPrintProfile";
horizSizing = "center";
vertSizing = "top";
position = "45 375";
extent = "550 20";
minExtent = "8 8";
visible = "0";
helpTag = "0";
bitmap = "./hudfill.png";
wrap = "0";
new GuiMLTextCtrl(BottomPrintText) {
profile = "CenterPrintTextProfile";
horizSizing = "center";
vertSizing = "center";
position = "0 0";
extent = "546 12";
minExtent = "8 8";
visible = "1";
helpTag = "0";
lineSpacing = "2";
allowColorChars = "0";
maxChars = "-1";
};
};
new GuiBitmapCtrl(LagIcon) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "572 3";
extent = "32 32";
minExtent = "8 8";
visible = "0";
helpTag = "0";
bitmap = "./lagIcon.png";
wrap = "0";
};
new GuiShapeNameHud() {
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "653 485";
minExtent = "8 8";
visible = "1";
helpTag = "0";
fillColor = "0.000000 0.000000 0.000000 0.250000";
frameColor = "0.000000 1.000000 0.000000 1.000000";
textColor = "0.000000 1.000000 0.000000 1.000000";
showFill = "0";
showFrame = "0";
verticalOffset = "0.2";
distanceFade = "0.1";
damageFrameColor = "1.000000 0.600000 0.000000 1.000000";
damageFillColor = "0.000000 1.000000 0.000000 1.000000";
damageRect = "30 4";
};
};
new GuiBitmapCtrl(player0_info) {
profile = "GuiDefaultProfile";
horizSizing = "relative";
vertSizing = "relative";
position = "7 64";
extent = "357 73";
minExtent = "8 8";
visible = "1";
helpTag = "0";
bitmap = "./playerinfo.png";
wrap = "0";
new GuiTextCtrl(Player0_NameText)
{
profile = "GameRoomInfoProfile";
horizSizing = "relative";
vertSizing = "relative";
position = "16 0";
extent = "24 14";
minExtent = "8 2";
visible = "1";
text = "";
maxLength = "16";
};
new GuiCheckBoxCtrl(Player0_TeamCheck) {
profile = "GuiDlCheckTeamProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "300 0";
extent = "128 128";
minExtent = "8 8";
visible = "1";
command = "CommandToServer(\'SelectTeam\');";
variable = "$Player::TeamSelect";
//text = "Host Multiplayer";
groupNum = "-1";
buttonType = "ToggleButton";
helpTag = "0";
maxLength = "255";
};
};
new GuiBitmapCtrl(player1_info) {
profile = "GuiDefaultProfile";
horizSizing = "relative";
vertSizing = "relative";
position = "7 145";
extent = "357 73";
minExtent = "8 8";
visible = "1";
helpTag = "0";
bitmap = "./playerinfo.png";
wrap = "0";
#3
02/23/2005 (7:00 am)
new GuiTextCtrl(Player1_NameText)
{
profile = "GameRoomInfoProfile";
horizSizing = "relative";
vertSizing = "relative";
position = "16 0";
extent = "24 14";
minExtent = "8 2";
visible = "1";
text = "";
maxLength = "16";
};
new GuiCheckBoxCtrl(Player1_TeamCheck) {
profile = "GuiDlCheckTeamProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "300 0";
extent = "128 128";
minExtent = "8 8";
visible = "1";
command = "CommandToServer(\'SelectTeam\');";
variable = "$Player::TeamSelect";
//text = "Host Multiplayer";
groupNum = "-1";
buttonType = "ToggleButton";
helpTag = "0";
maxLength = "255";
};
};
};
//--- OBJECT WRITE END ---
#4
02/25/2005 (4:58 am)
Bump...
Torque Owner Jeff Trier
Simple Distractions Software
//--- OBJECT WRITE BEGIN --- new GameTSCtrl(GuiRoom) { profile = "GuiContentProfile"; horizSizing = "right"; vertSizing = "bottom"; position = "0 0"; extent = "640 480"; minExtent = "8 8"; visible = "1"; helpTag = "0"; new GuiChunkedBitmapCtrl() { profile = "GuiDefaultProfile"; horizSizing = "width"; vertSizing = "height"; position = "0 0"; extent = "640 480"; minExtent = "8 2"; visible = "1"; bitmap = "./tgeroom.png"; useVariable = "0"; tile = "0"; new GuiBitmapCtrl(CenterPrintDlg) { profile = "CenterPrintProfile"; horizSizing = "center"; vertSizing = "center"; position = "45 230"; extent = "550 20"; minExtent = "8 8"; visible = "0"; helpTag = "0"; bitmap = "./hudfill.png"; wrap = "0"; new GuiMLTextCtrl(CenterPrintText) { profile = "CenterPrintTextProfile"; horizSizing = "center"; vertSizing = "center"; position = "0 0"; extent = "546 12"; minExtent = "8 8"; visible = "1"; helpTag = "0"; lineSpacing = "2"; allowColorChars = "0"; maxChars = "-1"; }; };