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

◆ Reload() [4/7]

void ScriptedWidgetEventHandler::Reload ( array< int > custom_binds,
bool is_alternate )
inlineprotected

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

174 {
175 string output;
176 if( custom_binds.Count() > 1 )
177 {
178 if( custom_binds.Get( 0 ) != 0 )
179 output = GetUApi().GetButtonName( custom_binds.Get( 0 ) );
180 for( int i = 1; i < custom_binds.Count(); i++ )
181 {
182 if( custom_binds.Get( i ) != 0 )
183 output += " + " + GetUApi().GetButtonName( custom_binds.Get( i ) );
184 }
185 }
186 else if( custom_binds.Count() > 0 )
187 {
188 if( custom_binds.Get( 0 ) != 0 )
189 output = GetUApi().GetButtonName( custom_binds.Get( 0 ) );
190 }
191
192 if( is_alternate )
193 {
194 m_CustomAlternateBind = custom_binds;
195 m_IsAlternateEdited = true;
196 m_AlternativeBindButton.SetText( output );
197 }
198 else
199 {
200 m_CustomBind = custom_binds;
201 m_IsEdited = true;
202 m_PrimaryBindButton.SetText( output );
203 }
204 }
proto native UAInputAPI GetUApi()
ref array< int > m_CustomBind
Определения KeybindingElement.c:18
ButtonWidget m_AlternativeBindButton
Определения KeybindingElement.c:10
ref array< int > m_CustomAlternateBind
Определения KeybindingElement.c:19
ButtonWidget m_PrimaryBindButton
Определения KeybindingElement.c:9
bool m_IsAlternateEdited
Определения KeybindingElement.c:16
proto native owned string GetButtonName(int iHash)

Перекрестные ссылки UAInputAPI::GetButtonName(), GetUApi(), m_AlternativeBindButton, m_CustomAlternateBind, m_CustomBind, m_IsAlternateEdited, m_IsEdited и m_PrimaryBindButton.