Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
Chat Class Reference

channel type, possible values CCSystem(1) CCAdmin(2) CCDirect(4) CCMegaphone(8) CCTransmitter(16) CCPublicAddressSystem(32) CCBattlEye(64) More...

Protected Member Functions

void Chat ()
void ~Chat ()
void Add (ChatMessageEventParams params)
void AddInternal (ChatMessageEventParams params)
void Clear ()
void Destroy ()
void Init (Widget root_widget)

Protected Attributes

int m_LastLine
int m_LineHeight
ref array< ref ChatLinem_Lines
Widget m_RootWidget

Private Attributes

const int LINE_COUNT = 12

Detailed Description

channel type, possible values CCSystem(1) CCAdmin(2) CCDirect(4) CCMegaphone(8) CCTransmitter(16) CCPublicAddressSystem(32) CCBattlEye(64)

Definition at line 14 of file chat.c.

Constructor & Destructor Documentation

◆ Chat()

void Chat ( )
inlineprotected

Definition at line 23 of file chat.c.

References m_Lines.

◆ ~Chat()

void ~Chat ( )
inlineprotected

Definition at line 28 of file chat.c.

References Destroy().

Member Function Documentation

◆ Add()

void Add ( ChatMessageEventParams params)
inlineprotected

Definition at line 68 of file chat.c.

References AddInternal(), Math::Clamp(), g_Game, and Print().

◆ AddInternal()

void AddInternal ( ChatMessageEventParams params)
inlineprotected

Definition at line 127 of file chat.c.

References LINE_COUNT, m_LastLine, m_LineHeight, m_Lines, ChatLine::m_RootWidget, ChatLine::Set(), x, and y.

Referenced by Add().

◆ Clear()

void Clear ( )
inlineprotected

Definition at line 60 of file chat.c.

References LINE_COUNT, and m_Lines.

◆ Destroy()

void Destroy ( )
inlineprotected

Definition at line 55 of file chat.c.

References m_Lines.

Referenced by ~Chat(), and Init().

◆ Init()

void Init ( Widget root_widget)
inlineprotected

Definition at line 33 of file chat.c.

References Destroy(), LINE_COUNT, m_LastLine, m_LineHeight, m_Lines, and m_RootWidget.

Field Documentation

◆ LINE_COUNT

const int LINE_COUNT = 12
private

Definition at line 16 of file chat.c.

Referenced by AddInternal(), Clear(), and Init().

◆ m_LastLine

int m_LastLine
protected

Definition at line 20 of file chat.c.

Referenced by AddInternal(), and Init().

◆ m_LineHeight

int m_LineHeight
protected

Definition at line 19 of file chat.c.

Referenced by AddInternal(), and Init().

◆ m_Lines

ref array<ref ChatLine> m_Lines
protected

Definition at line 21 of file chat.c.

Referenced by Chat(), AddInternal(), Clear(), Destroy(), and Init().

◆ m_RootWidget

Widget m_RootWidget
protected

Definition at line 18 of file chat.c.

Referenced by Init().


The documentation for this class was generated from the following file:
  • F:/Games/Dayz/scripts/5_mission/gui/chat/chat.c