Nice to read this.
I am not a programmer, so I'll try to explain (numbers are for explanation only
).
* Window nameXX
Origin Position (pixels, screen related)
x=100
y=50
width=200
height=150
* Window nameXX ** Button nameXX
Origin Position (pixels, window related)
x=10
y=10
width=30
height=150
label="HELLO" (ex: text or icon, etc.)
fonction call=Fonction name (ex: display a window, go to a screen, etc.)
display=Value name (ex: display the number of items, etc.)
Etc.
Basically, add to, change, etc. the UI. Sort of "ruleset" for the UI.
I hope you get the idea.
It's certainly completely out of reach, just an idea for modders.