Beta 4 - launchNewLinkImageMap
by Rodney Rindels - Torqued · in Torque Game Builder · 05/23/2006 (9:50 pm) · 0 replies
Clicked on "Create a new Linked Image Map nothing happened.
checked the gui control, its calling.
launchNewLinkImageMap
so I launch it manually from console.
==>launchNewLinkImageMap();
ImageMap(linkImage) Error: 'Invalid LINK mode image-map selected!' (23)
(0): Register object failed for object linkImage of class t2dImageMapDatablock.
traced it down in editor.ed.cs line 80 to this function
The problem exists because there is no t2dImageMapDatablock to bind to on new projects. now that projects are created with empty resources, I believe....
If your running from the T2D project it works, but not from newly defined projects.
checked the gui control, its calling.
launchNewLinkImageMap
so I launch it manually from console.
==>launchNewLinkImageMap();
ImageMap(linkImage) Error: 'Invalid LINK mode image-map selected!' (23)
(0): Register object failed for object linkImage of class t2dImageMapDatablock.
traced it down in editor.ed.cs line 80 to this function
function launchNewLinkImageMap()
{
%name = "linkImage";
if(isObject(%name))
{
%base = %name;
for(%i=0;isObject(%name);%i++)
%name = %base @ %i;
}
%linkImageMaps = "ggLogoImagemap ringImageMap";
%datablock = "datablock t2dImageMapDatablock(" @ %name @ ")\n";
%datablock = %datablock SPC "{\n";
%datablock = %datablock SPC "imageMode = LINK;\n";
%datablock = %datablock SPC "linkImageMaps = " @ "\"" @ %linkImageMaps @ "\"" @ ";\n";
%datablock = %datablock SPC "};";
eval(%datablock);
ImageEditor.editing = false;
ImageEditor.editImageMap(%name);
}The problem exists because there is no t2dImageMapDatablock to bind to on new projects. now that projects are created with empty resources, I believe....
If your running from the T2D project it works, but not from newly defined projects.