[kovarex] [16.22][Minor] Volatile GUI elem xpos(affected by left elem)
Posted: Fri Feb 02, 2018 4:21 pm
The x pos of a GUI group(elements) will be affected by the xMax pos of the GUI group(elements) on its left.
In Advance tab of the map generating config window, the length of GUI group to the left varies while dragging bars & changing the number labels. 0 is the shortest and 9999 is (almost) the longest. Here, the starting x pos of the group to the right keeps changing, this block of GUI flashing and shaking.
Well, this is quite a minor issue... You could try to parse the volatile part of the GUI group (in this case, parse the width of "0"~"9999" and save the maximum width("9999")), and fix the x pos of the second group with this parsing value thus pinning the whole GUI group.
In Advance tab of the map generating config window, the length of GUI group to the left varies while dragging bars & changing the number labels. 0 is the shortest and 9999 is (almost) the longest. Here, the starting x pos of the group to the right keeps changing, this block of GUI flashing and shaking.
Well, this is quite a minor issue... You could try to parse the volatile part of the GUI group (in this case, parse the width of "0"~"9999" and save the maximum width("9999")), and fix the x pos of the second group with this parsing value thus pinning the whole GUI group.