Hi! quite a complicated code and structure... It might require a good tracing of all values to find the exact spot of the code where calculations go wrong.
I would start here:
|
Quellcode
|
1
2
3
4
5
|
<!-- put the buttons under eachother -->
copy(plugin[get(floor_btn)].x, floor_menu_xoffset);
add(floor_menu_xoffset, get(menu.floor.height));
add(floor_menu_xoffset, menu.floor.padding);
copy(plugin[get(floor_btn)].y, menu.yoffset);
|
first and quick try: replace "add" with "sub" and see how this will affect positions of the buttons. I mean this:
|
Quellcode
|
1
2
3
4
5
|
<!-- put the buttons under eachother -->
copy(plugin[get(floor_btn)].x, floor_menu_xoffset);
sub(floor_menu_xoffset, get(menu.floor.height));
sub(floor_menu_xoffset, menu.floor.padding);
copy(plugin[get(floor_btn)].y, menu.yoffset);
|
Obviously, there's a complicated queue of copy-paste of parameters from the "menu" array in your "interface.xml" so simple change of "align" might require also changes in other "links" of code.