DIFF

class GizmoApiSource

GizmoApi Managed

All members, including inherited

API for managing gizmos

Methods 14

proto GizmoHandle GetCount()

Return the number of gizmos

proto Class GetInstance(GizmoHandle index)

Return the instance passed in for the temporary handle

proto Managed GetTracker(GizmoHandle index)

Return the tracker passed in for the temporary handle

proto GizmoHandle FindByTracker(Managed tracker)

Returns a temporary handle

proto void DeselectTracker(Managed tracker)

Deselect the gizmo for the given tracker

Referenced by BoxDraw.~BoxDraw()
proto void Deselect(GizmoHandle index)

Deselect the gizmo for the temporary handle

proto void DeselectAll()

Deselect all gizmos

proto void SelectObject(Object object)

Sets the transform of the object directly. Internally functions similiar to 'SelectUser'

Tracker: The tracker is the same object

proto void SelectPhysics(Physics physics)

Applies impulses to set the position when dynamic, otherwise sets the transform in the physics scene. Doesn't work in multiplayer

Tracker: The tracker is the parent entity

Note: Currently, GizmoGetInstance doesn't work due to Script Error: 'Physics' can't be compared against 'Class'

proto void SelectUser(Managed instance)

Scripted controls, requires the following methods to be implemented in the class void Gizmo_SetWorldTransform(vector[4] transform, bool finalize) void Gizmo_GetWorldTransform(vector[4] transform) bool Gizmo_IsAllowedTransformMode(GizmoTransformMode mode) bool Gizmo_IsAllowedSpaceMode(GizmoSpaceMode mode)

Tracker: The tracker is the same instance

Referenced by BoxDraw.BoxDraw()
proto void SetTransformMode(GizmoTransformMode mode)

Set current transform mode for all gizmos

'Gizmo_IsAllowedTransformMode' function will override the transform mode per gizmo to NONE if returned false

Referenced by DayZGame.OnKeyPress()
proto GizmoTransformMode GetTransformMode()

Get current transform mode for all gizmos

Referenced by DayZGame.OnKeyPress()
proto void SetSpaceMode(GizmoSpaceMode mode)

Set current space mode for all gizmos

'Gizmo_IsAllowedSpaceMode' function will override the space mode per gizmo to NONE if returned false

Referenced by DayZGame.OnKeyPress()
proto GizmoSpaceMode GetSpaceMode()

Get current space mode for all gizmos

Referenced by DayZGame.OnKeyPress()