mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
expose guiwindowctrl resize margin to script
also up the default to 5 pixels
This commit is contained in:
parent
4c58a3601f
commit
ea63a7448e
|
|
@ -79,7 +79,7 @@ GuiWindowCtrl::GuiWindowCtrl()
|
|||
mResizeEdge(edgeNone),
|
||||
mResizeHeight(true),
|
||||
mCanMove(true),
|
||||
mResizeMargin(2.f),
|
||||
mResizeMargin(5.f),
|
||||
mCanClose(true),
|
||||
mCanMinimize(true),
|
||||
mCanMaximize(true),
|
||||
|
|
@ -143,6 +143,8 @@ void GuiWindowCtrl::initPersistFields()
|
|||
"Whether the window can be resized horizontally." );
|
||||
addField( "resizeHeight", TypeBool, Offset( mResizeHeight, GuiWindowCtrl ),
|
||||
"Whether the window can be resized vertically." );
|
||||
addField("resizeMargin", TypeF32, Offset(mResizeMargin, GuiWindowCtrl),
|
||||
"Margin along the window edge to allow grabbing.");
|
||||
addField( "canMove", TypeBool, Offset( mCanMove, GuiWindowCtrl ),
|
||||
"Whether the window can be moved by dragging its titlebar." );
|
||||
addField( "canClose", TypeBool, Offset( mCanClose, GuiWindowCtrl ),
|
||||
|
|
|
|||
Loading…
Reference in a new issue