DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс ScriptConsoleSoundsTab
+ Граф наследования:ScriptConsoleSoundsTab:

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

void ScriptConsoleSoundsTab (Widget root, ScriptConsole console, Widget button, ScriptConsoleTabBase parent=null)
 
void ~ScriptConsoleSoundsTab (Widget root)
 
override bool OnChange (Widget w, int x, int y, bool finished)
 
void UpdateMousePos ()
 
void PrepareFilters (string filter, out TStringArray filters)
 
void ChangeFilter (TStringArray classes, TextListboxWidget widget, EditBoxWidget filterWidget, int categoryMask=-1, bool ignoreScope=false)
 
override void Update (float timeslice)
 
void HandleKeys ()
 
void SetMapPos (vector pos)
 
vector GetMapPos ()
 
void PlaySoundEvent ()
 
void UpdateAttachmentSelection ()
 
void UpdateSelectedColor (ImageWidget buttonBackground)
 
override bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnDoubleClick (Widget w, int x, int y, int button)
 
TStringArray GetSoundClasses ()
 
void ChangeFilterSound ()
 

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

bool m_PlayerPosRefreshBlocked
 
vector m_MapPos
 
ButtonWidget m_SetETSoundButton
 
ButtonWidget m_SetETSoundWeaponButton
 
ButtonWidget m_SetETSoundAttachmentButton
 
ButtonWidget m_SetETSoundVoiceButton
 
ButtonWidget m_PlaySoundEventButton
 
ButtonWidget m_CopySoundset
 
ButtonWidget m_PlaySoundset
 
ButtonWidget m_PlaySoundsetLooped
 
ButtonWidget m_StopSoundset
 
EditBoxWidget m_SoundEventIDBox
 
EditBoxWidget m_SoundFilter
 
TextListboxWidget m_SoundsTextListbox
 
ref Timer m_RefreshFilterTimer = new Timer()
 
MapWidget m_DebugMapWidget
 
TextWidget m_MapDistWidget
 
TextWidget m_MouseCurPos
 
TextWidget m_MapHeadingWidget
 
ImageWidget m_BBackgroundSound
 
ImageWidget m_BBackgroundSoundWeapon
 
ImageWidget m_BBackgroundSoundAttachment
 
ImageWidget m_BBackgroundSoundVoice
 
ImageWidget m_SelectedBackground
 
CheckBoxWidget m_CheckBoxShoulderAtt
 
CheckBoxWidget m_CheckBoxBodyAtt
 
CheckBoxWidget m_CheckBoxBackAtt
 

Статические защищенные данные

static float DEBUG_MAP_ZOOM = 1
 
static int m_SelectedID
 
static string m_SelectedSoundEventType
 
static string m_SelectedAttachments
 
static EffectSound m_SoundSet
 

Дополнительные унаследованные члены

- Закрытые члены унаследованные от ScriptConsoleTabBase
void ScriptConsoleTabBase (Widget root, ScriptConsole console, Widget button, ScriptConsoleTabBase parent=null)
 
void Init (int id)
 
int GetID ()
 
Widget GetRoot ()
 
bool IsSelected ()
 
void Select (bool select, ScriptConsoleTabBase selectedHandler)
 
void OnSelected ()
 
void Show (bool show, ScriptConsoleTabBase selectedHandler)
 
Widget GetButton ()
 
void Update (float timeslice)
 
bool OnChange (Widget w, int x, int y, bool finished)
 
bool OnClick (Widget w, int x, int y, int button)
 
bool OnItemSelected (Widget w, int x, int y, int row, int column, int oldRow, int oldColumn)
 
bool OnKeyDown (Widget w, int x, int y, int key)
 
bool OnDoubleClick (Widget w, int x, int y, int button)
 
void OnRPCEx (int rpc_type, ParamsReadContext ctx)
 
bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
bool OnKeyPress (Widget w, int x, int y, int key)
 
void AddItemToClipboard (TextListboxWidget text_listbox_widget)
 
- Закрытые данные унаследованные от ScriptConsoleTabBase
int m_Id
 
bool m_IsSelected
 
bool m_IsShiftDown
 
Widget m_ParentRoot
 
Widget m_Root
 
Widget m_Button
 
