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

◆ Update() [6/6]

void ScriptedWidgetEventHandler::Update ( float timeslice)
inlineprotected

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

260 {
262 {
263 UAInputAPI ua_api = GetUApi();
264 if( ua_api.DeterminePressedButton() != 0 )
265 {
266 string name;
267 string text;
268 ref array<int> new_keybinds = new array<int>;
269
270 // remove previous backlit
271 GetDayZGame().GetBacklit().KeybindingClear();
272
273 for( int i = 0; i < ua_api.DeterminedCount(); ++i )
274 {
275 int kb_id = ua_api.GetDetermined( i );
276 new_keybinds.Insert( kb_id );
277
278 // light up specific key
279 GetDayZGame().GetBacklit().KeybindingShow(kb_id);
280 }
281
282 if( m_CurrentSettingKeyIndex != -1 )
283 {
284 m_Menu.ConfirmKeybindEntry( new_keybinds );
285 m_KeyWidgets.Get( m_CurrentSettingKeyIndex ).Reload( new_keybinds, false );
287 }
288 else if( m_CurrentSettingAlternateKeyIndex != -1 )
289 {
290 m_Menu.ConfirmAlternateKeybindEntry( new_keybinds );
291 m_KeyWidgets.Get( m_CurrentSettingAlternateKeyIndex ).Reload( new_keybinds, true );
293 }
294 }
295 }
296 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
DayZGame GetDayZGame()
Определения DayZGame.c:3870
proto native UAInputAPI GetUApi()
int m_CurrentSettingKeyIndex
Определения KeybindingsGroup.c:8
int m_CurrentSettingAlternateKeyIndex
Определения KeybindingsGroup.c:9
ref map< int, ref KeybindingElement > m_KeyWidgets
Определения KeybindingsGroup.c:7
CameraToolsMenu m_Menu
Определения CTEvent.c:8
proto native int GetDetermined(int iIndex)
proto native int DeterminePressedButton()
proto native int DeterminedCount()

Перекрестные ссылки UAInputAPI::DeterminedCount(), UAInputAPI::DeterminePressedButton(), GetDayZGame(), UAInputAPI::GetDetermined(), GetUApi(), m_CurrentSettingAlternateKeyIndex, m_CurrentSettingKeyIndex, m_KeyWidgets, m_Menu и name.