X Rebirth - UI Modding
  1. X Rebirth - UI Modding
  2. XRUIMOD-302

Lua: change GetRelativeMousePosition() to be able to retrieve "sized" mouse positions

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Important Important
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.31 Beta 1
    • Labels:

      Description

      Calling GetRelativeMousePosition() returns the relative mouse position in that element in a value range of 0/0/0 - 1/1/1.

      In certain cases it might be more appropriate to retrieve the value range based on the elements extends (i.e. from 0/0/0 - maxBoxWidht/maxBoxHeight/maxBoxDepth).

      We'd therefore add an optional boolean parameter to GetRelativeMousePosition() to be able to retrieve the mouse position in that other value range.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Stefan Hett
            Reporter:
            Stefan Hett
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: