PDA

View Full Version : GUI mover? (3ds max)


underwatercman
10-24-2010, 08:17 PM
Hey does anyone know how to make a GUI mover in 3ds max. I wasnt able to find any tutorials online.
Thanks!

Sigmao
10-25-2010, 04:47 AM
Do you mean this?

Rollout TestRollout "Test Rollout"
(
local mbDialogIsMoving = false
local mp2MouseOffset

on TestRollout lbuttondown _p2MousePos do
(
mp2MouseOffset = Mouse.ScreenPos - GetDialogPos TestRollout
mbDialogIsMoving = true
)

on TestRollout mousemove _p2MousePos do
(
if mbDialogIsMoving do
(
SetDialogPos TestRollout (Mouse.ScreenPos - mp2MouseOffset)
)
)

on TestRollout lbuttonup _p2MousePos do
(
mbDialogIsMoving = false
)
)

CreateDialog TestRollout Height:300

CGTalk Moderation
10-25-2010, 04:47 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.