destroy() | Destroys this object. [...] | |
Destroys this object. [...] | ||
bring_to_front() | Reorder this object so that it is drawn in front of the already existing objects. | |
Reorder this object so that it is drawn in front of the already existing objects. | ||
move_to_back() | Reorder this object so that it is drawn in the back of the already existing objects. | |
Reorder this object so that it is drawn in the back of the already existing objects. | ||
set_dashes(dash_length, gap_length) | Set the length of the dashes and the length of the gaps in this line. | |
Set the length of the dashes and the length of the gaps in this line. | ||
set_corners(left_top, right_bottom) | Set the corners of the rectangle with this id. | |
Set the corners of the rectangle with this id. | ||
id | :: R uint64 | Unique identifier of this render object. |
Unique identifier of this render object. | ||
type | :: R "text" or "line" or "circle" or "rectangle" or "arc" or "polygon" or "sprite" or "light" or "animation" | Type of this object. |
Type of this object. | ||
surface | :: R LuaSurface | Surface this object is rendered on. |
Surface this object is rendered on. | ||
time_to_live | :: RW uint | Time to live of this object. [...] |
Time to live of this object. [...] | ||
forces | :: RW array[LuaForce] or ForceSet? | Forces for which this object is rendered or |
Forces for which this object is rendered or | ||
players | :: RW array[LuaPlayer] or array[PlayerIdentification] ? | Players for which this object is visible or |
Players for which this object is visible or | ||
visible | :: RW boolean | If this object is rendered to anyone at all. |
If this object is rendered to anyone at all. | ||
draw_on_ground | :: RW boolean | If this object is being drawn on the ground, under most entities and sprites. |
If this object is being drawn on the ground, under most entities and sprites. | ||
only_in_alt_mode | :: RW boolean | If this object is only rendered in alt-mode. |
If this object is only rendered in alt-mode. | ||
use_target_orientation | :: RW boolean | If this object uses the target orientation. |
If this object uses the target orientation. | ||
color | :: RW Color | Color or tint of the object. |
Color or tint of the object. | ||
width | :: RW float | Width of the object. [...] |
Width of the object. [...] | ||
from | :: RW ScriptRenderTarget | Where this line is drawn from. |
Where this line is drawn from. | ||
to | :: RW ScriptRenderTarget | Where this line is drawn to. |
Where this line is drawn to. | ||
dash_length | :: RW double | Dash length of this line. |
Dash length of this line. | ||
gap_length | :: RW double | Length of the gaps in this line. |
Length of the gaps in this line. | ||
target | :: RW ScriptRenderTarget | Where this object is drawn. [...] |
Where this object is drawn. [...] | ||
orientation | :: RW RealOrientation | Orientation of this object. [...] |
Orientation of this object. [...] | ||
scale | :: RW double | Scale of the text or light. |
Scale of the text or light. | ||
text | :: RW LocalisedString | Text that is displayed by this text object. |
Text that is displayed by this text object. | ||
font | :: RW string | Font of this text. |
Font of this text. | ||
alignment | :: RW TextAlign | Alignment of this text. |
Alignment of this text. | ||
vertical_alignment | :: RW VerticalTextAlign | Vertical alignment of this text. |
Vertical alignment of this text. | ||
scale_with_zoom | :: RW boolean | If this text scales with player zoom. |
If this text scales with player zoom. | ||
use_rich_text | :: RW boolean | If this text parses rich text tags. |
If this text parses rich text tags. | ||
filled | :: RW boolean | If this circle or rectangle is filled. |
If this circle or rectangle is filled. | ||
radius | :: RW double | Radius of this circle. |
Radius of this circle. | ||
left_top | :: RW ScriptRenderTarget | Where top left corner of this rectangle is drawn. |
Where top left corner of this rectangle is drawn. | ||
right_bottom | :: RW ScriptRenderTarget | Where bottom right corner of this rectangle is drawn. |
Where bottom right corner of this rectangle is drawn. | ||
max_radius | :: RW double | Radius of the outer edge of this arc. |
Radius of the outer edge of this arc. | ||
min_radius | :: RW double | Radius of the inner edge of this arc. |
Radius of the inner edge of this arc. | ||
start_angle | :: RW float | Where this arc starts. [...] |
Where this arc starts. [...] | ||
angle | :: RW float | Angle of this arc. [...] |
Angle of this arc. [...] | ||
vertices | :: RW array[ScriptRenderTarget] | Vertices of this polygon. |
Vertices of this polygon. | ||
sprite | :: RW SpritePath | Sprite of the sprite or light. |
Sprite of the sprite or light. | ||
x_scale | :: RW double | Horizontal scale of this sprite or animation. |
Horizontal scale of this sprite or animation. | ||
y_scale | :: RW double | Vertical scale of this sprite or animation. |
Vertical scale of this sprite or animation. | ||
render_layer | :: RW RenderLayer | Render layer of this sprite or animation. |
Render layer of this sprite or animation. | ||
orientation_target | :: RW ScriptRenderTarget? | Target to which this object rotates so that it faces the target. [...] |
Target to which this object rotates so that it faces the target. [...] | ||
oriented_offset | :: RW Vector | Offsets the center of the sprite or animation if |
Offsets the center of the sprite or animation if | ||
intensity | :: RW float | Intensity of this light. |
Intensity of this light. | ||
minimum_darkness | :: RW float | Minimum darkness at which this light is rendered. |
Minimum darkness at which this light is rendered. | ||
oriented | :: RW boolean | If this light is rendered with the same orientation as the target entity. [...] |
If this light is rendered with the same orientation as the target entity. [...] | ||
animation | :: RW string | Animation prototype name of this animation. |
Animation prototype name of this animation. | ||
animation_speed | :: RW double | Animation speed of this animation. [...] |
Animation speed of this animation. [...] | ||
animation_offset | :: RW double | Animation offset of this animation. [...] |
Animation offset of this animation. [...] | ||
valid | :: R boolean | Is this object valid? [...] |
Is this object valid? [...] | ||
object_name | :: R string | The class name of this object. [...] |
The class name of this object. [...] |
left_top | :: ScriptRenderTarget | |
right_bottom | :: ScriptRenderTarget |
"text"
or "line"
or "circle"
or "rectangle"
or "arc"
or "polygon"
or "sprite"
or "light"
or "animation"