Position

Defines a Position Supercomponent.

Summary
PositionDefines a Position Supercomponent.
Functions
new
New PositionA Supercomponent, for use only with Frames.
Variables
coordsContains the Frame’s user-defined coordinates.
abs_coordsContains the Frame’s generated, window coordinates.
content_coordsContains the Frame’s generated, Content Rectangle coordinates.
Functions
updateAbsoluteGenerates the absolute coordinates (abs_coords) of the Frame.
Properties
Position Properties

Functions

new

local function new (_,
frame,
init_x,
init_y,
is_first)

Parameters

frameThe Frame to which this Supercomponent belongs.
init_xThe initial x coordinate position.
init_yThe initial y coordinate position.
is_firstDetermines whether or not the parent Frame is the HUD.

Returns

A new Position Supercomponent.

New Position

A Supercomponent, for use only with Frames.  Responsible for managing the coordinate positioning of the Frame within its parent.  This is only used internally.  Not to be exposed.

Summary
Variables
coordsContains the Frame’s user-defined coordinates.
abs_coordsContains the Frame’s generated, window coordinates.
content_coordsContains the Frame’s generated, Content Rectangle coordinates.
Functions
updateAbsoluteGenerates the absolute coordinates (abs_coords) of the Frame.
Properties
Position Properties

Variables

coords

local coords

Contains the Frame’s user-defined coordinates.

abs_coords

local abs_coords

Contains the Frame’s generated, window coordinates.

content_coords

local content_coords

Contains the Frame’s generated, Content Rectangle coordinates.

Functions

updateAbsolute

local function updateAbsolute ()

Generates the absolute coordinates (abs_coords) of the Frame.  Also used to generate the content coordinates (content_coords).

Properties

Position Properties

CoordinatesGets and sets the relative (user-defined) coordinates (coords) of the Frame.
AbsoluteReturns the coordinates of the Frame within the Mudlet window (abs_coords).
ContentReturns the coordinates of the Content Rectangle within the Mudlet window (content_coords).
XGets and sets the relative (user-defined) x value of the Frame.
YGets and sets the relative (user-defined) y value of the Frame.
AbsoluteXReturns the X value of the Frame within the Mudlet window.
AbsoluteYReturns the Y value of the Frame within the Mudlet window.
ContentXReturns the X value of the Content Rectangle within the Mudlet window.
ContentYReturns the Y value of the Content Rectangle within the Mudlet window.
local function new (_,
frame,
init_x,
init_y,
is_first)
Defines the primary container for Vyzor Components.
local coords
Contains the Frame’s user-defined coordinates.
local abs_coords
Contains the Frame’s generated, window coordinates.
local content_coords
Contains the Frame’s generated, Content Rectangle coordinates.
local function updateAbsolute ()
Generates the absolute coordinates (abs_coords) of the Frame.
This is the primary Vyzor Frame, responsible for managing all other Frames.
Close