Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
ItemOpticsType Class Reference
Inheritance diagram for ItemOpticsType:
ItemBaseType

Private Member Functions

proto native int FindOptics2DSelection (string selectionName, bool ignoreCase=true)
 Finds selection index by name.
proto native bool IsUsingOptics2DModel ()
 Whether 2D model (modelOptics) is set and used for this type.
proto native void SetOptics2DMaterial (int index, string materialName)
 Set optics 2D material at provided selection index.
proto native void SetOptics2DTexture (int index, string textureName)
 Set optics 2D model texture at provided selection index.

Detailed Description

Definition at line 41 of file inventoryitemtype.c.

Member Function Documentation

◆ FindOptics2DSelection()

proto native int FindOptics2DSelection ( string selectionName,
bool ignoreCase = true )
private

Finds selection index by name.

Parameters
selectionNameName of selection to find
ignoreCaseWhether search ignores case sensitivity
Returns
Index of selection or -1 when none.

Referenced by ItemOptics::InitReddotData().

◆ IsUsingOptics2DModel()

proto native bool IsUsingOptics2DModel ( )
private

Whether 2D model (modelOptics) is set and used for this type.

Referenced by ItemOptics::IsUsingOptics2DModel().

◆ SetOptics2DMaterial()

proto native void SetOptics2DMaterial ( int index,
string materialName )
private

Set optics 2D material at provided selection index.

Parameters
indexSelection index
materialNameName of material to set (/dz/.../*.rvmat)

Referenced by ItemOptics::OnDrawOptics2D().

◆ SetOptics2DTexture()

proto native void SetOptics2DTexture ( int index,
string textureName )
private

Set optics 2D model texture at provided selection index.

Parameters
indexSelection index
textureNameName of texture to set (/dz/.../*.paa)

Referenced by ItemOptics::OnDrawOptics2D().


The documentation for this class was generated from the following file: