Hi.
I don't know, if I got you right. But as nobody else answered so far:
For changing textures the
RedirectTexture function would be used.
For the other things the addon zgoo with
/zgoo mouse is your friend.
And reading the
ESOUI Source is very helpful.