Radar: Difference between revisions
From Vendetta Lua
Jump to navigationJump to search
Added to category. |
Added new functions and updated display to use Template:Function |
||
Line 3: | Line 3: | ||
== Functions == | == Functions == | ||
== | {{Function | ||
| name = GetNearestObjectDistance | |||
| desc = Get distance to the nearest "large" object. | |||
| ret1_name = | |||
| ret1_type = number | |||
| ret1_desc = | |||
| notes = | |||
}} | |||
{{Function | |||
| name = GetRadarSelectionID | |||
| desc = Get [[nodeid]] and [[objectid]] of targeted object | |||
| ret1_name = nodeid | |||
| ret1_type = number | |||
| ret1_desc = [[nodeid]] of targeted object | |||
| ret2_name = objectid | |||
| ret2_type = number | |||
| ret2_desc = [[objectid]] of targeted object | |||
| notes = | |||
}} | |||
{{Function | |||
| name = Hide3000mNavpoint | |||
| desc = | |||
| arg1_name = ? | |||
| arg1_type = | |||
| arg1_desc = | |||
| arg1_opt = | |||
| ret1_name = ? | |||
| ret1_type = | |||
| ret1_desc = | |||
| notes = | |||
}} | |||
== | {{Function | ||
| name = HideRadar | |||
| desc = Hide the radar. | |||
| ret1_name = | |||
| ret1_type = nil | |||
| ret1_desc = | |||
| notes = | |||
}} | |||
=== | {{Function | ||
| name = IsObjectOccluded | |||
| desc = | |||
| arg1_name = ? | |||
| arg1_type = | |||
| arg1_desc = | |||
| arg1_opt = | |||
| ret1_name = ? | |||
? | | ret1_type = | ||
| ret1_desc = | |||
| notes = | |||
}} | |||
== | {{Function | ||
| name = SetAimDirIcon | |||
| desc = (Presumably) set the icon for hud_new_aimdir.png (mouselook reticle). | |||
| arg1_name = ? | |||
| arg1_type = | |||
| arg1_desc = | |||
| arg1_opt = | |||
| ret1_name = ? | |||
| ret1_type = | |||
| ret1_desc = | |||
| notes = | |||
}} | |||
== | {{Function | ||
| name = SetAimDirIconColor | |||
| desc = Change the color of the mouselook reticle? | |||
| arg1_name = ? | |||
| arg1_type = | |||
Change | | arg1_desc = | ||
| arg1_opt = | |||
| ret1_name = ? | |||
| ret1_type = | |||
| ret1_desc = | |||
| notes = | |||
}} | |||
{{Function | |||
| name = SetAimDirIconSize | |||
| desc = (Presumably) change size of the mouselook reticle. | |||
| arg1_name = ? | |||
| arg1_type = | |||
(Presumably) change size of the mouselook reticle. | | arg1_desc = | ||
| arg1_opt = | |||
| ret1_name = ? | |||
| ret1_type = | |||
| ret1_desc = | |||
| notes = | |||
}} | |||
== | {{Function | ||
| name = SetDestArrows | |||
| desc = (Presumably) change some aspect of the nav destination arrows on the HUD. | |||
| arg1_name = ? | |||
| arg1_type = | |||
| arg1_desc = | |||
| arg1_opt = | |||
| ret1_name = ? | |||
| ret1_type = | |||
| ret1_desc = | |||
| notes = | |||
}} | |||
=== | {{Function | ||
| name = SetHUDIcon | |||
| desc = | |||
| arg1_name = ? | |||
| arg1_type = | |||
| arg1_desc = | |||
| arg1_opt = | |||
| ret1_name = ? | |||
| ret1_type = | |||
| ret1_desc = | |||
| notes = | |||
}} | |||
=== | {{Function | ||
| name = SetNavDestinationArrowIconSize | |||
| desc = | |||
| arg1_name = ? | |||
| arg1_type = | |||
| arg1_desc = | |||
| arg1_opt = | |||
| ret1_name = ? | |||
? | | ret1_type = | ||
| ret1_desc = | |||
| notes = | |||
}} | |||
== | {{Function | ||
| name = SetNavpointFontHeight | |||
| desc = (Presumably) change the size of the green + on the radar in ion storms. | |||
| arg1_name = ? | |||
| arg1_type = | |||
(Presumably) change the size of the | | arg1_desc = | ||
| arg1_opt = | |||
| ret1_name = ? | |||
| ret1_type = | |||
| ret1_desc = | |||
| notes = | |||
}} | |||
=== | {{Function | ||
| name = SetRadarSelection | |||
| desc = Change targets. | |||
| arg1_name = nodeid | |||
| arg1_type = number | |||
| arg1_desc = [[nodeid]] of the object you want to target (2 for most things except ships) | |||
| arg1_opt = | |||
| arg2_name = objectid | |||
| arg2_type = number | |||
| arg2_desc = [[objectid]] of the object you want to target. | |||
| arg2_opt = | |||
| ret1_name = | |||
| ret1_type = nil | |||
| ret1_desc = | |||
| notes = | |||
}} | |||
=== | {{Function | ||
| name = SetRadarSelectionByPoint | |||
| desc = | |||
< | | arg1_name = ? | ||
| arg1_type = | |||
| arg1_desc = | |||
| arg1_opt = | |||
| ret1_name = ? | |||
| ret1_type = | |||
| ret1_desc = | |||
| notes = | |||
}} | |||
{{Function | |||
| name = SetSelColor | |||
| desc = Set targetbox color of the currently selected object. | |||
| arg1_name = r | |||
| arg1_type = number | |||
| arg1_desc = red component of color (0-255). nil is interpreted as 0 | |||
| arg1_opt = | |||
| arg2_name = g | |||
| arg2_type = number | |||
| arg2_desc = green component | |||
| arg2_opt = | |||
| arg3_name = b | |||
| arg3_type = number | |||
| arg3_desc = blue component | |||
| arg3_opt = | |||
| ret1_name = | |||
| ret1_type = nil | |||
| ret1_desc = | |||
| notes = <source lang="lua">radar.SetSelColor(255, 0, 0) -- turns the target box red</source> | |||
}} | |||
{{Function | |||
| name = SetViewport | |||
| desc = | |||
| arg1_name = ? | |||
| arg1_type = | |||
| arg1_desc = | |||
| arg1_opt = | |||
| ret1_name = ? | |||
| ret1_type = | |||
| ret1_desc = | |||
| notes = | |||
}} | |||
{{Function | |||
| name = SetWormholeIconSize | |||
| desc = (Presumably) change the size of the wormhole icon on the radar. | |||
| arg1_name = ? | |||
| arg1_type = | |||
| arg1_desc = | |||
| arg1_opt = | |||
| ret1_name = ? | |||
| ret1_type = | |||
| ret1_desc = | |||
| notes = | |||
}} | |||
{{Function | |||
| name = Show3000mNavpoint | |||
| desc = | |||
| arg1_name = ? | |||
| arg1_type = | |||
| arg1_desc = | |||
| arg1_opt = | |||
| ret1_name = ? | |||
| ret1_type = | |||
| ret1_desc = | |||
| notes = | |||
}} | |||
{{Function | |||
| name = ShowRadar | |||
| desc = Show the radar. | |||
| ret1_name = | |||
| ret1_type = nil | |||
| ret1_desc = | |||
| notes = | |||
}} | |||
[[Category:Tables]] | [[Category:Tables]] |
Revision as of 09:12, 14 January 2012
Functions for miscellaneous radar stuffs.
Functions
GetNearestObjectDistance
Type | Name | Description |
---|---|---|
number |
GetRadarSelectionID
Type | Name | Description |
---|---|---|
number | nodeid | nodeid of targeted object |
number | objectid | objectid of targeted object |
Type | Name | Description |
---|---|---|
? |
Type | Name | Description |
---|---|---|
? |
HideRadar
Type | Name | Description |
---|---|---|
nil |
IsObjectOccluded
Type | Name | Description |
---|---|---|
? |
Type | Name | Description |
---|---|---|
? |
SetAimDirIcon
Type | Name | Description |
---|---|---|
? |
Type | Name | Description |
---|---|---|
? |
SetAimDirIconColor
Type | Name | Description |
---|---|---|
? |
Type | Name | Description |
---|---|---|
? |
SetAimDirIconSize
Type | Name | Description |
---|---|---|
? |
Type | Name | Description |
---|---|---|
? |
SetDestArrows
Type | Name | Description |
---|---|---|
? |
Type | Name | Description |
---|---|---|
? |
SetHUDIcon
Type | Name | Description |
---|---|---|
? |
Type | Name | Description |
---|---|---|
? |
Type | Name | Description |
---|---|---|
? |
Type | Name | Description |
---|---|---|
? |
Type | Name | Description |
---|---|---|
? |
Type | Name | Description |
---|---|---|
? |
SetRadarSelection
Type | Name | Description |
---|---|---|
number | nodeid | nodeid of the object you want to target (2 for most things except ships) |
number | objectid | objectid of the object you want to target. |
Type | Name | Description |
---|---|---|
nil |
SetRadarSelectionByPoint
Type | Name | Description |
---|---|---|
? |
Type | Name | Description |
---|---|---|
? |
SetSelColor
Type | Name | Description |
---|---|---|
number | r | red component of color (0-255). nil is interpreted as 0 |
number | g | green component |
number | b | blue component |
Type | Name | Description |
---|---|---|
nil |
SetViewport
Type | Name | Description |
---|---|---|
? |
Type | Name | Description |
---|---|---|
? |
SetWormholeIconSize
Type | Name | Description |
---|---|---|
? |
Type | Name | Description |
---|---|---|
? |
Type | Name | Description |
---|---|---|
? |
Type | Name | Description |
---|---|---|
? |
ShowRadar
Type | Name | Description |
---|---|---|
nil |