Home › Engine Lua tables › ForgeUI control types › DragControl

Engine executable. Settings and tools of the game program (CivilizationVI.exe), usable without a mod. Mostly undocumented debug and configuration functionality; descriptions come from analysis of the executable and have not all been tried in the running game.

DragControl

ForgeUI control type (ForgeUI::DragControl). 7 methods, called on an instance with a colon: Controls.SomeName:Method(...).

C++ base classes (from the exe RTTI, see engine classes): ForgeUI::ControlBase. Whether the Lua type also exposes the base class methods was not checked; the methods below are those registered on this type itself.

Method C++ signature printed by the exe Lua signature Owner basis
ClearCallback void ClearCallback( uint ) DragControl:ClearCallback(arg1: integer) neighbouring methods in the code
GetBestOverlappingControl — DragControl:GetBestOverlappingControl() unique method name
RegisterCallback void RegisterCallback( uint, function ) DragControl:RegisterCallback(arg1: integer, arg2: function) neighbouring methods in the code
StartDrag void StartDrag( int, int ) DragControl:StartDrag(arg1: integer, arg2: integer) unique method name
StopDrag void StopDrag( int, int ) DragControl:StopDrag(arg1: integer, arg2: integer) unique method name
StopSnapBack void StopSnapBack( void ) DragControl:StopSnapBack() unique method name
UpdateDrag void UpdateDrag( int, int ) DragControl:UpdateDrag(arg1: integer, arg2: integer) unique method name