Jim,
I'm having the "blank icons syndrom" (all png's are in Plugins folder)
The line that seems to cause the problem is:
imgdir = File.join(File.dirname(FILE), File.basename(FILE, ".rb"))
It returns: ./(eval)
then the icon file location File.join(imgdir, "rubypanel.png") returns: ./(eval)/rubypanel.png
Please help !
The 'toggle' method doesn't work also. At least in V5.
Question: Is findWindow.call(0,"Ruby Console") rely on language settings of SU ? I mean is "Ruby Console" available just for english versions of SU ? In this case the win32api call will not work with other platforms.
P.S.:
UI.openURL("c;\\program files\\google\\google sketchup 6\\plugins")
A non hard-coded command would be handy. Why not get this path from the registry ? Or something like:
su_ver = Sketchup.version.split(".")[0].to_i
if su_ver < 6
devdir = File.dirname(Sketchup.find_support_file("sketchup.exe")) + "\Plugins"
else
devdir = ...
end
This makes the command compatible for SU5 and 6 (I guess), no matter where the user has installed SU.
Regards,