Mask Material
Last updated
Last updated
Updated for version 3.38.
The module is inherited from ItemModuleBase. So base parameters can be found there.
This modules let's you add mask materials.
The name of the module you use as the meta of the module definition is 'MaskMaterial' or 'MaskMaterialModule' if _force_search
is set to true in the module definition.
<MaskMaterial ...>
Parameter | Type | Description |
---|---|---|
And any other tweakdata value. There are more that are not listed here yet.
The icon will be stored in guis/dlcs/mods/textures/pd2/blackmarket/icons/materials and will be named id
.texture You will then need to add it using AddFiles.
This example is what you would put inside your main node within your mod config
This will add the mask material bubblewrap
. You will still need to localize the name of the material. In this case material_bubblewrap_title
will need to be localized using LocalizationModule. And add the texture which is currently units/mods/matcaps/matcap_bubblewrap_df
and icon through AddFiles
Download template here
id
String
The ID of the material
texture
String
The path of the material's texture. You'll need to load it through AddFiles. Defaults to units/mods/matcaps/id
_df
global_value
String
For packs of mods, a global id assigned to all. A nice way to label your mods. You'll still have to create the global value through GlobalValueModule
material_amount
Integer
How the material is applied to the mask. Set to 0 to have it tile across the mask. Remove it to have it strech over the mask
name_id
String
A localization ID for the pattern (Defaults to material_ + id
+ _title)
texture_bundle_folder
String
Optional folder to contain the icon. The path will be guis/dlcs/ texture_bundle_folder
/textures/pd2/blackmarket/icons/materials/id
. Defaults to mods with ver="2"
ver
Number
Version of the module. 2 makes texture_bundle_folder
default to mods