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

Protected Member Functions

void Clear ()
int ColorNameToColor (string pColorName)
void SetColorByParam (string pParamValue, int pFallback)

Private Member Functions

void ChatLine (Widget root_widget)
void ~ChatLine ()
void Set (ChatMessageEventParams params)
void SetColour (int colour)

Private Attributes

const string ADMIN_PREFIX = "(" + "#STR_MP_MASTER" + ") "
const int ADMIN_TEXT_COLOUR = ARGB(255, 255, 255, 0)
const int DEFAULT_COLOUR = ARGB(255, 255, 255, 255)
const float FADE_IN_DURATION = 0.5
const float FADE_OUT_DURATION = 3
const float FADE_TIMEOUT = 30
const string GAME_PREFIX = "(" + "#layout_chat_game" + ") "
const int GAME_TEXT_COLOUR = ARGB(255, 255, 0, 0)
ref WidgetFadeTimer m_FadeTimer
TextWidget m_NameWidget
Widget m_RootWidget
TextWidget m_TextWidget
ref Timer m_TimeoutTimer
const string RADIO_PREFIX = "(" + "#str_radio" + ") "

Detailed Description

Definition at line 1 of file chatline.c.

Constructor & Destructor Documentation

◆ ChatLine()

void ChatLine ( Widget root_widget)
inlineprivate

◆ ~ChatLine()

void ~ChatLine ( )
inlineprivate

Definition at line 34 of file chatline.c.

References m_TextWidget.

Member Function Documentation

◆ Clear()

void Clear ( )
inlineprotected

Definition at line 130 of file chatline.c.

References m_FadeTimer, m_RootWidget, and m_TimeoutTimer.

◆ ColorNameToColor()

int ColorNameToColor ( string pColorName)
inlineprotected

Definition at line 137 of file chatline.c.

References COLOR_BLUE, COLOR_GREEN, COLOR_RED, and COLOR_YELLOW.

Referenced by SetColorByParam().

◆ Set()

◆ SetColorByParam()

void SetColorByParam ( string pParamValue,
int pFallback )
inlineprotected

Definition at line 119 of file chatline.c.

References ColorNameToColor(), and SetColour().

Referenced by Set().

◆ SetColour()

void SetColour ( int colour)
inlineprivate

Definition at line 113 of file chatline.c.

References m_NameWidget, and m_TextWidget.

Referenced by Set(), and SetColorByParam().

Field Documentation

◆ ADMIN_PREFIX

const string ADMIN_PREFIX = "(" + "#STR_MP_MASTER" + ") "
private

Definition at line 10 of file chatline.c.

Referenced by Set().

◆ ADMIN_TEXT_COLOUR

const int ADMIN_TEXT_COLOUR = ARGB(255, 255, 255, 0)
private

Definition at line 13 of file chatline.c.

Referenced by Set().

◆ DEFAULT_COLOUR

const int DEFAULT_COLOUR = ARGB(255, 255, 255, 255)
private

Definition at line 11 of file chatline.c.

Referenced by Set().

◆ FADE_IN_DURATION

const float FADE_IN_DURATION = 0.5
private

Definition at line 6 of file chatline.c.

Referenced by Set().

◆ FADE_OUT_DURATION

const float FADE_OUT_DURATION = 3
private

Definition at line 5 of file chatline.c.

Referenced by Set().

◆ FADE_TIMEOUT

const float FADE_TIMEOUT = 30
private

Definition at line 4 of file chatline.c.

Referenced by Set().

◆ GAME_PREFIX

const string GAME_PREFIX = "(" + "#layout_chat_game" + ") "
private

Definition at line 9 of file chatline.c.

Referenced by Set().

◆ GAME_TEXT_COLOUR

const int GAME_TEXT_COLOUR = ARGB(255, 255, 0, 0)
private

Definition at line 12 of file chatline.c.

Referenced by Set().

◆ m_FadeTimer

ref WidgetFadeTimer m_FadeTimer
private

Definition at line 20 of file chatline.c.

Referenced by ChatLine(), Clear(), and Set().

◆ m_NameWidget

TextWidget m_NameWidget
private

Definition at line 17 of file chatline.c.

Referenced by ChatLine(), Set(), and SetColour().

◆ m_RootWidget

Widget m_RootWidget
private

Definition at line 16 of file chatline.c.

Referenced by ChatLine(), Chat::AddInternal(), Clear(), and Set().

◆ m_TextWidget

TextWidget m_TextWidget
private

Definition at line 18 of file chatline.c.

Referenced by ChatLine(), ~ChatLine(), Set(), and SetColour().

◆ m_TimeoutTimer

ref Timer m_TimeoutTimer
private

Definition at line 21 of file chatline.c.

Referenced by ChatLine(), Clear(), and Set().

◆ RADIO_PREFIX

const string RADIO_PREFIX = "(" + "#str_radio" + ") "
private

Definition at line 8 of file chatline.c.

Referenced by Set().


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