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

◆ ScriptConsoleSoundsTab()

void ScriptConsoleSoundsTab::ScriptConsoleSoundsTab ( Widget root,
ScriptConsole console,
Widget button,
ScriptConsoleTabBase parent = null )
inlineprotected

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

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
95 string lastSelection = m_SelectedAttachments;
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()
Определения ModifierBase.c:51
TextWidget m_MapHeadingWidget
Определения ScriptConsoleSoundsTab.c:30
TextWidget m_MouseCurPos
Определения ScriptConsoleSoundsTab.c:29
ImageWidget m_BBackgroundSoundVoice
Определения ScriptConsoleSoundsTab.c:35
MapWidget m_DebugMapWidget
Определения ScriptConsoleSoundsTab.c:27
ButtonWidget m_PlaySoundsetLooped
Определения ScriptConsoleSoundsTab.c:17
ButtonWidget m_SetETSoundVoiceButton
Определения ScriptConsoleSoundsTab.c:13
static int m_SelectedID
Определения ScriptConsoleSoundsTab.c:6
ButtonWidget m_PlaySoundEventButton
Определения ScriptConsoleSoundsTab.c:14
ButtonWidget m_SetETSoundButton
Определения ScriptConsoleSoundsTab.c:10
ButtonWidget m_CopySoundset
Определения ScriptConsoleSoundsTab.c:15
ImageWidget m_BBackgroundSound
Определения ScriptConsoleSoundsTab.c:32
void ChangeFilterSound()
Определения ScriptConsoleSoundsTab.c:455
EditBoxWidget m_SoundEventIDBox
Определения ScriptConsoleSoundsTab.c:20
CheckBoxWidget m_CheckBoxBodyAtt
Определения ScriptConsoleSoundsTab.c:39
EditBoxWidget m_SoundFilter
Определения ScriptConsoleSoundsTab.c:21
ImageWidget m_BBackgroundSoundWeapon
Определения ScriptConsoleSoundsTab.c:33
static string m_SelectedSoundEventType
Определения ScriptConsoleSoundsTab.c:7
ButtonWidget m_SetETSoundWeaponButton
Определения ScriptConsoleSoundsTab.c:11
CheckBoxWidget m_CheckBoxBackAtt
Определения ScriptConsoleSoundsTab.c:40
override bool OnClick(Widget w, int x, int y, int button)
Определения ScriptConsoleSoundsTab.c:363
void SetMapPos(vector pos)
Определения ScriptConsoleSoundsTab.c:289
CheckBoxWidget m_CheckBoxShoulderAtt
Определения ScriptConsoleSoundsTab.c:38
TextListboxWidget m_SoundsTextListbox
Определения ScriptConsoleSoundsTab.c:22
ButtonWidget m_StopSoundset
Определения ScriptConsoleSoundsTab.c:18
static string m_SelectedAttachments
Определения ScriptConsoleSoundsTab.c:8
TextWidget m_MapDistWidget
Определения ScriptConsoleSoundsTab.c:28
static float DEBUG_MAP_ZOOM
Определения ScriptConsoleSoundsTab.c:4
ButtonWidget m_PlaySoundset
Определения ScriptConsoleSoundsTab.c:16
ImageWidget m_BBackgroundSoundAttachment
Определения ScriptConsoleSoundsTab.c:34
ButtonWidget m_SetETSoundAttachmentButton
Определения ScriptConsoleSoundsTab.c:12
PluginConfigDebugProfile m_ConfigDebugProfile
Определения ScriptConsoleTabBase.c:11
proto native CGame GetGame()
bool Contains(string sample)
Returns true if sample is substring of string.
Определения EnString.c:286

Перекрестные ссылки ChangeFilterSound(), string::Contains(), 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(), ScriptConsoleTabBase::ScriptConsoleTabBase() и SetMapPos().