Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс array

Result for an object found in CGame.IsBoxCollidingGeometryProxy. Подробнее...

Защищенные члены

void KeybindingsContainer (int index, Input input, Widget parent, KeybindingsMenu menu)
 
string GetLayoutName ()
 
void OnSelectKBPreset (int index)
 
void ReloadElements ()
 
void AddSubgroup (int sort_index, Widget parent, Input input)
 
void CreateSubgroups (Widget parent, Input input)
 
void AddElement (int index, Widget parent, Input input)
 
bool IsEnteringKeyBind ()
 
void ClearKeybind (int key_index)
 
void ClearAlternativeKeybind (int key_index)
 
void StartEnteringKeybind (int key_index)
 
void CancelEnteringKeybind ()
 
void StartEnteringAlternateKeybind (int key_index)
 
void CancelEnteringAlternateKeybind ()
 
bool IsChanged ()
 is anything changed?
 
void Apply ()
 
void Reset (bool forced=false)
 
void Update (float timeslice)
 
void SwitchSubgroup (int index)
 

Защищенные данные

const int NO_SORTING = -1
 
Widget m_Root
 
KeybindingsMenu m_Menu
 
ScrollWidget m_Scroll
 
ref map< int, ref ElementArraym_KeyWidgetElements
 
int m_CurrentSettingKeyIndex = -1
 
int m_CurrentSettingAlternateKeyIndex = -1
 
ref array< Widgetm_Subgroups
 

Закрытые члены

void ParticleProperties (vector localPos, int flags, Object parent=null, vector localOri=vector.Zero, Class owner=null)
 Constructor (ctor)
 
void ~ParticleProperties ()
 dtor
 
void TFCaller (Class instance, string test, TFResult result)
 
TFResult Run (float dt)
 
string GetTest ()
 
string GetTestEx ()
 
Data access

Methods to retrieve the data in script

proto Object GetParent ()
 
proto Class GetOwner ()
 
proto vector GetLocalPos ()
 
proto vector GetLocalOri ()
 
proto int GetPPFlags ()
 
proto bool IsPlayOnCreation ()
 
proto bool IsForceWorldRotation ()
 
proto bool IsKeepParentOnEnd ()
 

Закрытые данные

Object obj
 Object inside of box.
 
Object parent
 Parent of proxy object.
 
int hierLevel
 How deep in the proxy hierarchy are we.
 
int geomLevel
 What geometry was the object found in (will either be primaryType or secondaryType)
 
ref ComponentInfoArray componentInfo
 Either the first component found or all of them depending on "fullComponentInfo".
 
ref ProxyInfoArray proxyInfo
 Either the first proxy found or all of them depending on "fullComponentInfo".
 
Class m_Instance
 
string m_Test
 
ref TFResult m_Result
 

Подробное описание

Result for an object found in CGame.IsBoxCollidingGeometryProxy.

Properties while creating a ParticleSource.

Конструктор(ы)

◆ ~ParticleProperties()

void ~ParticleProperties ( )
inlineprivate

dtor

84 {
85 }

Методы

◆ AddElement()

void AddElement ( int index,
Widget parent,
Input input )
inlineprotected
101 {
102 //create array if needed
103 if (!m_KeyWidgetElements.Get(index))
104 {
107 }
108
109 KeybindingElementNew element = new KeybindingElementNew( index, parent, this );
110 m_KeyWidgetElements.Get(index).Insert(element);
111 }
Definition EntityAI.c:95
Object parent
Parent of proxy object.
Definition IsBoxCollidingGeometryProxyClasses.c:30
ref map< int, ref ElementArray > m_KeyWidgetElements
Definition KeybindingsContainer.c:9

Перекрестные ссылки ScriptedWidgetEventHandler::KeybindingElementNew().

◆ AddSubgroup()

void AddSubgroup ( int sort_index,
Widget parent,
Input input )
inlineprotected
56 {
57 Widget subgroup = GetGame().GetWorkspace().CreateWidgets( "gui/layouts/new_ui/options/keybindings_selectors/keybinding_subgroup.layout", parent );
58 Widget subgroup_content = subgroup.FindAnyWidget( "subgroup_content" );
59
62 {
64 }
65 else
66 {
68 }
69
70 for (int i = 0; i < input_actions.Count(); i++)
71 {
73 }
74
75 m_Subgroups.Insert(subgroup);
76
77 subgroup_content.Update();
78 }
Definition InputUtils.c:2
static array< int > GetUnsortedInputActions()
Definition InputUtils.c:234
static map< int, ref array< int > > GetInputActionSortingMap()
Definition InputUtils.c:229
Definition EnWidgets.c:190
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
Definition IsBoxCollidingGeometryProxyClasses.c:28
void AddElement(int index, Widget parent, Input input)
Definition KeybindingsContainer.c:100
const int NO_SORTING
Definition KeybindingsContainer.c:4
ref array< Widget > m_Subgroups
Definition KeybindingsContainer.c:13
proto native CGame GetGame()

