Graphics::set2dLayer: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
Line 1: Line 1:
Called before drawing stuff.<br><br>Examples:<br>GRAPHICS::_61BB1D9B3A95D802(7);<br>GRAPHICS::DRAW_RECT(0.5, 0.5, 3.0, 3.0, v_4, v_5, v_6, a_0._f172, 0);<br><br>GRAPHICS::_61BB1D9B3A95D802(1);<br>GRAPHICS::DRAW_RECT(0.5, 0.5, 1.5, 1.5, 0, 0, 0, 255, 0);<br><br>Appears to be the layer it's drawn on <br>
Called before drawing stuff.<br><br>Examples:<br>GRAPHICS::_61BB1D9B3A95D802(7);<br>GRAPHICS::DRAW_RECT(0.5, 0.5, 3.0, 3.0, v_4, v_5, v_6, a_0._f172, 0);<br><br>GRAPHICS::_61BB1D9B3A95D802(1);<br>GRAPHICS::DRAW_RECT(0.5, 0.5, 1.5, 1.5, 0, 0, 0, 255, 0);<br><br>Appears to be the layer it's drawn on <br>
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">graphics.set2dLayer(layer);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.graphics.set2dLayer(layer);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''layer:''' int
*'''layer:''' int
Line 8: Line 8:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Graphics_function_c}}
{{Graphics_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 21:13, 6 May 2017

Called before drawing stuff.

Examples:
GRAPHICS::_61BB1D9B3A95D802(7);
GRAPHICS::DRAW_RECT(0.5, 0.5, 3.0, 3.0, v_4, v_5, v_6, a_0._f172, 0);

GRAPHICS::_61BB1D9B3A95D802(1);
GRAPHICS::DRAW_RECT(0.5, 0.5, 1.5, 1.5, 0, 0, 0, 255, 0);

Appears to be the layer it's drawn on

Syntax

mp.game.graphics.set2dLayer(layer);

Required Arguments

  • layer: int

Return value

  • Undefined

Example

// todo

See also