FloorplanOperator

class Communicator.Operator.FloorplanOperator()

Methods

addMapping()

clearMapping()

restrictToAvatar()

setMapping()


Methods

addMapping

Communicator.Operator.FloorplanOperator.addMapping(button, modifier)

Adds a button and key modifier mapping for the operator. If no mapping is provided, all combinations are considered valid. All mappings require a mouse button, but a key modifier is optional.

Arguments
  • button (Communicator.Button()) –

  • modifier (Communicator.KeyModifiers()) –

Return type

void

clearMapping

Communicator.Operator.FloorplanOperator.clearMapping()

Clears any button and key modifier mappings for the operator.

Return type

void

restrictToAvatar

Communicator.Operator.FloorplanOperator.restrictToAvatar(restrict)

Set whether or not dragging is restricted to the avatar. If true the operator will only function if the selection begins on the avatar

Arguments
  • restrict (boolean()) –

Return type

void

setMapping

Communicator.Operator.FloorplanOperator.setMapping(button, modifier)

Sets the button and key modifier mapping for the operator.

Arguments
  • button (Communicator.Button()) –

  • modifier (Communicator.KeyModifiers()) –

Return type

void