Avorion Script API Documentation

GalaxyMap

This is the galaxy map UI. Whenever input events are passed to the Galaxy Map, they are first passed to the "onGalaxyMapKeyboardEvent" and "onGalaxyMapMouseButtonEvent" etc. callbacks. If they aren't consumed by those, they are passed through the UI. If they aren't consumed by the UI, they are passed to the "onGalaxyMapKeyboardDown", "onGalaxyMapMouseDown", "onGalaxyMapMouseMove", etc. callbacks.

This object is only available on the client.

function GalaxyMap()

Returns

A new instance of GalaxyMap

property bool showAllianceInfo
property bool showBackgroundShipAreas
property bool showCustomColorLayer
property bool showFactionLayer
property bool showGates
property bool showNotes
property bool showWormholes
property bool visible[read-only]

function var clearCustomColors()

Returns

nothing

function UIContainer createContainer()

function Window createWindow(Rect rect)

function int, int getCoordinatesAtScreenPosition(vec2 coordinates)

function float, float getCoordinatesScreenPosition(ivec2 coordinates)

function int, int getHoveredCoordinates()

function int, int getSelectedCoordinates()

function float, float getSelectedCoordinatesScreenPosition()

function var hide()

Returns

nothing

function var lookAt(int x, int y)

Returns

nothing

function var lookAtSmooth(int x, int y)

Returns

nothing

function var removeHighlightedArea(var key)

Returns

nothing

function var resetHighlightedAreas()

Returns

nothing

function var resetJumpRangeArea(string name)

Returns

nothing

function var setCustomColors()

Returns

nothing

function var setHighlightedArea(vec2 lower, vec2 upper, var color, var key)

Returns

nothing

function var setHighlightedSectors(table_t areaIn, var key)

Returns

nothing

function var setJumpRangeArea(string name, ivec2 center, float radius, bool canPassBlocked, var includeGateConnections, var color, bool dotted)

Returns

nothing

function var setSelectedCoordinates(int x, int y)

Returns

nothing

function var show(int x, int y)

Returns

nothing

function var switchToCraft(int x, int y, int factionIndex, string shipName)

Returns

nothing

function var switchToSector(int x, int y)

Returns

nothing

Overview
Home Functions Search
Search:

This is the official documentation for the scripting API of Avorion. This documentation is automatically generated and not necessarily complete. Depending on the context in which functions exist, some documentation such as descriptions, return values or variable names or types may be missing.

Work in Progress. Documentation of Avorion Version: 2.5.7 c8e4beec84f7