Перекрестные ссылки ScriptedWidgetEventHandler::AddElement(), GetGame(), InputUtils::GetInputActionSortingMap() и InputUtils::GetUnsortedInputActions().

◆ Apply()

void Apply ( )
inlineprotected
183 {
185 int input_index = 0;
186
188 {
189 foreach (int element_index, KeybindingElementNew element : elements)
190 {
191 if (element_index == 0)
192 {
193 UAInput input = ua_api.GetInputByID( m_KeyWidgetElements.GetKey(input_index) );
194 int i;
195 if ( element.IsChanged() )
196 {
197 array<int> new_keys = element.GetChangedBinds();
198 input.ClearDeviceBind(EUAINPUT_DEVICE_KEYBOARDMOUSE);
199 if ( new_keys.Count() > 0 )
200 {
201 input.BindComboByHash( new_keys.Get( 0 ) );
202 for( i = 1; i < new_keys.Count(); i++ )
203 {
204 input.BindComboByHash( new_keys.Get( i ) );
205 }
206 }
207 }
208
209 if ( element.IsAlternateChanged() )
210 {
211 array<int> new_alt_keys = element.GetChangedAlternateBinds();
212
213 if ( input.AlternativeCount() == 0 )
214 {
215 input.AddAlternative();
216 }
217
218 input.ClearDeviceBind(EUAINPUT_DEVICE_CONTROLLER);
219
220 if ( new_alt_keys.Count() > 0 )
221 {
222 input.BindComboByHash( new_alt_keys.Get( 0 ) );
223 for( i = 1; i < new_alt_keys.Count(); i++ )
224 {
225 input.BindComboByHash( new_alt_keys.Get( i ) );
226 }
227 }
228 }
229 }
230 element.Reload();
231 }
232 input_index++;
233 }
234 }
proto native UAInputAPI GetUApi()
Definition UAInput.c:165
Definition UAInput.c:24

Перекрестные ссылки GetUApi().

◆ CancelEnteringAlternateKeybind()

void CancelEnteringAlternateKeybind ( )
inlineprotected
155 {
157 {
158 foreach (KeybindingElementNew element : m_KeyWidgetElements.Get( m_CurrentSettingAlternateKeyIndex ))
159 {
160 element.CancelEnteringKeybind();
161 }
163 }
164 }
array< ref PlayerStatBase > Get()
Definition PlayerStatsPCO.c:103
int m_CurrentSettingAlternateKeyIndex
Definition KeybindingsContainer.c:11

◆ CancelEnteringKeybind()

void CancelEnteringKeybind ( )
inlineprotected
136 {
137 if ( m_CurrentSettingKeyIndex != -1 )
138 {
139 foreach (KeybindingElementNew element : m_KeyWidgetElements.Get( m_CurrentSettingKeyIndex ))
140 {
141 element.CancelEnteringKeybind();
142 }
144 }
145 }
int m_CurrentSettingKeyIndex
Definition KeybindingsContainer.c:10

◆ ClearAlternativeKeybind()

void ClearAlternativeKeybind ( int key_index)
inlineprotected
124 {
125 m_Menu.ClearAlternativeKeybind( key_index );
126 }
KeybindingsMenu m_Menu
Definition KeybindingsContainer.c:6

Перекрестные ссылки m_Menu.

◆ ClearKeybind()

void ClearKeybind ( int key_index)
inlineprotected
119 {
120 m_Menu.ClearKeybind( key_index );
121 }

Перекрестные ссылки m_Menu.

◆ CreateSubgroups()

void CreateSubgroups ( Widget parent,
Input input )
inlineprotected
81 {
83
85 for (int i = 0; i < sort_count; i++)
86 {
87 if (InputUtils.GetInputActionSortingMap().GetElement(i) && InputUtils.GetInputActionSortingMap().GetElement(i).Count() > 0)
88 {
90 }
91 }
92
93 //any unssorted inputs go here
95 {
97 }
98 }
void AddSubgroup(int sort_index, Widget parent, Input input)
Definition KeybindingsContainer.c:55

Перекрестные ссылки ScriptedWidgetEventHandler::AddSubgroup(), InputUtils::GetInputActionSortingMap() и InputUtils::GetUnsortedInputActions().

◆ GetLayoutName()

string GetLayoutName ( )
inlineprotected
32 {
33 return "gui/layouts/new_ui/options/keybindings_selectors/keybinding_container.layout";
34 }

◆ GetLocalOri()

proto vector GetLocalOri ( )
private

◆ GetLocalPos()

proto vector GetLocalPos ( )
private

◆ GetOwner()

proto Class GetOwner ( )
private

◆ GetParent()

proto Object GetParent ( )
private

◆ GetPPFlags()

proto int GetPPFlags ( )
private

◆ GetTest()

string GetTest ( )
inlineprivate
71 {
72 return m_Test;
73 }
string m_Test
Definition TestFramework.c:48

◆ GetTestEx()

string GetTestEx ( )
inlineprivate
76 {
77 return string.Format("%1::%2", m_Instance.ClassName(), m_Test);
78 }
Class m_Instance
Definition TestFramework.c:47
proto native owned external string ClassName()
Returns name of class-type.

Перекрестные ссылки string::Format() и m_Instance.

◆ IsChanged()

bool IsChanged ( )
inlineprotected

is anything changed?

168 {
170 {
171 foreach (KeybindingElementNew element : elements)
172 {
173 if (element.IsChanged() || element.IsAlternateChanged())
174 {
175 return true;
176 }
177 }
178 }
179 return false;
180 }

◆ IsEnteringKeyBind()

bool IsEnteringKeyBind ( )
inlineprotected
114 {
116 }

◆ IsForceWorldRotation()

proto bool IsForceWorldRotation ( )
private

◆ IsKeepParentOnEnd()

proto bool IsKeepParentOnEnd ( )
private

◆ IsPlayOnCreation()

proto bool IsPlayOnCreation ( )
private

◆ KeybindingsContainer()

void KeybindingsContainer ( int index,
Input input,
Widget parent,
KeybindingsMenu menu )
inlineprotected
16 {
18 m_Menu = menu;
19
20 m_Root = GetGame().GetWorkspace().CreateWidgets( GetLayoutName(), parent );
21 m_Scroll = ScrollWidget.Cast(m_Root.FindAnyWidget("group_scroll"));
22 Widget container = m_Root.FindAnyWidget( "group_scroll" );
23
25
26 container.Update();
27
28 m_Root.SetHandler( this );
29 }
Widget m_Root
Definition KeybindingsContainer.c:5
string GetLayoutName()
Definition KeybindingsContainer.c:31
ScrollWidget m_Scroll
Definition KeybindingsContainer.c:7
void CreateSubgroups(Widget parent, Input input)
Definition KeybindingsContainer.c:80

Перекрестные ссылки GetGame(), ScriptedWidgetEventHandler::GetLayoutName(), m_Menu и m_Root.

◆ OnSelectKBPreset()

void OnSelectKBPreset ( int index)
inlineprotected
37 {
38 GetUApi().PresetSelect( index );
40 GetUApi().Export();
41 GetUApi().SaveInputPresetMiscData();
42 }
void ReloadElements()
Definition KeybindingsContainer.c:44

Перекрестные ссылки GetUApi().

◆ ParticleProperties()

void ParticleProperties ( vector localPos,
int flags,
Object parent = null,
vector localOri = vector.Zero,
Class owner = null )
inlineprivate

Constructor (ctor)

Аргументы
localPosvector Local position of particle, if no parent this is world position
flagsint See ParticlePropertiesFlags
parentObject The parent that the ParticleSource will be added to as a child
localOrivector Local orientation of particle, if no parent this is world orientation
ownerClass The owning instance for this particle, as long as it exists, this particle will not be reused (unless flagged) Important when for example virtual is enabled since if the particle owner has been deleted, the virtual should not be converted Only fill in owner if necessary, for example when the owner is reusing the same particle after storing it
79 {
80 }

◆ ReloadElements()

void ReloadElements ( )
inlineprotected
45 {
47 {
48 foreach (KeybindingElementNew element : elements)
49 {
50 element.Reload();
51 }
52 }
53 }

◆ Reset()

void Reset ( bool forced = false)
inlineprotected
237 {
239 {
240 foreach (KeybindingElementNew element : elements)
241 {
242 if ( element.IsChanged() || element.IsAlternateChanged() || forced )
243 {
244 element.Reload();
245 }
246 }
247 }
248 }

◆ Run()

