Skip to content

setElementParent on GUI elements is slightly broken #314

Open
@patrikjuvonen

Description

@patrikjuvonen

Describe the bug

  • It does not seem to be possible to set the parent of a GUI element to guiRoot. Also tested on root, resourceRoot and getResourceDynamicElementRoot(resource).
  • It does not seem to reset the position relative to the new parent when set (from window to another, for example). Repositioning does not reload the position.

To reproduce

  1. Create a GUI element and optionally another GUI element as the parent.
  2. setElementParent(guiElement, guiRoot) -> doesn't do anything
  3. setElementParent(guiElement, guiSecondWindow) -> sets, but doesn't reposition relative to the new parent

Expected behavior
Set parent as requested and reset position relative to the new parent.

MTA Client:
Multi Theft Auto v1.5.5-release-13968

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions