I managed to send unit and hero names from Lua to panorama with GetUnitName(), sending for example "npc_dota_hero_axe", but I need to transform that into text of just "Axe" or "Death Prophet" but I don't want to manually list every single possible unit or hero name on the panorama script.
Sorry if I'm not clear, I'm starting to learn about panorama now, I know pratically nothing and this multiple scripts interactions is frying my small Lua brain
Here is an example of one of my attempts:
$("#PlayerDropDown").FindChildTraverse("player1").text = vdata.nHeroName;
vdata.nHeroName have the GetUnitName(), like "npc_dota_hero_axe", but the console says it is a null value. I know it is a null value, it's not a text, I just dont know how to turn this into text. Setting a manual text shows it back on panorama, so FindChildTraverse is fine.