Project Zomboid Lua Docs 29123
Unofficial documentation for Project Zomboid's Lua
Loading...
Searching...
No Matches
WorldMapEditorLocationControl Class Reference
Inheritance diagram for WorldMapEditorLocationControl:
ISBaseObject

Public Member Functions

void setLocation (number x, number y)
boolean hitTest (number x, number y)
void startDrag ()
void onMouseMove (number mx, number my)
void cancelDrag ()
number snap (number xy)
void render ()
 WorldMapEditorLocationControl (WorldMapEditor editor)
Public Member Functions inherited from ISBaseObject
void initialise ()
ISBaseObject derive (string type)
void addEventListener (string _event, function _callback, unknown _target)
void removeEventListener (string _event, function _callback)
void triggerEvent (string _event, unknown ...)
void clearEventListeners ()
 ISBaseObject ()

Public Attributes

number x
number y
number originalX
number originalY
WorldMapEditor editor
WorldMapEditor mapUI
UIWorldMapV1 mapAPI
string snapMode
Public Attributes inherited from ISBaseObject
string Type
table< string, table< function, unknown > > __eventListeners

Constructor & Destructor Documentation

◆ WorldMapEditorLocationControl()

WorldMapEditorLocationControl::WorldMapEditorLocationControl ( WorldMapEditor editor)

Member Function Documentation

◆ cancelDrag()

void WorldMapEditorLocationControl::cancelDrag ( )

◆ hitTest()

boolean WorldMapEditorLocationControl::hitTest ( number x,
number y )

◆ onMouseMove()

void WorldMapEditorLocationControl::onMouseMove ( number mx,
number my )

◆ render()

void WorldMapEditorLocationControl::render ( )

◆ setLocation()

void WorldMapEditorLocationControl::setLocation ( number x,
number y )

◆ snap()

number WorldMapEditorLocationControl::snap ( number xy)

◆ startDrag()

void WorldMapEditorLocationControl::startDrag ( )

Member Data Documentation

◆ editor

WorldMapEditor WorldMapEditorLocationControl::editor

◆ mapAPI

UIWorldMapV1 WorldMapEditorLocationControl::mapAPI

◆ mapUI

WorldMapEditor WorldMapEditorLocationControl::mapUI

◆ originalX

number WorldMapEditorLocationControl::originalX

◆ originalY

number WorldMapEditorLocationControl::originalY

◆ snapMode

string WorldMapEditorLocationControl::snapMode

◆ x

number WorldMapEditorLocationControl::x

◆ y

number WorldMapEditorLocationControl::y

The documentation for this class was generated from the following file: