You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Create a GUI element and optionally another GUI element as the parent.
setElementParent(guiElement, guiRoot) -> doesn't do anything
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.
I'm carrying this information forward here from Equis, so I haven't yet personally tested this issue. If someone has a working solution, let's hear it.
The text was updated successfully, but these errors were encountered:
Describe the bug
guiRoot
. Also tested onroot
,resourceRoot
andgetResourceDynamicElementRoot(resource)
.To reproduce
setElementParent(guiElement, guiRoot)
-> doesn't do anythingsetElementParent(guiElement, guiSecondWindow)
-> sets, but doesn't reposition relative to the new parentExpected 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
The text was updated successfully, but these errors were encountered: