Editor Resources don't work the same way?
by Joe Rossi · in Torque Game Builder · 04/26/2007 (5:54 pm) · 2 replies
I was making use of a few editor resources, and trying to use them with 1.5. They seem not to be loading at all. One of them is the layer floater which is on TDN tdn.garagegames.com/wiki/TGB/Other_Resources/LayerFloater. Can anyone tell me how I might get them working with 1.5 Beta 3?
#2
Here's a fix for the layer floater if anyone wants to use that in the beta.
in the layer floater resourceDatabase.cs, replace your layerFloater::LoadResource function with this:
Now I just need to find out how to get a resource to show in the "currently loaded addons" list, but at least it's working.
04/30/2007 (3:50 pm)
Thanks Neo, I thought that might be the issue. Here's a fix for the layer floater if anyone wants to use that in the beta.
in the layer floater resourceDatabase.cs, replace your layerFloater::LoadResource function with this:
function layerFloater::LoadResource( %this )
{
exec( "./scripts/sceneLayerFloater.ed.cs" );
// Add to the menu.
%view = LevelBuilderMenu.menuGroup.getobject(3); // Get the "View" dropdown menu
%view.additem( 9, "Toggle Layer View" TAB "" TAB "Canvas.toggleFloater( LBSceneGraphLayerFloater);";
}Now I just need to find out how to get a resource to show in the "currently loaded addons" list, but at least it's working.
Torque Owner Neo Binedell
Check out tools/editorClasses/scripts/platform/menuBuilder.ed.cs for examples of using the new menu system.