6 m_TickTimer.Run(0.1,
this,
"OnGUITimer", NULL,
true);
22 m_TickTimer.Run(0.1,
this,
"OnGUITimer", NULL,
true);
38 string soundsetName =
"BearGrowl_SoundSet";
44 vector posOffset =
"0 0 0";
51 posOffset[0] = posVal;
57 posOffset[1] = posVal;
63 posOffset[2] = posVal;
70 m_soundObject = m_soundBuilder.BuildSoundObject();
80 vector posOffset2 =
"0 10 0";
82 if(m_soundParams != NULL)
102 posVal2 = posOffset2[0];
105 posOffset2[0] = posVal2;
109 posVal2 = posOffset2[1];
112 posOffset2[1] = posVal2;
116 posVal2 = posOffset2[2];
119 posOffset2[2] = posVal2;
132 m_wave.SetFadeInFactor(fadeInVolume);
140 DbgUI.
Text(
"Wave length: " + m_wave.GetLength() +
"s");
149 m_wave.SetVolume(volume);
152 m_wave.SetVolumeRelative(volume);
178 float fadeInVolume = 1.1;
179 float fadeOutVolume = 0.9;
class SoundObjectBuilder SoundObject(SoundParams soundParams)
class JsonUndergroundAreaTriggerData GetPosition
proto native AbstractSoundScene GetSoundScene()
ref Timer m_TickTimer
status refresh timer
ref SoundParams m_soundParams
ref SoundObjectBuilder m_soundBuilder
override void OnDestroy()
ref SoundObject m_soundObject
override void OnUpdate(float delta_time)
proto native CGame GetGame()
static proto native void PushID_Int(int int_id)
static proto native bool Button(string txt, int minWidth=0)
static proto native void Begin(string windowTitle, float x=0, float y=0)
static proto void BeginCleanupScope()
static proto void InputFloat(string txt, out float value, int pxWidth=150)
static proto native void Text(string label)
static proto native void PopID()
static proto native void EndCleanupScope()
static proto void InputText(string txt, out string value, int pxWidth=150)
static proto native void End()
static proto native void PushID_Str(string str_id)
static proto native void SameLine()