I'm reading script source in the toolset and to the right there's a window with a large list of functions, and an ability to filter them. Double-clicking them doesn't take me to the function definition as I intuitively expected, rather, I think it tries to insert a call to the function in the source, and appropriately tells me that the source is read-only. How do I go to a function's definition once i know the name of it?
How do I jump to a function definition in the toolset?
Débuté par
fro7k
, déc. 11 2009 07:42
#1
Posté 11 décembre 2009 - 07:42
#2
Posté 11 décembre 2009 - 07:55
You need to have the Help window opened. View>Other Windows>Help
#3
Posté 11 décembre 2009 - 07:56
Enable the Help Window. I don't have the toolset here so don't know the exact name but I think it is under View menu -> other windows (or something like that).
The function description appears in that window.
The function description appears in that window.
#4
Posté 11 décembre 2009 - 07:57
That's not a definition though, in the programming sense. I mean seeing the actual code of the function.
#5
Posté 11 décembre 2009 - 08:02
I assume these are script functions and not hard-coded.
#6
Posté 11 décembre 2009 - 08:04
You have to have the function written in the script editor somewhere. I usually just double click the function while on an editable script. Then, right click the selected function, and select "Go To Definition". If the function is implemented anywhere but the engine, you will be taken to the appropriate file and implementation. If it's an engine function (i.e. GetHero()), then you'll just see it popup in the help window.
Modifié par Challseus, 11 décembre 2009 - 08:05 .
#7
Posté 11 décembre 2009 - 08:06
Heh, I already thought of that method (although I assumed it wouldn't allow me to even type into a read-only file) so I didn't try it, and it's a rather ropey way of doing it.





Retour en haut







