DxGetBlendMode: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 14: Line 14:
*'''add'''
*'''add'''
*'''modulate_add'''
*'''modulate_add'''
*'''overwrite'''


==Example==  
==Example==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
TODO
addCommandHandler("myBlendMode", function()
    outputChatBox( dxGetBlendMode() )
end)
</syntaxhighlight>
</syntaxhighlight>


Line 25: Line 28:
==See Also==
==See Also==
{{Drawing_functions}}
{{Drawing_functions}}
[[hu:dxGetBlendMode]]

Latest revision as of 21:02, 5 April 2020

Accessories-text-editor.png Script Example Missing Function DxGetBlendMode needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.


This function returns the current blend mode for the dxDraw functions. The blend mode is set using dxSetBlendMode

Syntax

string dxGetBlendMode ( )

Returns

Returns the current blend mode, which can be one of:

  • blend
  • add
  • modulate_add
  • overwrite

Example

addCommandHandler("myBlendMode", function()
    outputChatBox( dxGetBlendMode() )
end)

Requirements

Minimum server version n/a
Minimum client version 1.3.0-9.03782

Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.3.0-9.03782" />

See Also