money 2 code tree

Community Forums/Monkey Talk/money 2 code tree

AdamStrange(Posted 2016) [#1]
ok, last thing for now

given a line of code
how would I find the actual code definitions for each command?

E.G.
canvas.Color = New Color(0.06, 0.06, 0.06)


how would I find where canvas is defined - which actual file?
how would I find which file and where Color was defined?

Given this information I can add a 'find reference' <- or something to TED2 :)


degac(Posted 2016) [#2]
Well, Modules/Std/Graphics/Color.monkey2

or localhelp, searchfield, type in 'color' and you should be pointed to the Color Class.
I know a faster (and in IDE) solution would be better.


AdamStrange(Posted 2016) [#3]
great but..
Well, Modules/Std/Graphics/Color.monkey2

that's great to know, but how do I know, how do I get that exact information programatically? surely there is some inbuilt list, or code tree that can be traveled to find which module and where?

or localhelp, searchfield, type in 'color' and you should be pointed to the Color Class.

No, you lost me there:
local help - not got that
search field - nope, nada

let me see. I'm driving down a motorway backwards, blindfolded with my arms tied behind my back. And then you tell me to avoid the large moving thing with wheels. is that the one with the red things on it or the one with the elk sticking out the back?


Wiebo(Posted 2016) [#4]
I would go to Monkey2/docs/index.html and work from there. It's not ideal but a good starting point. This help will also show you in which module a class resides, and then you can find the source code pretty easily by browsing through the modules folder and sub folders.

There is also a search box in that index file, I think that is what degac means.