You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cl_panorama_script_help_2 (Crashes the game currently)
script_help2
cl_script_help2
dump_panorama_css_properties
dump_panorama_events
functionDumpObjectIndented(obj,indent){varresult="";if(indent==null)indent="";for(varpropertyinobj){varvalue=obj[property];if(typeofvalue=='string')value="'"+value+"'";elseif(typeofvalue=='object'){if(valueinstanceofArray){// Just let JS convert the Array to a string!value="[ "+value+" ]";}else{// Recursive dump// (replace " " by "\t" or something else if you prefer)varod=DumpObjectIndented(value,indent+" ");// If you like { on the same line as the key//value = "{\n" + od + "\n" + indent + "}";// If you prefer { and } to be alignedvalue="\n"+indent+"{\n"+od+"\n"+indent+"}";}}result+=indent+"'"+property+"' : "+value+",\n";}returnresult.replace(/,\n$/,"");}
The text was updated successfully, but these errors were encountered:
Pushed enumdump.ts and DefinitionGenerator.py from ModDota/DotaUI to this repo.
enumdump.ts generates dota_enum.d.ts and for all intents and purposes is a refined version of OP's function, but it will only spit out constants, and also adds the file header at the top.
DefinitionGenerator.py accepts input from cl_panorama_script_help $TYPE and spits out vaguely typescript declaration that a human needs to go through later and clean up (Valves documentation is very vague on a lot of types)
The text was updated successfully, but these errors were encountered: