#how to move whole parent frame with UIDragDetector

1 messages · Page 1 of 1 (latest)

elfin sage
#

Is there any way to move whole parent-parent window with UIDragDetector? lets say i've got main frame where i got all my ui elements, and in this main frame i got small frame (hitbox for UIDragDetector), that contains UIDragDetector, and when i want to drag whole main frame i click and drag this small frame-hitbox inside of it. I know the 1 way to solve this is to take DragContinue delta and add it to the main frame position through script, but is there any easier way, like a property of UIDragDetector that can do it?

tacit elm
#

is the position scaled?

#

of the inside frame

elfin sage
#

yes

#

its smaller than the main frame

tacit elm
#

then it should be relative to the parent pos

elfin sage
#

?

#

isnt UIDragDetector only moving its parent?

#

anyways i already figured it out, but thanks for trying to help

forest elm
forest elm
proud haven
# elfin sage Is there any way to move whole parent-parent window with UIDragDetector? lets sa...

Ok, I messed around with UI a bit to figure this out. Maybe try something like this.

  • Move your UIDragDetector to your MainFrame.
  • Create a text button as a region for your UIDragDetector to ignore
  • Resize the TextButton and position it under the Topbar
  • Remove any Text from the TextButton and set its BackgroundTransparency to 1
  • Disable the Active property on the button

Disabling the Active property just disables the Mouse Hover Icon (atleast i think)
hopefully that works