Gui question
by DejaBlue · in Torque Game Engine · 11/30/2005 (8:13 pm) · 0 replies
I added
new GuiControl(maphud) {
Profile = "GuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "120 86";
Extent = "458 342";
MinExtent = "8 2";
Visible = "0";
new GuiCommanderHud(maphudpic) {
Profile = "GuiDefaultProfile";
HorizSizing = "relative";
VertSizing = "relative";
Position = "4 3";
Extent = "450 336";
MinExtent = "8 2";
Visible = "1";
applyFilterToChildren = "1";
cameraZRot = "0";
forceFOV = "0";
panSpeed = "10 10";
zoomSpeed = "1";
};
};
to my playgui.gui and i am trying to toggle the maphud visible on and off and no clue how to get this done i have looked at many search finds for visible =1 but nothing really showing what i need , just need a simple say toggle maphud when i press n and n again to close the maphud ( visible off)
new GuiControl(maphud) {
Profile = "GuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "120 86";
Extent = "458 342";
MinExtent = "8 2";
Visible = "0";
new GuiCommanderHud(maphudpic) {
Profile = "GuiDefaultProfile";
HorizSizing = "relative";
VertSizing = "relative";
Position = "4 3";
Extent = "450 336";
MinExtent = "8 2";
Visible = "1";
applyFilterToChildren = "1";
cameraZRot = "0";
forceFOV = "0";
panSpeed = "10 10";
zoomSpeed = "1";
};
};
to my playgui.gui and i am trying to toggle the maphud visible on and off and no clue how to get this done i have looked at many search finds for visible =1 but nothing really showing what i need , just need a simple say toggle maphud when i press n and n again to close the maphud ( visible off)
About the author