From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/XChatVoiceStatusBehaviour.cs | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/XChatVoiceStatusBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/XChatVoiceStatusBehaviour.cs') diff --git a/Client/Assets/Scripts/XMainClient/XChatVoiceStatusBehaviour.cs b/Client/Assets/Scripts/XMainClient/XChatVoiceStatusBehaviour.cs new file mode 100644 index 00000000..6c9d59d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatVoiceStatusBehaviour.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XChatVoiceStatusBehaviour : DlgBehaviourBase + { + public static uint MAX_VOL_NUM = 7u; + + public List m_Volume = new List(); + + private void Awake() + { + int num = 0; + while ((long)num < (long)((ulong)XChatVoiceStatusBehaviour.MAX_VOL_NUM)) + { + IXUISprite item = base.transform.Find("Bg/SpeakPanel/speakstatus/Info/P" + num.ToString()).GetComponent("XUISprite") as IXUISprite; + this.m_Volume.Add(item); + num++; + } + } + } +} -- cgit v1.1-26-g67d0