ScriptConsole m_ScriptConsole
 
ScriptConsoleTabBase m_Parent
 
PluginConfigDebugProfile m_ConfigDebugProfile
 
PluginConfigDebugProfileFixed m_ConfigDebugProfileFixed
 

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

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

◆ ScriptConsoleSoundsTab()

void ScriptConsoleSoundsTab ( Widget root,
ScriptConsole console,
Widget button,
ScriptConsoleTabBase parent = null )
inlineprotected
43 {
44 m_MouseCurPos = TextWidget.Cast(root.FindAnyWidget("MapSoundsPos"));
45 m_MapDistWidget = TextWidget.Cast(root.FindAnyWidget("MapSoundsDistance"));
46 m_MapHeadingWidget = TextWidget.Cast(root.FindAnyWidget("MapHeadingSounds"));
47
48 m_SetETSoundButton = ButtonWidget.Cast(root.FindAnyWidget("ETSoundButton"));
49 m_SetETSoundWeaponButton = ButtonWidget.Cast(root.FindAnyWidget("ETSoundWeaponButton"));
50 m_SetETSoundAttachmentButton = ButtonWidget.Cast(root.FindAnyWidget("ETSoundAttachmentButton"));
51 m_SetETSoundVoiceButton = ButtonWidget.Cast(root.FindAnyWidget("ETSoundVoiceButton"));
52 m_PlaySoundEventButton = ButtonWidget.Cast(root.FindAnyWidget("ETSoundPlayButton"));
53 m_SoundEventIDBox = EditBoxWidget.Cast(root.FindAnyWidget("SoundIDEditBox"));
54 m_CheckBoxShoulderAtt = CheckBoxWidget.Cast(root.FindAnyWidget("CheckBoxShoulderAtt"));
55 m_CheckBoxBodyAtt = CheckBoxWidget.Cast(root.FindAnyWidget("CheckBoxBodyAtt"));
56 m_CheckBoxBackAtt = CheckBoxWidget.Cast(root.FindAnyWidget("CheckBoxBackAtt"));
57 m_BBackgroundSound = ImageWidget.Cast(root.FindAnyWidget("SoundEventType"));
58 m_BBackgroundSoundWeapon = ImageWidget.Cast(root.FindAnyWidget("SoundEventType0"));
59 m_BBackgroundSoundAttachment = ImageWidget.Cast(root.FindAnyWidget("SoundEventType1"));
60 m_BBackgroundSoundVoice = ImageWidget.Cast(root.FindAnyWidget("SoundEventType2"));
61
62 m_CopySoundset = ButtonWidget.Cast(root.FindAnyWidget("SoundsetCopy"));
63 m_PlaySoundset = ButtonWidget.Cast(root.FindAnyWidget("PlaySoundset"));
64 m_PlaySoundsetLooped = ButtonWidget.Cast(root.FindAnyWidget("PlaySoundsetLooped"));
65 m_StopSoundset = ButtonWidget.Cast(root.FindAnyWidget("StopSoundset"));
66 m_DebugMapWidget = MapWidget.Cast(root.FindAnyWidget("MapSounds"));
67
68 m_SoundFilter = EditBoxWidget.Cast(root.FindAnyWidget("SoundsFilter"));
69 m_SoundsTextListbox = TextListboxWidget.Cast(root.FindAnyWidget("SoundsList"));
70
71 m_SoundFilter.SetText(m_ConfigDebugProfile.GetSoundsetFilter());
72
73
75
76 if (GetGame().GetPlayer())
77 {
79 m_DebugMapWidget.SetMapPos(GetGame().GetPlayer().GetWorldPosition());
80 SetMapPos(GetGame().GetPlayer().GetWorldPosition());
81 }
82
83 // reopen update
84 m_SoundEventIDBox.SetText(m_SelectedID.ToString());
85
86 if (m_SelectedSoundEventType == "Sound")
88 else if (m_SelectedSoundEventType == "SoundWeapon")
90 else if (m_SelectedSoundEventType == "SoundAttachment")
92 else if (m_SelectedSoundEventType == "SoundVoice")
94
96 if (lastSelection.Contains("shoulder"))
97 m_CheckBoxShoulderAtt.SetChecked(true);
98 if (lastSelection.Contains("body"))
99 m_CheckBoxBodyAtt.SetChecked(true);
100 if (lastSelection.Contains("back"))
101 m_CheckBoxBackAtt.SetChecked(true);
102
103 }
PlayerBase GetPlayer()
Definition ModifierBase.c:51
Definition EnWidgets.c:354
Definition gameplay.c:322
proto native void SetMapPos(vector worldPos)
proto native void SetScale(float scale)
Definition EntityAI.c:95
ImageWidget m_BBackgroundSoundWeapon
Definition ScriptConsoleSoundsTab.c:33
static string m_SelectedSoundEventType
Definition ScriptConsoleSoundsTab.c:7
ButtonWidget m_SetETSoundWeaponButton
Definition ScriptConsoleSoundsTab.c:11
ButtonWidget m_SetETSoundButton
Definition ScriptConsoleSoundsTab.c:10
ButtonWidget m_SetETSoundAttachmentButton
Definition ScriptConsoleSoundsTab.c:12
EditBoxWidget m_SoundFilter
Definition ScriptConsoleSoundsTab.c:21
TextWidget m_MapDistWidget
Definition ScriptConsoleSoundsTab.c:28
static int m_SelectedID
Definition ScriptConsoleSoundsTab.c:6
TextListboxWidget m_SoundsTextListbox
Definition ScriptConsoleSoundsTab.c:22
void SetMapPos(vector pos)
Definition ScriptConsoleSoundsTab.c:289
ButtonWidget m_SetETSoundVoiceButton
Definition ScriptConsoleSoundsTab.c:13
CheckBoxWidget m_CheckBoxShoulderAtt
Definition ScriptConsoleSoundsTab.c:38
ButtonWidget m_PlaySoundset
Definition ScriptConsoleSoundsTab.c:16
CheckBoxWidget m_CheckBoxBackAtt
Definition ScriptConsoleSoundsTab.c:40
static string m_SelectedAttachments
Definition ScriptConsoleSoundsTab.c:8
ImageWidget m_BBackgroundSound
Definition ScriptConsoleSoundsTab.c:32
ImageWidget m_BBackgroundSoundAttachment
Definition ScriptConsoleSoundsTab.c:34
TextWidget m_MapHeadingWidget
Definition ScriptConsoleSoundsTab.c:30
CheckBoxWidget m_CheckBoxBodyAtt
Definition ScriptConsoleSoundsTab.c:39
void ChangeFilterSound()
Definition ScriptConsoleSoundsTab.c:455
ImageWidget m_BBackgroundSoundVoice
Definition ScriptConsoleSoundsTab.c:35
ButtonWidget m_PlaySoundEventButton
Definition ScriptConsoleSoundsTab.c:14
ButtonWidget m_PlaySoundsetLooped
Definition ScriptConsoleSoundsTab.c:17
ButtonWidget m_CopySoundset
Definition ScriptConsoleSoundsTab.c:15
static float DEBUG_MAP_ZOOM
Definition ScriptConsoleSoundsTab.c:4
MapWidget m_DebugMapWidget
Definition ScriptConsoleSoundsTab.c:27
TextWidget m_MouseCurPos
Definition ScriptConsoleSoundsTab.c:29
EditBoxWidget m_SoundEventIDBox
Definition ScriptConsoleSoundsTab.c:20
override bool OnClick(Widget w, int x, int y, int button)
Definition ScriptConsoleSoundsTab.c:363
ButtonWidget m_StopSoundset
Definition ScriptConsoleSoundsTab.c:18
PluginConfigDebugProfile m_ConfigDebugProfile
Definition ScriptConsoleTabBase.c:11
Definition EnWidgets.c:220
proto native CGame GetGame()