TFResult Run ( float dt)
inlineprivate
59 {
60 bool callResult = GetGame().GameScript.CallFunction(m_Instance, m_Test, m_Result, dt);
61 if (!callResult)
62 {
63 ErrorEx(string.Format("Failed to call function \'%1\' on \'%2\'", m_Test, m_Instance.GetDebugName()));
64 m_Result.Result = TFR.FAIL;
65 }
66
67 return m_Result;
68 }
TFR
Definition TestFramework.c:2
ref TFResult m_Result
Definition TestFramework.c:49
enum ShapeType ErrorEx
string GetDebugName()
Definition EnScript.c:39

Перекрестные ссылки ErrorEx, GetGame() и m_Instance.

◆ StartEnteringAlternateKeybind()

void StartEnteringAlternateKeybind ( int key_index)
inlineprotected
148 {
151 m_Menu.StartEnteringAlternateKeybind( key_index );
152 }

Перекрестные ссылки m_Menu.

◆ StartEnteringKeybind()

void StartEnteringKeybind ( int key_index)
inlineprotected
129 {
132 m_Menu.StartEnteringKeybind( key_index );
133 }

Перекрестные ссылки m_Menu.

◆ SwitchSubgroup()

void SwitchSubgroup ( int index)
inlineprotected
296 {
297 Widget w;
298 for (int i = 0; i < m_Subgroups.Count(); i++)
299 {
300 w = m_Subgroups[i];
301 w.Show(index == i);
302 }
303
304 m_Scroll.VScrollToPos01(0);
305 }

◆ TFCaller()

void TFCaller ( Class instance,
string test,
TFResult result )
inlineprivate
52 {
53 m_Instance = instance;
54 m_Test = test;
56 }

Перекрестные ссылки m_Instance.

◆ Update()

void Update ( float timeslice)
inlineprotected
251 {
253 {
255 if ( ua_api.DeterminePressedButton() != 0 )
256 {
257 string name;
258 string text;
260
261 // remove previous backlit
262 GetDayZGame().GetBacklit().KeybindingClear();
263
264 for( int i = 0; i < ua_api.DeterminedCount(); ++i )
265 {
266 int kb_id = ua_api.GetDetermined( i );
267 new_keybinds.Insert( kb_id );
268
269 // light up specific key
270 GetDayZGame().GetBacklit().KeybindingShow(kb_id);
271 }
272
273 if ( m_CurrentSettingKeyIndex != -1 )
274 {
275 m_Menu.ConfirmKeybindEntry( new_keybinds );
276 foreach (KeybindingElementNew element : m_KeyWidgetElements.Get( m_CurrentSettingKeyIndex ))
277 {
278 element.Reload( new_keybinds, false );
279 }
281 }
282 else if ( m_CurrentSettingAlternateKeyIndex != -1 )
283 {
284 m_Menu.ConfirmAlternateKeybindEntry( new_keybinds );
286 {
287 elementAlternate.Reload( new_keybinds, true );
288 }
290 }
291 }
292 }
293 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
DayZGame GetDayZGame()
Definition DayZGame.c:3748

Перекрестные ссылки GetDayZGame(), GetUApi(), m_Menu и name.

Поля

◆ componentInfo

ref ComponentInfoArray componentInfo
private

Either the first component found or all of them depending on "fullComponentInfo".

◆ geomLevel

int geomLevel
private

What geometry was the object found in (will either be primaryType or secondaryType)

◆ hierLevel

int hierLevel
private

How deep in the proxy hierarchy are we.

◆ m_CurrentSettingAlternateKeyIndex

int m_CurrentSettingAlternateKeyIndex = -1
protected

◆ m_CurrentSettingKeyIndex

int m_CurrentSettingKeyIndex = -1
protected

◆ m_Instance

Class m_Instance
private

◆ m_KeyWidgetElements

ref map<int, ref ElementArray> m_KeyWidgetElements
protected

◆ m_Menu

KeybindingsMenu m_Menu
protected

◆ m_Result

ref TFResult m_Result
private

◆ m_Root

Widget m_Root
protected

◆ m_Scroll

ScrollWidget m_Scroll
protected

◆ m_Subgroups

ref array<Widget> m_Subgroups
protected

◆ m_Test

string m_Test
private

◆ NO_SORTING

const int NO_SORTING = -1
protected

◆ obj

Object obj
private

Object inside of box.

◆ parent

Object parent
private

Parent of proxy object.

◆ proxyInfo

ref ProxyInfoArray proxyInfo
private

Either the first proxy found or all of them depending on "fullComponentInfo".


Объявления и описания членов классов находятся в файлах: