DayZ 1.24
Loading...
Searching...
No Matches
ColourClothesLambda Class Reference
Inheritance diagram for ColourClothesLambda:
[legend]
Collaboration diagram for ColourClothesLambda:
[legend]

Private Member Functions

void ColourClothesLambda (EntityAI old_item, string new_item_type, PlayerBase player, int rr, int gg, int bb, int aa)
 
override void CopyOldPropertiesToNew (notnull EntityAI old_item, EntityAI new_item)
 

Private Attributes

int r
 
int g
 
int b
 
int a
 

Detailed Description

Definition at line 532 of file Barrel_ColorBase.c.

Constructor & Destructor Documentation

◆ ColourClothesLambda()

void ColourClothesLambda::ColourClothesLambda ( EntityAI old_item,
string new_item_type,
PlayerBase player,
int rr,
int gg,
int bb,
int aa )
inlineprivate

Definition at line 535 of file Barrel_ColorBase.c.

References a, b, g, and r.

Member Function Documentation

◆ CopyOldPropertiesToNew()

override void ColourClothesLambda::CopyOldPropertiesToNew ( notnull EntityAI old_item,
EntityAI new_item )
inlineprivate

Definition at line 538 of file Barrel_ColorBase.c.

539 {
540 super.CopyOldPropertiesToNew(old_item, new_item);
541
542 //Print("ColourClothesLambda::OnCreated object=" + new_item);
544 if (new_item)
545 {
546 new_item.SetObjectTexture(new_item.GetHiddenSelectionsData().GetHiddenSelectionIndex("personality"), MiscGameplayFunctions.GetColorString(r, g, b, a));
547
548 //nitem.SetItemVariableString("varColor", color); //SYNCFAIL
549 ib.SetColor(r * 255, g * 255, b * 255, a * 255);
550 }
551 }

References a, b, g, and r.

Member Data Documentation

◆ a

int ColourClothesLambda::a
private

Definition at line 534 of file Barrel_ColorBase.c.

Referenced by ColourClothesLambda(), and CopyOldPropertiesToNew().

◆ b

int ColourClothesLambda::b
private

Definition at line 534 of file Barrel_ColorBase.c.

Referenced by ColourClothesLambda(), and CopyOldPropertiesToNew().

◆ g

int ColourClothesLambda::g
private

Definition at line 534 of file Barrel_ColorBase.c.

Referenced by ColourClothesLambda(), and CopyOldPropertiesToNew().

◆ r

int ColourClothesLambda::r
private

Definition at line 534 of file Barrel_ColorBase.c.

Referenced by ColourClothesLambda(), and CopyOldPropertiesToNew().


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