Перекрестные ссылки ChangeFilterSound(), DEBUG_MAP_ZOOM, GetGame(), GetPlayer(), m_BBackgroundSound, m_BBackgroundSoundAttachment, m_BBackgroundSoundVoice, m_BBackgroundSoundWeapon, m_CheckBoxBackAtt, m_CheckBoxBodyAtt, m_CheckBoxShoulderAtt, ScriptConsoleTabBase::m_ConfigDebugProfile, m_CopySoundset, m_DebugMapWidget, m_MapDistWidget, m_MapHeadingWidget, m_MouseCurPos, m_PlaySoundEventButton, m_PlaySoundset, m_PlaySoundsetLooped, m_SelectedAttachments, m_SelectedID, m_SelectedSoundEventType, m_SetETSoundAttachmentButton, m_SetETSoundButton, m_SetETSoundVoiceButton, m_SetETSoundWeaponButton, m_SoundEventIDBox, m_SoundFilter, m_SoundsTextListbox, m_StopSoundset, OnClick(), SetMapPos(), MapWidget::SetMapPos() и MapWidget::SetScale().

◆ ~ScriptConsoleSoundsTab()

void ~ScriptConsoleSoundsTab ( Widget root)
inlineprotected
106 {
108 }
proto native float GetScale()

Перекрестные ссылки DEBUG_MAP_ZOOM, MapWidget::GetScale() и m_DebugMapWidget.

Методы

◆ ChangeFilter()

void ChangeFilter ( TStringArray classes,
TextListboxWidget widget,
EditBoxWidget filterWidget,
int categoryMask = -1,
bool ignoreScope = false )
inlineprotected
173 {
174 widget.ClearItems();
175
178
180
182
183 for (int i = 0; i < classes.Count(); i++)
184 {
185 string config_path = classes.Get(i);
186
187 int objects_count = GetGame().ConfigGetChildrenCount(config_path);
188 for (int j = 0; j < objects_count; j++)
189 {
190 string child_name;
191 bool add = false;
192 GetGame().ConfigGetChildName(config_path, j, child_name);
193
194 if (!filters.Count())
195 {
196 add = true;
197 }
198 else
199 {
200 foreach (int indx, string filter:filters)
201 {
203 child_name_lower.ToLower();
204
205 if (child_name_lower.Contains(filter))
206 {
207 add = true;
208 break;
209 }
210 }
211 }
212 if (add)
213 itemsArray.Insert(child_name);
214 }
215 }
216
217 if (itemsArray)
218 {
219 itemsArray.Sort();
220 foreach (string it:itemsArray)
221 {
222 widget.AddItem(it, NULL, 0);
223 }
224 }
225
226 if (filters)
227 {
228 /*
229 if (m_FilterOrderReversed)
230 filters.Invert();
231 */
232 foreach (string f:filters)
233 {
235 if (arr2)
236 {
237 arr2.Sort();
238 foreach (string itm: arr2)
239 {
240 int row = widget.AddItem(itm, NULL, 0);
241 }
242 }
243 }
244 }
245
246
247 }
void PrepareFilters(string filter, out TStringArray filters)
Definition ScriptConsoleSoundsTab.c:155
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
Definition IsBoxCollidingGeometryProxyClasses.c:28
array< string > TStringArray
Definition EnScript.c:685

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

Используется в ChangeFilterSound().

◆ ChangeFilterSound()

void ChangeFilterSound ( )
inlineprotected
456 {
457 m_ConfigDebugProfile.SetSoundsetFilter(m_SoundFilter.GetText());
459 }
void ChangeFilter(TStringArray classes, TextListboxWidget widget, EditBoxWidget filterWidget, int categoryMask=-1, bool ignoreScope=false)
Definition ScriptConsoleSoundsTab.c:172
TStringArray GetSoundClasses()
Definition ScriptConsoleSoundsTab.c:450

Перекрестные ссылки ChangeFilter(), GetSoundClasses(), ScriptConsoleTabBase::m_ConfigDebugProfile, m_SoundFilter и m_SoundsTextListbox.

Используется в OnClick() и ScriptConsoleSoundsTab().

◆ GetMapPos()

vector GetMapPos ( )
inlineprotected
295 {
296 return m_MapPos;
297 }
vector m_MapPos
Definition ScriptConsoleSoundsTab.c:5

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

Используется в HandleKeys(), OnClick(), Update() и UpdateMousePos().

◆ GetSoundClasses()

TStringArray GetSoundClasses ( )
inlineprotected
451 {
452 return {CFG_SOUND_SETS};
453 }
const string CFG_SOUND_SETS
Definition constants.c:225

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

Используется в ChangeFilterSound().

◆ HandleKeys()

void HandleKeys ( )
inlineprotected
270 {
271 bool playRequested = KeyState(KeyCode.KC_P) != 0;
272 if (playRequested)
273 {
274 int selected_row_index = m_SoundsTextListbox.GetSelectedRow();
275
276 if (m_SoundSet)
277 m_SoundSet.Stop();
278 if (selected_row_index != -1)
279 {
280 string soundSetName;
282
284 m_SoundSet.SetAutodestroy(true);
285 }
286 }
287 }
Manager class for managing Effect (EffectParticle, EffectSound)
Definition EffectManager.c:6
static EffectSound PlaySoundEnviroment(string sound_set, vector position, float play_fade_in=0, float stop_fade_out=0, bool loop=false)
Create and play an EffectSound, updating environment variables.
Definition EffectManager.c:228
vector GetMapPos()
Definition ScriptConsoleSoundsTab.c:294
static EffectSound m_SoundSet
Definition ScriptConsoleSoundsTab.c:24
KeyCode
Definition EnSystem.c:157
proto native int KeyState(KeyCode key)

Перекрестные ссылки GetMapPos(), KeyState(), m_SoundSet, m_SoundsTextListbox и SEffectManager::PlaySoundEnviroment().

Используется в Update().

◆ OnChange()

override bool OnChange ( Widget w,
int x,
int y,
bool finished )
inlineprotected
111 {
112 super.OnChange(w, x, y, finished);
113
114 if (w == m_SoundFilter)
115 {
116 m_RefreshFilterTimer.Run(0.85, this, "ChangeFilterSound", null, false);
117 return true;
118 }
119 return false;
120 }
Icon x
Icon y
ref Timer m_RefreshFilterTimer
Definition ScriptConsoleSoundsTab.c:25

Перекрестные ссылки m_RefreshFilterTimer, m_SoundFilter, x и y.

◆ OnClick()

override bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprotected
364 {
365 super.OnClick(w,x,y,button);
366
367 if (w == m_CopySoundset)
368 {
370 return true;
371 }
372 else if (w == m_PlaySoundset || w == m_PlaySoundsetLooped)
373 {
374 int selected_row_index = m_SoundsTextListbox.GetSelectedRow();
375 string soundSetName;
376 if (m_SoundSet)
377 m_SoundSet.Stop();
378 if (selected_row_index != -1)
379 {
381
382 bool looped = (w == m_PlaySoundsetLooped);
384
385 }
386 return true;
387 }
388 else if (w == m_StopSoundset)
389 {
390 if (m_SoundSet)
391 m_SoundSet.Stop();
392 return true;
393 }
394 else if (w == m_SoundFilter)
395 {
397 return true;
398 }
399 else if (w == m_SetETSoundButton)
400 {
401 m_SelectedSoundEventType = "Sound";
403 return true;
404 }
405 else if (w == m_SetETSoundWeaponButton)
406 {
407 m_SelectedSoundEventType = "SoundWeapon";
409 return true;
410 }
412 {
413 m_SelectedSoundEventType = "SoundAttachment";
415 return true;
416 }
417 else if (w == m_SetETSoundVoiceButton)
418 {
419 m_SelectedSoundEventType = "SoundVoice";
421 return true;
422 }
423 else if (w == m_PlaySoundEventButton)
424 {
426 return true;
427 }
429 {
431 return true;
432 }
433
434 return false;
435 }
void PlaySoundEvent()
Definition ScriptConsoleSoundsTab.c:299
void UpdateAttachmentSelection()
Definition ScriptConsoleSoundsTab.c:313
void UpdateSelectedColor(ImageWidget buttonBackground)
Definition ScriptConsoleSoundsTab.c:326
void AddItemToClipboard(TextListboxWidget text_listbox_widget)
Definition ScriptConsoleTabBase.c:88

Перекрестные ссылки ScriptConsoleTabBase::AddItemToClipboard(), ChangeFilterSound(), GetMapPos(), m_BBackgroundSound, m_BBackgroundSoundAttachment, m_BBackgroundSoundVoice, m_BBackgroundSoundWeapon, m_CheckBoxBackAtt, m_CheckBoxBodyAtt, m_CheckBoxShoulderAtt, m_CopySoundset, m_PlaySoundEventButton, m_PlaySoundset, m_PlaySoundsetLooped, m_SelectedSoundEventType, m_SetETSoundAttachmentButton, m_SetETSoundButton, m_SetETSoundVoiceButton, m_SetETSoundWeaponButton, m_SoundFilter, m_SoundSet, m_SoundsTextListbox, m_StopSoundset, SEffectManager::PlaySoundEnviroment(), PlaySoundEvent(), UpdateAttachmentSelection(), UpdateSelectedColor(), x и y.

Используется в ScriptConsoleSoundsTab().

◆ OnDoubleClick()

override bool OnDoubleClick ( Widget w,
int x,
int y,
int button )
inlineprotected
438 {
439 super.OnDoubleClick(w, x, y, button);
440
441 if (w == m_SoundEventIDBox || w == m_SoundFilter)
442 {
443 EditBoxWidget.Cast(w).SetText("");
444 return true;
445 }
446
447 return false;
448 }

Перекрестные ссылки m_SoundEventIDBox, m_SoundFilter, x и y.

◆ OnMouseButtonDown()

override bool OnMouseButtonDown ( Widget w,
int x,
int y,
int button )
inlineprotected
337 {
338 super.OnMouseButtonDown(w,x,y,button);
339
340 if (w == m_DebugMapWidget)
341 {
342 if (button == 0)
343 {
345 int mouseX, mouseY;
348 mousePos[0] = mouseX;
349 mousePos[1] = mouseY;
351 worldPos[1] = GetGame().SurfaceY(worldPos[0], worldPos[2]);
352
354 }
355 else if (button == 1 && GetGame().GetPlayer())
356 {
357 SetMapPos(GetGame().GetPlayer().GetWorldPosition());
358 }
359 }
360 return true;
361 }
proto native vector ScreenToMap(vector screenPos)
bool m_PlayerPosRefreshBlocked
Definition ScriptConsoleSoundsTab.c:3
Definition EnConvert.c:106
proto void GetMousePos(out int x, out int y)

Перекрестные ссылки GetGame(), GetMousePos(), GetPlayer(), m_DebugMapWidget, m_PlayerPosRefreshBlocked, MapWidget::ScreenToMap(), SetMapPos(), x и y.

◆ PlaySoundEvent()

void PlaySoundEvent ( )
inlineprotected
300 {
301 m_SelectedID = m_SoundEventIDBox.GetText().ToInt();
302 if (m_SelectedID == 0)
303 return;
304
306
307 if (m_SelectedSoundEventType == "SoundAttachment")
309 else
310 player.OnSoundEvent(m_SelectedSoundEventType, string.Empty, m_SoundEventIDBox.GetText().ToInt());
311 }
Empty
Definition Hand_States.c:14
Definition ManBase.c:2

Перекрестные ссылки Empty, GetGame(), GetPlayer(), m_SelectedAttachments, m_SelectedID, m_SelectedSoundEventType и m_SoundEventIDBox.

Используется в OnClick().

◆ PrepareFilters()

void PrepareFilters ( string filter,
out TStringArray filters )
inlineprotected
156 {
157 filter.Trim();
158 filter.ToLower();
159
160 filters = new TStringArray;
162 filter.Split(" ", rawFilters);
163
164 foreach (int i, string f:rawFilters)
165 {
166 filters.Insert(f);
167
168 }
169 }

Используется в ChangeFilter().

◆ SetMapPos()

void SetMapPos ( vector pos)
inlineprotected
290 {
291 m_MapPos = pos;
292 }

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

Используется в OnMouseButtonDown() и ScriptConsoleSoundsTab().

◆ Update()

