LM.GUI.AngleWidget(msg, horizontal)
Version added: before 9.5
Creates a new LM_AngleWidget object
Arguments:
| Name | Type | Description | Default | Ver |
| msg | int32 | The message value to send when the angle is changed by the user | 0 | < 9.5 |
| horizontal | bool | false | 13.5.2 |
Return value:
LM_AngleWidget The newly-created angle widget
Example:
Result:

See also: LM_AngleWidget:SetValue, LM_AngleWidget:Value
-- *** Dialog: ***
local MyDialog = {} -- empty table
-- declare the dialog:
function MyDialog:new(moho)
local d = LM.GUI.SimpleDialog("Angle Widget Dialog", MyDialog)
local l = d:GetLayout()
-- create a new LM_AngleWidget object:
d.MyAngleWidget = LM.GUI.AngleWidget()
-- add the angle widget to the layout:
l:AddChild(d.MyAngleWidget)
return d
end
function MyScript:Run(moho)
-- initiate the dialog:
local dlog = MyDialog:new(moho)
if (dlog:DoModal() == LM.GUI.MSG_CANCEL) then
return
end
endResult:

Angle Widget Dialog
See also: LM_AngleWidget:SetValue, LM_AngleWidget:Value
Search results
Usage of 'AngleWidget' is found in the following scripts:
SS - Make Bones (Original Edition) by simplsam
View Code