[XRUIMOD-290] Lua/FFI: FFI:GetRelativeAimScreenPosition() and Lua:GetUIElementScreenPosition() return inaccurate values. Created: 12/Mar/18 Updated: 21/Mar/18 Resolved: 12/Mar/18
|Project:||X Rebirth - UI Modding|
|Affects Version/s:||3.50 - Beta 1|
|Fix Version/s:||4.31 Beta 1|
|Reporter:||Stefan Hett||Assignee:||Stefan Hett|
The two functions take two parameters for the corresponding icon sizes of target elements: the icon on- and off-screen size.
There were several glitches when these values were taken into account (i.e. when the target element could not be displayed entirely on screen) ultimately resulting in inaccurate return values for the on-screen value (in case of GetUIElementScreenPosition()) and the x2d/y2d values of both functions.