override void Update ( float timeslice)
inlineprotected
250 {
251 super.Update(timeslice);
252
253 HandleKeys();
255
257
258 if (player)
259 {
260 vector playerPos = player.GetWorldPosition();
261 m_DebugMapWidget.AddUserMark(playerPos,"You", COLOR_RED,"\\dz\\gear\\navigation\\data\\map_tree_ca.paa");
262
263 if (playerPos != GetMapPos())
264 m_DebugMapWidget.AddUserMark(GetMapPos(),"Source", COLOR_GREEN,"\\dz\\gear\\navigation\\data\\map_tree_ca.paa");
265 }
267 }
proto native void AddUserMark(vector pos, string text, int color, string texturePath)
proto native void ClearUserMarks()
Definition PlayerBaseClient.c:2
void UpdateMousePos()
Definition ScriptConsoleSoundsTab.c:122
void HandleKeys()
Definition ScriptConsoleSoundsTab.c:269
const int COLOR_RED
Definition constants.c:64
const int COLOR_GREEN
Definition constants.c:65

Перекрестные ссылки MapWidget::AddUserMark(), MapWidget::ClearUserMarks(), COLOR_GREEN, COLOR_RED, GetGame(), GetMapPos(), GetPlayer(), HandleKeys(), m_DebugMapWidget и UpdateMousePos().

◆ UpdateAttachmentSelection()

void UpdateAttachmentSelection ( )
inlineprotected
314 {
315 string attachments = string.Empty;
316 if (m_CheckBoxShoulderAtt.IsChecked())
317 attachments += "shoulder,";
318 if (m_CheckBoxBodyAtt.IsChecked())
319 attachments += "body,";
320 if (m_CheckBoxBackAtt.IsChecked())
321 attachments += "back";
322
324 }

Перекрестные ссылки m_CheckBoxBackAtt, m_CheckBoxBodyAtt, m_CheckBoxShoulderAtt и m_SelectedAttachments.

Используется в OnClick().

◆ UpdateMousePos()

void UpdateMousePos ( )
inlineprotected
123 {
124 if(!GetGame().GetPlayer())
125 return;
126 int x,y;
127 GetMousePos(x,y);
129 mousePos[0] = x;
130 mousePos[1] = y;
132 vector playerPos = GetGame().GetPlayer().GetWorldPosition();
133 if (GetMapPos() != playerPos)
135 worldPos[1] = GetGame().SurfaceY(worldPos[0], worldPos[2]);
136
137 if (m_MouseCurPos)
138 {
139 m_MouseCurPos.SetText("Mouse: "+ MiscGameplayFunctions.TruncateToS(worldPos[0]) +", "+ MiscGameplayFunctions.TruncateToS(worldPos[1]) +", "+ MiscGameplayFunctions.TruncateToS(worldPos[2]));
140 }
142 {
143 float dst = (worldPos - playerPos).Length();
144
145 m_MapDistWidget.SetText("Distance: " + MiscGameplayFunctions.TruncateToS(dst));
146 }
148 {
149 vector playerCamDir = GetGame().GetCurrentCameraDirection();
151 m_MapHeadingWidget.SetText("Heading:" +heading.ToString());
152 }
153 }
Definition EnMath3D.c:28
Definition EnMath.c:7
static proto float AngleFromPosition(vector origin, vector originDir, vector target)
Angle that a target is from the direction of an origin.
static const float RAD2DEG
Definition EnMath.c:16

Перекрестные ссылки Math3D::AngleFromPosition(), GetGame(), GetMapPos(), GetMousePos(), GetPlayer(), m_DebugMapWidget, m_MapDistWidget, m_MapHeadingWidget, m_MouseCurPos, Math::RAD2DEG, MapWidget::ScreenToMap(), x и y.

Используется в Update().

◆ UpdateSelectedColor()

void UpdateSelectedColor ( ImageWidget buttonBackground)
inlineprotected
327 {
329 m_SelectedBackground.SetColor(0xFF141414);
330
331 buttonBackground.SetColor(COLOR_RED);
332
334 }
ImageWidget m_SelectedBackground
Definition ScriptConsoleSoundsTab.c:36

Перекрестные ссылки COLOR_RED и m_SelectedBackground.

Используется в OnClick().

Поля

◆ DEBUG_MAP_ZOOM

float DEBUG_MAP_ZOOM = 1
staticprotected

Используется в ScriptConsoleSoundsTab() и ~ScriptConsoleSoundsTab().

◆ m_BBackgroundSound

ImageWidget m_BBackgroundSound
protected

Используется в OnClick() и ScriptConsoleSoundsTab().

◆ m_BBackgroundSoundAttachment

ImageWidget m_BBackgroundSoundAttachment
protected

