DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ SetContentValues()

void HudDebugWinBase::SetContentValues ( )
inlineprivate

См. определение в файле HudDebugWinCharStomach.c строка 99

100 {
101 PluginDeveloperSync developer_sync = PluginDeveloperSync.Cast( GetPlugin( PluginDeveloperSync ) );
102
103 //clear window
104 ClearValues();
105 int count = developer_sync.m_PlayerStomachSynced.Count() - 2; // dont iterate appended params (stomach volume and temperature)
106
107 for ( int i = 0; i < count; i++ )
108 {
109 //new Param5<int,int,int,float,float>(id, food_stage, agents, amount,temperature);
110 Param5<int,int,int,float, float> p5 = Param5<int,int,int,float,float>.Cast(developer_sync.m_PlayerStomachSynced.Get(i));
111 AddValue( PlayerStomach.GetClassnameFromID(p5.param1), p5.param2, p5.param3, p5.param4, p5.param5);
112 }
113
114 if( developer_sync.m_PlayerStomachSynced.Count() )
115 {
116 int last_index = developer_sync.m_PlayerStomachSynced.Count() - 2;
117 Param1<float> p1 = Param1<float>.Cast(developer_sync.m_PlayerStomachSynced.Get(last_index));
118
119 last_index = developer_sync.m_PlayerStomachSynced.Count() - 1;
120 Param1<float> paramTemp = Param1<float>.Cast(developer_sync.m_PlayerStomachSynced.Get(last_index));
121 m_WgtOverall.SetText("Overall volume:" + p1.param1.ToString() + " " + "Average temperature:" + paramTemp.param1.ToString());
122 }
123 else
124 {
125 m_WgtOverall.SetText("Overall volume: 0" + " " + "Average temperature: 0");
126 }
127
128
129
130 //fit to screen
131 //FitWindow();
132 }
void PlayerStomach(PlayerBase player)
Определения PlayerStomach.c:142
PluginBase GetPlugin(typename plugin_type)
Определения PluginManager.c:316
void AddValue(string title, string value, string value2)
Определения HudDebugWinCharLevels.c:118
TextWidget m_WgtOverall
Определения HudDebugWinCharStomach.c:4
void ClearValues()
Определения HudDebugWinCharLevels.c:125

Перекрестные ссылки AddValue(), ClearValues(), GetPlugin(), m_WgtOverall и PlayerStomach().

Используется в Update().