dmc-kompatible Documentation

work in progress

If you only want to override one but not the other namespace, you can modify the import like so:

{code:language=none|title=Import DMC Kompatible} local display, _ = require( "dmc_kompatible" )()

or

local _, native = require( "dmc_kompatible" )()





## `dmc_library.cfg` Configurations


If you want to use the config file, first read [Quick Guide - dmc_library.cfg].
`dmc_kompatible` has configuation flags which can be added to the config file. ### ACTIVATE_REFERENCE This determines whether to override `setReferencePoint` methods. Possibilities include `true`/`false`. By default the value is `true`.
[DMC_KOMPATIBLE]

ACTIVATE_REFERENCE = true



### ACTIVATE_FILLCOLOR

This determines whether to override `setFillColor` methods.

Possibilities include `true`/`false`.

By default the value is `true`.
[DMC_KOMPATIBLE]

ACTIVATE_FILLCOLOR = true




### ACTIVATE_STROKECOLOR

This determines whether to override `setStrokeColor` methods.

Possibilities include `true`/`false`.

By default the value is `true`.
[DMC_KOMPATIBLE]

ACTIVATE_STROKECOLOR = true




### MAKE_GLOBAL

This will make the module override all access to `display` and `native` objects. You can try this first, which means that you will only need a single import in `main.lua`, but its success depends on how _other_ modules were written and access the two native modules.

You can try this option without needing the config file by editing the last few lines in the module:

{code:language=none|title=Test GLOBAL config}
--== Make Global

-- if dkd.make_global then << comment this out, add the next line
if true then
    _G.display = Display
    _G.native = Native
end