Используется в OnClick() и ScriptConsoleSoundsTab().

◆ m_BBackgroundSoundVoice

ImageWidget m_BBackgroundSoundVoice
protected

Используется в OnClick() и ScriptConsoleSoundsTab().

◆ m_BBackgroundSoundWeapon

ImageWidget m_BBackgroundSoundWeapon
protected

Используется в OnClick() и ScriptConsoleSoundsTab().

◆ m_CheckBoxBackAtt

CheckBoxWidget m_CheckBoxBackAtt
protected

◆ m_CheckBoxBodyAtt

CheckBoxWidget m_CheckBoxBodyAtt
protected

◆ m_CheckBoxShoulderAtt

CheckBoxWidget m_CheckBoxShoulderAtt
protected

◆ m_CopySoundset

ButtonWidget m_CopySoundset
protected

Используется в OnClick() и ScriptConsoleSoundsTab().

◆ m_DebugMapWidget

MapWidget m_DebugMapWidget
protected

◆ m_MapDistWidget

TextWidget m_MapDistWidget
protected

Используется в ScriptConsoleSoundsTab() и UpdateMousePos().

◆ m_MapHeadingWidget

TextWidget m_MapHeadingWidget
protected

Используется в ScriptConsoleSoundsTab() и UpdateMousePos().

◆ m_MapPos

vector m_MapPos
protected

Используется в GetMapPos() и SetMapPos().

◆ m_MouseCurPos

TextWidget m_MouseCurPos
protected

Используется в ScriptConsoleSoundsTab() и UpdateMousePos().

◆ m_PlayerPosRefreshBlocked

bool m_PlayerPosRefreshBlocked
protected

Используется в OnMouseButtonDown().

◆ m_PlaySoundEventButton

ButtonWidget m_PlaySoundEventButton
protected

Используется в OnClick() и ScriptConsoleSoundsTab().

◆ m_PlaySoundset

ButtonWidget m_PlaySoundset
protected

Используется в OnClick() и ScriptConsoleSoundsTab().

◆ m_PlaySoundsetLooped

ButtonWidget m_PlaySoundsetLooped
protected

Используется в OnClick() и ScriptConsoleSoundsTab().

◆ m_RefreshFilterTimer

ref Timer m_RefreshFilterTimer = new Timer()
protected

Используется в OnChange().

◆ m_SelectedAttachments

string m_SelectedAttachments
staticprotected

◆ m_SelectedBackground

ImageWidget m_SelectedBackground
protected

Используется в UpdateSelectedColor().

◆ m_SelectedID

int m_SelectedID
staticprotected

Используется в PlaySoundEvent() и ScriptConsoleSoundsTab().

◆ m_SelectedSoundEventType

string m_SelectedSoundEventType
staticprotected

Используется в OnClick(), PlaySoundEvent() и ScriptConsoleSoundsTab().

◆ m_SetETSoundAttachmentButton

ButtonWidget m_SetETSoundAttachmentButton
protected

Используется в OnClick() и ScriptConsoleSoundsTab().

◆ m_SetETSoundButton

ButtonWidget m_SetETSoundButton
protected

Используется в OnClick() и ScriptConsoleSoundsTab().

◆ m_SetETSoundVoiceButton

ButtonWidget m_SetETSoundVoiceButton
protected

Используется в OnClick() и ScriptConsoleSoundsTab().

◆ m_SetETSoundWeaponButton

ButtonWidget m_SetETSoundWeaponButton
protected

Используется в OnClick() и ScriptConsoleSoundsTab().

◆ m_SoundEventIDBox

EditBoxWidget m_SoundEventIDBox
protected

Используется в OnDoubleClick(), PlaySoundEvent() и ScriptConsoleSoundsTab().

◆ m_SoundFilter

EditBoxWidget m_SoundFilter
protected

◆ m_SoundSet

EffectSound m_SoundSet
staticprotected

Используется в HandleKeys() и OnClick().

◆ m_SoundsTextListbox

TextListboxWidget m_SoundsTextListbox
protected

◆ m_StopSoundset

ButtonWidget m_StopSoundset
protected

Используется в OnClick() и ScriptConsoleSoundsTab().


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