DayZ 1.24
Loading...
Searching...
No Matches
SoftSkillsManager.c File Reference

Go to the source code of this file.

Classes

class  SoftSkillsManager
 

Functions

void SoftSkillManagerDebug (SoftSkillsManager softskill_manager)
 
void ~SoftSkillManagerDebug ()
 
SoftSkillsManager GetActiveSoftSkillManager ()
 
void OnUpdate ()
 

Variables

class SoftSkillsManager m_SoftSkillManager
 
ref Widget m_PanelSoftSkills
 
TextWidget SpecialtyTotal
 
TextWidget SpecialtyChange
 
TextWidget ComponentBonusBefore
 
TextWidget ComponentBonusAfter
 
TextWidget GeneralBonusBefore
 
TextWidget GeneralBonusAfter
 
TextWidget CoolDown
 
TextWidget IsCoolDown
 

Function Documentation

◆ GetActiveSoftSkillManager()

SoftSkillsManager GetActiveSoftSkillManager ( )

Definition at line 561 of file SoftSkillsManager.c.

562 {
563 return m_SoftSkillManager;
564 }
class SoftSkillsManager m_SoftSkillManager

References m_SoftSkillManager.

Referenced by OnUpdate().

◆ SoftSkillManagerDebug()

void SoftSkillManagerDebug ( SoftSkillsManager softskill_manager)

Definition at line 526 of file SoftSkillsManager.c.

527 {
529 m_PanelSoftSkills = GetGame().GetWorkspace().CreateWidgets("gui/layouts/debug/day_z_hud_debug_softskills.layout");
530
531 GetGame().GetUpdateQueue(CALL_CATEGORY_SYSTEM).Insert(this.OnUpdate);
532
533 Class.CastTo(SpecialtyTotal, m_PanelSoftSkills.FindWidget("SpecialtyTotal"));
534 Class.CastTo(SpecialtyChange, m_PanelSoftSkills.FindWidget("SpecialtyChange"));
535 Class.CastTo(ComponentBonusBefore, m_PanelSoftSkills.FindWidget("ComponentBonusBefore"));
536 Class.CastTo(ComponentBonusAfter, m_PanelSoftSkills.FindWidget("ComponentBonusAfter"));
537 Class.CastTo(GeneralBonusBefore, m_PanelSoftSkills.FindWidget("GeneralBonusBefore"));
538 Class.CastTo(GeneralBonusAfter, m_PanelSoftSkills.FindWidget("GeneralBonusAfter"));
539 Class.CastTo(CoolDown, m_PanelSoftSkills.FindWidget("CoolDown"));
540 Class.CastTo(IsCoolDown, m_PanelSoftSkills.FindWidget("IsCoolDown"));
541
542 m_PanelSoftSkills.Show(true);
543 SpecialtyTotal.Show(true);
544 SpecialtyChange.Show(true);
545 ComponentBonusBefore.Show(true);
546 ComponentBonusAfter.Show(true);
547 GeneralBonusBefore.Show(true);
548 GeneralBonusAfter.Show(true);
549 CoolDown.Show(true);
550 IsCoolDown.Show(true);
551 }
TextWidget SpecialtyTotal
TextWidget SpecialtyChange
TextWidget GeneralBonusAfter
TextWidget CoolDown
TextWidget ComponentBonusAfter
TextWidget IsCoolDown
TextWidget GeneralBonusBefore
TextWidget ComponentBonusBefore
ref Widget m_PanelSoftSkills
Super root of all classes in Enforce script.
Definition EnScript.c:11
proto native CGame GetGame()
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
void OnUpdate()
const int CALL_CATEGORY_SYSTEM
Definition tools.c:8

References CALL_CATEGORY_SYSTEM, Class::CastTo(), ComponentBonusAfter, ComponentBonusBefore, CoolDown, GeneralBonusAfter, GeneralBonusBefore, GetGame(), IsCoolDown, m_PanelSoftSkills, m_SoftSkillManager, OnUpdate(), SpecialtyChange, and SpecialtyTotal.

Referenced by SoftSkillsManager::CreateDebugWindow().

◆ ~SoftSkillManagerDebug()

Definition at line 553 of file SoftSkillsManager.c.

554 {
555 if (GetGame())
556 GetGame().GetUpdateQueue(CALL_CATEGORY_SYSTEM).Remove(this.OnUpdate);
557
558 delete m_PanelSoftSkills;
559 }

References CALL_CATEGORY_SYSTEM, GetGame(), m_PanelSoftSkills, and OnUpdate().

Variable Documentation

◆ ComponentBonusAfter

TextWidget ComponentBonusAfter

Definition at line 520 of file SoftSkillsManager.c.

Referenced by OnUpdate(), and SoftSkillManagerDebug().

◆ ComponentBonusBefore

TextWidget ComponentBonusBefore

Definition at line 519 of file SoftSkillsManager.c.

Referenced by OnUpdate(), and SoftSkillManagerDebug().

◆ CoolDown

TextWidget CoolDown

Definition at line 523 of file SoftSkillsManager.c.

Referenced by OnUpdate(), and SoftSkillManagerDebug().

◆ GeneralBonusAfter

TextWidget GeneralBonusAfter

Definition at line 522 of file SoftSkillsManager.c.

Referenced by OnUpdate(), and SoftSkillManagerDebug().

◆ GeneralBonusBefore

TextWidget GeneralBonusBefore

Definition at line 521 of file SoftSkillsManager.c.

Referenced by OnUpdate(), and SoftSkillManagerDebug().

◆ IsCoolDown

TextWidget IsCoolDown

Definition at line 524 of file SoftSkillsManager.c.

Referenced by OnUpdate(), and SoftSkillManagerDebug().

◆ m_PanelSoftSkills

ref Widget m_PanelSoftSkills

Definition at line 516 of file SoftSkillsManager.c.

Referenced by SoftSkillManagerDebug(), and ~SoftSkillManagerDebug().

◆ m_SoftSkillManager

◆ SpecialtyChange

TextWidget SpecialtyChange

Definition at line 518 of file SoftSkillsManager.c.

Referenced by OnUpdate(), and SoftSkillManagerDebug().

◆ SpecialtyTotal

TextWidget SpecialtyTotal

Definition at line 517 of file SoftSkillsManager.c.

Referenced by OnUpdate(), and SoftSkillManagerDebug().