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

◆ AddValue() [1/3]

void HudDebugWinBase::AddValue ( string classname,
int food_stage,
int agents,
float amount,
float temperature )
inlineprivate

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

135 {
136 int index = m_WgtValues.AddItem( classname, NULL, 0 );
137 string stage = typename.EnumToString(FoodStageType, food_stage) + "(" + food_stage.ToString()+")";;
138 m_WgtValues.SetItem( index, amount.ToString(), NULL, 1 );
139 m_WgtValues.SetItem( index,stage , NULL, 2 );
140 m_WgtValues.SetItem( index, temperature.ToString() , NULL, 3 );
141 array<string> agent_list = GetAgentsArray(agents);
142 string agent_line = "("+agents.ToString()+") ";
143
144 for(int i = 0; i < agent_list.Count();i++)
145 {
146 agent_line += "," +agent_list.Get(i);
147 }
148
149 m_WgtValues.SetItem( index, agent_line , NULL, 4);
150 }
FoodStageType
Определения FoodStage.c:2
TextListboxWidget m_WgtValues
Определения HudDebugWinCharLevels.c:3
array< string > GetAgentsArray(int agents)
Определения HudDebugWinCharStomach.c:152
proto string ToString(bool simple=true)

Перекрестные ссылки GetAgentsArray(), m_WgtValues и float::ToString().