#Looking for a way to modify lower hud for a specified unit
1 messages · Page 1 of 1 (latest)
Press F6 while in workshop mode, this will open the Panorama Debugger.
Click on the button that says "Inspect" to enter inspect mode.
During inspect mode, click on the UI part you want to adjust. This will take you to where it is located, its panel tree and its current CSS.
Sorry If I explained it in a bad shape. What I meant was I would want to have custom hud for certain unit (if it is possible at all).
You get a selected unit and then check its name
const selected_unit_index = Players.GetLocalPlayerPortraitUnit();
const name = Entities.GetUnitName(selected_unit_index);
something like this
if you are not using typescript, available javascript api can be found here: https://github.com/ModDota/TypeScriptDeclarations/blob/master/packages/panorama-types/types/api.d.ts
if multiple stuff are selected you may want to use GetSelectedEntities. You need to experiment with it yourself.