Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

setElementParent on GUI elements is slightly broken #314

Open
Labels
bugSomething isn't working help wantedExtra attention is needed
Milestone
@patrikjuvonen

Description

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 working help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /