Class Map

A container for Mudlet's built-in Map display.

Functions

self:Draw () The map magically appears!
self:Resize ([width[, height]]) Adjusts the Map's size.
self:Move (x, y) Moves the Map.
self:Hide () Hides the Map.
self:Show () Returns the Map to its original size.

Methods

Map:Map ([initialX=0[, initialY=0[, initialWidth=1.0[, initialHeight=1.0]]]]) Map constructor.

Properties

self.Container.get () Returns the Map's parent Frame.
self.Container.set (value) Sets the Map's parent Frame.
self.X.get () Returns the Map's user-defined X coordinate.
self.X.set (value) Sets the Map's user-defined X coordinate.
self.AbsoluteX.get () Returns the Map's actual X coordinate.
self.Y.get () Returns the Map's user-defined Y coordinate.
self.Y.set (value) Sets the Map's user-defined Y coordinate.
self.AbsoluteY.get () Returns the Map's actual Y coordinate.
self.Width.get () Returns the Map's user-defined width.
self.Width.set (value) Sets the Map's user-defined width.
self.AbsoluteWidth.get () Returns the Map's actual width.
self.Height.get () Returns the Map's user-defined height.
self.Height.set (value) Sets the Map's user-defined height.
self.AbsoluteHeight.get () Returns the Map's actual height.


Functions

self:Draw ()
The map magically appears! Best used internally only.
self:Resize ([width[, height]])
Adjusts the Map's size.

Parameters:

  • width number Map's new width. (optional)
  • height number Map's new height. (optional)
self:Move (x, y)
Moves the Map.

Parameters:

  • x number Map's new relative X coordinate.
  • y number Map's new relative Y coordinate.
self:Hide ()
Hides the Map.

Technically, it makes the Map very, very tiny.

self:Show ()
Returns the Map to its original size.

Methods

Map:Map ([initialX=0[, initialY=0[, initialWidth=1.0[, initialHeight=1.0]]]])
Map constructor.

Parameters:

  • initialX number The Map's initial X coordinate. (default 0)
  • initialY number The Map's initial Y coordinate. (default 0)
  • initialWidth number The Map's initial Width. (default 1.0)
  • initialHeight number The Map's initial Height. (default 1.0)

Returns:

    Map

Properties

self.Container.get ()
Returns the Map's parent Frame.

Returns:

    Frame
self.Container.set (value)
Sets the Map's parent Frame.

Parameters:

self.X.get ()
Returns the Map's user-defined X coordinate.

Returns:

    number
self.X.set (value)
Sets the Map's user-defined X coordinate.

Parameters:

  • value number
self.AbsoluteX.get ()
Returns the Map's actual X coordinate.

Returns:

    number
self.Y.get ()
Returns the Map's user-defined Y coordinate.

Returns:

    number
self.Y.set (value)
Sets the Map's user-defined Y coordinate.

Parameters:

  • value number
self.AbsoluteY.get ()
Returns the Map's actual Y coordinate.

Returns:

    number
self.Width.get ()
Returns the Map's user-defined width.

Returns:

    number
self.Width.set (value)
Sets the Map's user-defined width.

Parameters:

  • value number
self.AbsoluteWidth.get ()
Returns the Map's actual width.

Returns:

    number
self.Height.get ()
Returns the Map's user-defined height.

Returns:

    number
self.Height.set (value)
Sets the Map's user-defined height.

Parameters:

  • value number
self.AbsoluteHeight.get ()
Returns the Map's actual height.

Returns:

    number
generated by LDoc 1.4.6 Last updated 2017-11-15 22:27:55