Radar: Difference between revisions
Line 23: | Line 23: | ||
=== SetSelColor === | === SetSelColor === | ||
'''Definition:'''<br> | '''Definition:'''<br> | ||
SetSelColor() -> nil | SetSelColor(int r, g, b) -> nil | ||
<br><br> | <br><br> | ||
'''Description:''' <br> | '''Description:''' <br> | ||
Set targetbox color of the currently selected object. | |||
<br><br> | <br><br> | ||
'''Arguments:''' | '''Arguments:'''<br> | ||
'''r''' red component of color (0-255). nil is interpreted as 0<br> | |||
'''g''' green component<br> | |||
'''b''' blue component | |||
<br><br> | <br><br> | ||
'''Returns:''' | '''Returns:''' | ||
<br><br> | <br><br> | ||
'''Example:''' | '''Example:''' | ||
<source lang="lua">radar.SetSelColor(255, 0, 0) -- turns the target box red</source> | |||
<br><br> | <br><br> | ||
=== HideRadar === | === HideRadar === |
Revision as of 23:42, 11 August 2008
Functions for miscellaneous radar stuffs.
Functions
Definition:
SetNavDestinationArrowIconSize() -> nil
Description:
Set the size of the arrows on the wormhole indicator on the HUD.
Arguments:
?
Returns:
?
Example:
SetSelColor
Definition:
SetSelColor(int r, g, b) -> nil
Description:
Set targetbox color of the currently selected object.
Arguments:
r red component of color (0-255). nil is interpreted as 0
g green component
b blue component
Returns:
Example:
<source lang="lua">radar.SetSelColor(255, 0, 0) -- turns the target box red</source>
HideRadar
Definition:
HideRadar() -> nil
Description:
Hide the radar.
Arguments:
?
Returns:
?
Example:
ShowRadar
Definition:
ShowRadar() -> nil
Description:
Show the radar.
Arguments:
?
Returns:
?
Example:
SetRadarSelection
Definition:
SetRadarSelection(int nodeid, int objectid) -> nil
Description:
Change targets.
Arguments:
nodeid nodeid of the object you want to target (2 for most things except ships).
objectid objectid of the object you want to target.
Returns:
Example:
SetAimDirIconSize
Definition:
SetAimDirIconSize() -> nil
Description:
(Presumably) change size of the mouselook reticle.
Arguments:
?
Returns:
?
Example:
GetNearestObjectDistance
Definition:
GetNearestObjectDistance() -> nil
Description:
Get distance to the nearest "large" object.
Arguments:
?
Returns:
?
Example:
SetAimDirIconColor
Definition:
SetAimDirIconColor() -> nil
Description:
Change the color of the mouselook reticle?
Arguments:
?
Returns:
?
Example:
Definition:
SetNavpointFontHeight() -> nil
Description:
(Presumably) change the size of the green + on the radar in ion storms.
Arguments:
?
Returns:
?
Example:
SetWormholeIconSize
Definition:
SetWormholeIconSize() -> nil
Description:
(Presumably) change the size of the wormhole icon on the radar.
Arguments:
?
Returns:
?
Example:
SetDestArrows
Definition:
SetDestArrows() -> nil
Description:
(Presumably) change some aspect of the nav destination arrows on the HUD.
Arguments:
?
Returns:
?
Example:
GetRadarSelectionID
Definition:
GetRadarSelectionID() -> int nodeid objectid
Description:
Get nodeid and objectid of targeted object
Arguments:
Returns:
nodeid nodeid of targeted object
objectid objectid of targeted object
Example:
SetAimDirIcon
Definition:
SetAimDirIcon() -> nil
Description:
(Presumably) set the icon for hud_new_aimdir.png (mouselook reticle).
Arguments:
?
Returns:
?
Example: