[XRUIMOD-290] Lua/FFI: FFI:GetRelativeAimScreenPosition() and Lua:GetUIElementScreenPosition() return inaccurate values. Created: 12/Mar/18  Updated: 21/Mar/18  Resolved: 12/Mar/18

Status: Closed
Project: X Rebirth - UI Modding
Component/s: None
Affects Version/s: 3.50 - Beta 1
Fix Version/s: 4.31 Beta 1

Type: Bug Priority: Important
Reporter: Stefan Hett Assignee: Stefan Hett
Resolution: Fixed Votes: 0
Labels: modding

Issue Links:


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.

Generated at Thu Oct 01 17:17:49 CEST 2020 using JIRA 6.2.7#6265-sha1:91604a8de81892a3e362e0afee505432f29579b0.