As I just learned, the string ID's are generated at runtime, so they change from session to session. But since some of the tools have string ID's and some are char ID's, its difficult to get all the type ID's in one place. This code will place all the tool type ID's in a dictionary and generate them at run time.

The benefit of this over having a separate handler just doing the lookups individually, is that this way you can see all the tool names in one file for easy reference.

For instance, if you want the bucket tool type ID, you just do
Code: Select allphsClass["bucketTool"]

The code, there are two pieces.

Code: Select all// in the start of the main script:
include 'toolStrings.as';