Light Editor will not hide
by Craig Courtney · in Torque Game Engine · 02/24/2006 (2:31 pm) · 6 replies
With a fresh download of TLK 1.4 once you open the light editor in creator you can not make it hide again. Neither using F12 or the menu works. The only way to get rid of the dialog is by toggling out of creator with F11 and coming back in.
#2
02/24/2006 (4:06 pm)
Yes that is very annoying, and I thought it was fixed. Need to find out what happened to the change - I'll keep you guys posted.
#3
Change line 765 in 'creator/editor/EditorGui.cs' from:
To:
Then unzip the following Light Editor update into the example directory: TLK Script Library Update 1.4.1.
Let me know if this works ok,
-John
Edit: doh, bold didn't work. :)
02/24/2006 (4:47 pm)
Ok, I don't know where the original fix went, but this actually works better:Change line 765 in 'creator/editor/EditorGui.cs' from:
//-----------------------------------------------
// Lighting Pack code block
//-----------------------------------------------
function EditorGui::toggleSGTools(%this, %item)
{
switch$(%item)
{
case $sgEditorItemNames::sgMenuItem[0]:
[b]sgLightEditor::toggle();[/b]
}
}
//-----------------------------------------------
// Lighting Pack code block
//-----------------------------------------------To:
//-----------------------------------------------
// Lighting Pack code block
//-----------------------------------------------
function EditorGui::toggleSGTools(%this, %item)
{
switch$(%item)
{
case $sgEditorItemNames::sgMenuItem[0]:
[b]sgLightEditor.toggle();[/b]
}
}
//-----------------------------------------------
// Lighting Pack code block
//-----------------------------------------------Then unzip the following Light Editor update into the example directory: TLK Script Library Update 1.4.1.
Let me know if this works ok,
-John
Edit: doh, bold didn't work. :)
#5
02/24/2006 (6:27 pm)
Awesome! :) This has been driving me nuts for a while and was literally the first thing I worked on for the 1.4 release - just not sure what happened with it, but it works now, so thats cool.
#6
02/24/2006 (9:47 pm)
Thank you SO much John!
Torque Owner Andrew Hull