Yes the joys of eq2 ui modding - much is hardcoded, leading to the "unexpected" results you are seeing. All you can do is learn from experience I guess, that's what we all did. It's getting easier and easier of course because you can learn from what other modders have done before you. If there are specific questions regarding specific windows feel free to ask for help in the XML modding forum.