Panel.MoveTo

From GMod Wiki

Jump to: navigation, search
Function
Syntax Panel:MoveTo( Number x, Number y, Number time, Number startdelay, Number ease )
Description:
Animate a panel to a certain position within a specified time.
Returns: nil
In Object: Panel
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Panel.MoveTo]Panel.MoveTo [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionMoves a panel to position 200,400 within the time of 5 seconds immediately easing in.
Used onNewerClient.png
Code
local frame = vgui.Create("DFrame")
frame:SetSize(600,600)
frame:Center()
frame:MakePopup()
frame:MoveTo( 200, 400, 5, 0, 4)
OutputFrame will move to position 200, 400 starting slow, gradually moving faster.


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox