summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XChatSmallBehaviour.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-25 14:28:30 +0800
committerchai <chaifix@163.com>2021-01-25 14:28:30 +0800
commit6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch)
tree7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/XChatSmallBehaviour.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/XChatSmallBehaviour.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/XChatSmallBehaviour.cs85
1 files changed, 85 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/XChatSmallBehaviour.cs b/Client/Assets/Scripts/XMainClient/XChatSmallBehaviour.cs
new file mode 100644
index 00000000..e20a6ec0
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/XChatSmallBehaviour.cs
@@ -0,0 +1,85 @@
+using System;
+using System.Collections.Generic;
+using UILib;
+using XMainClient.UI.UICommon;
+using XUtliPoolLib;
+
+namespace XMainClient
+{
+ internal class XChatSmallBehaviour : DlgBehaviourBase
+ {
+ public static uint m_MaxShowMsg = 10u;
+
+ public IXUISprite m_BgSprite;
+
+ public IXUISprite m_RedPoint;
+
+ public IXUISprite m_BgSpriteMini;
+
+ public IXUISprite m_BgSpriteMain;
+
+ public IXUISprite m_OpenWindow;
+
+ public IXUISprite m_OpenWindowMini;
+
+ public IXUILabelSymbol m_MiniText;
+
+ public IXUISprite m_MiniTemplate;
+
+ public IXUILabel m_AudioName;
+
+ public IXUILabel m_AudioTime;
+
+ public IXUILabel m_AudioContent;
+
+ public IXUISprite m_MiniAudioTemplate;
+
+ public XUIPool m_ChatPool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);
+
+ public IXUIScrollView m_ScrollView;
+
+ public List<XSmallChatInfo> ChatUIInfoList = new List<XSmallChatInfo>();
+
+ public IXUITweenTool m_TweenTool;
+
+ public IXUITweenTool m_BgTweenTool;
+
+ public IXUISprite m_MainPanel;
+
+ public IXUIPanel m_panel;
+
+ public IXUIPanel m_contentPanel;
+
+ public IXUISprite m_sprMailRed;
+
+ public IXUIProgress m_Exp;
+
+ public IXUILabel m_ExpValue;
+
+ private void Awake()
+ {
+ this.m_BgSprite = (base.transform.Find("Alphaboard/Bg/Back").GetComponent("XUISprite") as IXUISprite);
+ this.m_sprMailRed = (base.transform.Find("Alphaboard/Bg/mailredpoint").GetComponent("XUISprite") as IXUISprite);
+ this.m_ScrollView = (base.transform.Find("Alphaboard/Bg/ChatContent").GetComponent("XUIScrollView") as IXUIScrollView);
+ this.m_RedPoint = (base.transform.Find("Alphaboard/Bg/redpoint").GetComponent("XUISprite") as IXUISprite);
+ this.m_BgSpriteMini = (base.transform.Find("Alphaboard/Bg2").GetComponent("XUISprite") as IXUISprite);
+ this.m_BgSpriteMain = (base.transform.Find("Alphaboard/Bg").GetComponent("XUISprite") as IXUISprite);
+ this.m_OpenWindow = (base.transform.Find("Alphaboard/Bg/go").GetComponent("XUISprite") as IXUISprite);
+ this.m_OpenWindowMini = (base.transform.Find("Alphaboard/Bg2/go").GetComponent("XUISprite") as IXUISprite);
+ this.m_MiniText = (base.transform.Find("Alphaboard/Bg2/ChatContent/template/content").GetComponent("XUILabelSymbol") as IXUILabelSymbol);
+ this.m_MiniTemplate = (base.transform.Find("Alphaboard/Bg2/ChatContent/template").GetComponent("XUISprite") as IXUISprite);
+ this.m_AudioName = (base.transform.Find("Alphaboard/Bg2/ChatContent/templateaudio/name").GetComponent("XUILabel") as IXUILabel);
+ this.m_AudioTime = (base.transform.Find("Alphaboard/Bg2/ChatContent/templateaudio/time").GetComponent("XUILabel") as IXUILabel);
+ this.m_AudioContent = (base.transform.Find("Alphaboard/Bg2/ChatContent/templateaudio/content").GetComponent("XUILabel") as IXUILabel);
+ this.m_MiniAudioTemplate = (base.transform.Find("Alphaboard/Bg2/ChatContent/templateaudio").GetComponent("XUISprite") as IXUISprite);
+ this.m_contentPanel = (base.transform.Find("Alphaboard/Bg/ChatContent").GetComponent("XUIPanel") as IXUIPanel);
+ this.m_ChatPool.SetupPool(base.transform.Find("Alphaboard/Bg/ChatContent").gameObject, base.transform.Find("Alphaboard/Bg/ChatContent/template").gameObject, 4u, false);
+ this.m_TweenTool = (base.transform.Find("Alphaboard/Bg").GetComponent("XUIPlayTween") as IXUITweenTool);
+ this.m_BgTweenTool = (base.transform.Find("Alphaboard").GetComponent("XUIPlayTween") as IXUITweenTool);
+ this.m_MainPanel = (base.transform.Find("Alphaboard").GetComponent("XUISprite") as IXUISprite);
+ this.m_panel = (base.transform.GetComponent("XUIPanel") as IXUIPanel);
+ this.m_Exp = (base.transform.Find("Alphaboard/Bg/Exp").GetComponent("XUIProgress") as IXUIProgress);
+ this.m_ExpValue = (this.m_Exp.gameObject.transform.Find("content").GetComponent("XUILabel") as IXUILabel);
+ }
+ }
+}