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

◆ SetPosition()

void DebugMonitor::SetPosition ( vector value)
inlineprotected

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

121 {
122 m_MapTileValue.SetText(" " + CalculateMapTile(value));
123 string position = string.Format(" %1 %2 %3", value[0].ToString(), value[1].ToString(), value[2].ToString());
124 m_PositionValue.SetText(position);
125
126 if (GetUApi().GetInputByID(UAUICopyDebugMonitorPos).LocalPress())
127 {
128 string adjusted = (value[0] + 200000).ToString() + " " + value[2].ToString();
129 GetGame().CopyToClipboard(adjusted);
130 }
131
132 if (m_IsUsingKBM)
133 m_CopyPositionInfo.SetText(" (P to clipboard)");
134 else
135 m_CopyPositionInfo.SetText("");
136 }
proto string ToString()
proto native UAInputAPI GetUApi()
proto native void CopyToClipboard(string text)
TextWidget m_PositionValue
Определения DebugMonitor.c:13
bool m_IsUsingKBM
Определения DebugMonitor.c:3
TextWidget m_CopyPositionInfo
Определения DebugMonitor.c:14
string CalculateMapTile(vector pos)
Определения DebugMonitor.c:148
TextWidget m_MapTileValue
Определения DebugMonitor.c:12
proto string ToString(bool beautify=true)
Vector to string.
proto native CGame GetGame()

Перекрестные ссылки CalculateMapTile(), CGame::CopyToClipboard(), GetGame(), GetUApi(), m_CopyPositionInfo, m_IsUsingKBM, m_MapTileValue, m_PositionValue, ToString() и vector::ToString().