MV SRD HUD Maker and draw Actor states icons problem

As title says, I'm using SRD HUD Maker in my project, but I've encountered with two problems I'm trying to solve.

First one is that TextEx element don't work at all - it does not show up after adding in on map (less important issue)
Second problem is that I want to put somewhere in corner of map element that will draw (dedicated by me) number of states currently active on $gameParty.leader(). I need it only for party leader because design of my HUD does not include party members.

Thank you in advance
Code:
$gameActors.actor(1)._states.length
// and
$gameParty.leader()._states.length
will both return the number (amount) of States which are active.(can be used in a Variable)
If i understood it right that should solve the Second Issue.

- if i understood it wrong and its about showing state Icons,you will have to use:
Code:
$gameParty.leader().IsStateAffected(stateID);
..and make a "State Img hud" for every State..
(that second code returns "true" or "false")
no idea about the first Issue("TextEx element don't work at all")
@Dopan thank you, but that's not exacly what I need... My idea was around method

Window_Base.prototype.drawActorIcons(actor, wx, wy, ww) like in menus is used by default, but... I stuck.

Original thread: https://forums.rpgmakerweb.com/threads/srd-hud-maker-and-draw-actor-states-icons-problem.127898/