summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XChatBehaviour.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/XChatBehaviour.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/XChatBehaviour.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/XChatBehaviour.cs182
1 files changed, 182 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/XChatBehaviour.cs b/Client/Assets/Scripts/XMainClient/XChatBehaviour.cs
new file mode 100644
index 00000000..ccf17122
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/XChatBehaviour.cs
@@ -0,0 +1,182 @@
+using System;
+using UILib;
+using UnityEngine;
+using XMainClient.UI.UICommon;
+using XUtliPoolLib;
+
+namespace XMainClient
+{
+ internal class XChatBehaviour : DlgBehaviourBase
+ {
+ public IXUISprite m_sprTq;
+
+ public IXUILabel m_lblPriviledge;
+
+ public IXUIButton m_ChangeToVoice;
+
+ public IXUILabel m_ChatTextCost;
+
+ public IXUISprite m_TextBoard;
+
+ public IXUISprite m_LimitBoard;
+
+ public IXUIButton m_DoSendChat;
+
+ public IXUILabel m_ChatText;
+
+ public IXUIInput m_ChatInput;
+
+ public IXUILabelSymbol m_ChatSymbol;
+
+ public IXUIInput m_Input;
+
+ public IXUIButton m_Close;
+
+ public IXUIButton m_GetFlowerBtn;
+
+ public IXUILabel m_GetFlowerLeftTime;
+
+ public IXUILabel m_FlowerOwnCount;
+
+ public GameObject m_Flower;
+
+ public GameObject m_FlowerEff;
+
+ public GameObject m_SpeakEff;
+
+ public GameObject m_objFriendBar;
+
+ public GameObject m_objGroupBar;
+
+ public IXUITweenTool m_FlowerTween;
+
+ public IXUILabel m_lblWorldTimes;
+
+ public IXUITweenTool m_worldTween;
+
+ public IXUIButton m_btnAdd;
+
+ public IXUISprite m_sprFriendClear;
+
+ public IXUISprite m_sprFriendAdd;
+
+ public IXUISprite m_sprFriendBack;
+
+ public IXUISprite m_sprFriendChat;
+
+ public IXUILabel m_lblFriendTip;
+
+ public IXUISprite m_sprGroupBind;
+
+ public IXUISprite m_sprGroupQuit;
+
+ public IXUILabel m_lblGroupChat;
+
+ public IXUISprite m_sprGroupClear;
+
+ public IXUISprite m_sprGroupBack;
+
+ public IXUISprite m_sprGroupCreate;
+
+ public IXUISprite m_sprMember;
+
+ public IXUISprite m_sprList;
+
+ public IXUISprite m_sprMore;
+
+ public Transform m_tranOffset;
+
+ public IXUIPanel m_panelRoot;
+
+ public IXUIPanel m_panelText;
+
+ public IXUIPanel m_panelSubMenu;
+
+ public IXUISprite m_sprSet;
+
+ public IXUISprite m_sprMail;
+
+ public IXUISprite m_sprMailRedpoint;
+
+ public IXUISprite m_sprXinyue;
+
+ public IXUISprite m_sprXinyueRed;
+
+ public IXUISprite m_sprFriend;
+
+ public IXUICheckBox m_chxAutoVoice;
+
+ public IXUILabel m_lblAutoVoice;
+
+ public GameObject m_btns;
+
+ public ILoopScrollView m_loopView;
+
+ public ILoopScrollView m_friendView;
+
+ public ILoopScrollView m_groupView;
+
+ public ILoopScrollView m_systemView;
+
+ private void Awake()
+ {
+ this.m_sprTq = (base.transform.Find("Bg/ChatTopText/world_times/tq").GetComponent("XUISprite") as IXUISprite);
+ this.m_lblPriviledge = (this.m_sprTq.gameObject.transform.Find("Txt").GetComponent("XUILabel") as IXUILabel);
+ this.m_ChangeToVoice = (base.transform.Find("Bg/ChatTopText/speak").GetComponent("XUIButton") as IXUIButton);
+ this.m_SpeakEff = base.transform.Find("Bg/ChatTopText/speak/Effect").gameObject;
+ this.m_ChatTextCost = (base.transform.Find("Bg/ChatTopText/speak/cost").GetComponent("XUILabel") as IXUILabel);
+ this.m_TextBoard = (base.transform.Find("Bg/ChatTopText").GetComponent("XUISprite") as IXUISprite);
+ this.m_LimitBoard = (base.transform.Find("Bg/LvLimit").GetComponent("XUISprite") as IXUISprite);
+ this.m_DoSendChat = (base.transform.Find("Bg/ChatTopText/sendchat").GetComponent("XUIButton") as IXUIButton);
+ this.m_ChatText = (base.transform.Find("Bg/ChatTopText/textinput/chattext").GetComponent("XUILabel") as IXUILabel);
+ this.m_ChatInput = (base.transform.Find("Bg/ChatTopText/textinput").GetComponent("XUIInput") as IXUIInput);
+ this.m_ChatSymbol = (base.transform.Find("Bg/ChatTopText/textinput/chattext").GetComponent("XUILabelSymbol") as IXUILabelSymbol);
+ this.m_Input = (base.transform.Find("Bg/ChatTopText/textinput").GetComponent("XUIInput") as IXUIInput);
+ this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton);
+ this.m_Flower = base.transform.Find("Bg/ChatTopText/getFlower").gameObject;
+ this.m_GetFlowerBtn = (base.transform.Find("Bg/ChatTopText/getFlower/flower").GetComponent("XUIButton") as IXUIButton);
+ this.m_GetFlowerLeftTime = (base.transform.Find("Bg/ChatTopText/getFlower/leftTime").GetComponent("XUILabel") as IXUILabel);
+ this.m_GetFlowerLeftTime.SetText("");
+ this.m_FlowerOwnCount = (base.transform.Find("Bg/ChatTopText/getFlower/label").GetComponent("XUILabel") as IXUILabel);
+ this.m_FlowerOwnCount.SetText("0");
+ this.m_FlowerEff = base.transform.Find("Bg/ChatTopText/getFlower/effect").gameObject;
+ this.m_FlowerTween = (base.transform.Find("Bg/ChatTopText/getFlower/flower").GetComponent("XUIPlayTween") as IXUITweenTool);
+ this.m_lblWorldTimes = (base.transform.Find("Bg/ChatTopText/world_times").GetComponent("XUILabel") as IXUILabel);
+ this.m_worldTween = (base.transform.Find("Bg/ChatTopText/world_times").GetComponent("XUIPlayTween") as IXUITweenTool);
+ this.m_btnAdd = (base.transform.Find("Bg/ChatTopText/addBtn").GetComponent("XUIButton") as IXUIButton);
+ this.m_objFriendBar = base.transform.Find("Bg/friendToolBar").gameObject;
+ this.m_objGroupBar = base.transform.Find("Bg/groupChatBar").gameObject;
+ this.m_sprFriendClear = (base.transform.Find("Bg/friendToolBar/BtnClear").GetComponent("XUISprite") as IXUISprite);
+ this.m_sprFriendAdd = (base.transform.Find("Bg/friendToolBar/BtnAdd").GetComponent("XUISprite") as IXUISprite);
+ this.m_sprFriendBack = (base.transform.Find("Bg/friendToolBar/BtnBack").GetComponent("XUISprite") as IXUISprite);
+ this.m_sprFriendChat = (base.transform.Find("Bg/friendToolBar/BtnChat").GetComponent("XUISprite") as IXUISprite);
+ this.m_lblFriendTip = (base.transform.Find("Bg/friendToolBar/Chatting").GetComponent("XUILabel") as IXUILabel);
+ this.m_sprGroupBack = (this.m_objGroupBar.transform.Find("BtnBack").GetComponent("XUISprite") as IXUISprite);
+ this.m_sprGroupQuit = (this.m_objGroupBar.transform.Find("Submenu/BtnQuit").GetComponent("XUISprite") as IXUISprite);
+ this.m_sprGroupClear = (this.m_objGroupBar.transform.Find("BtnClear").GetComponent("XUISprite") as IXUISprite);
+ this.m_sprMember = (this.m_objGroupBar.transform.Find("Submenu/BtnMember").GetComponent("XUISprite") as IXUISprite);
+ this.m_sprList = (this.m_objGroupBar.transform.Find("Submenu/BtnList").GetComponent("XUISprite") as IXUISprite);
+ this.m_panelSubMenu = (this.m_objGroupBar.transform.Find("Submenu").GetComponent("XUIPanel") as IXUIPanel);
+ this.m_sprMore = (this.m_objGroupBar.transform.Find("BtnMore").GetComponent("XUISprite") as IXUISprite);
+ this.m_sprGroupBind = (this.m_objGroupBar.transform.Find("BtnBind").GetComponent("XUISprite") as IXUISprite);
+ this.m_sprGroupCreate = (this.m_objGroupBar.transform.Find("BtnCreate").GetComponent("XUISprite") as IXUISprite);
+ this.m_lblGroupChat = (this.m_objGroupBar.transform.Find("Chatting").GetComponent("XUILabel") as IXUILabel);
+ this.m_tranOffset = base.transform.Find("Bg/loopoffset");
+ this.m_panelRoot = (base.GetComponent("XUIPanel") as IXUIPanel);
+ this.m_panelText = (this.m_TextBoard.gameObject.GetComponent("XUIPanel") as IXUIPanel);
+ this.m_loopView = (base.transform.Find("Bg/loopoffset/loopScroll").GetComponent("LoopScrollView") as ILoopScrollView);
+ this.m_friendView = (base.transform.Find("Bg/friendsScroll").GetComponent("LoopScrollView") as ILoopScrollView);
+ this.m_groupView = (base.transform.Find("Bg/groupsScroll").GetComponent("LoopScrollView") as ILoopScrollView);
+ this.m_systemView = (base.transform.Find("Bg/systemScroll").GetComponent("LoopScrollView") as ILoopScrollView);
+ this.m_sprSet = (base.transform.Find("Bg/btns/Setting").GetComponent("XUISprite") as IXUISprite);
+ this.m_sprMail = (base.transform.Find("Bg/btns/Mail").GetComponent("XUISprite") as IXUISprite);
+ this.m_sprMailRedpoint = (base.transform.Find("Bg/btns/Mail/redpoint").GetComponent("XUISprite") as IXUISprite);
+ this.m_sprXinyue = (base.transform.Find("Bg/btns/Xinyue").GetComponent("XUISprite") as IXUISprite);
+ this.m_sprXinyueRed = (this.m_sprXinyue.transform.Find("redpoint").GetComponent("XUISprite") as IXUISprite);
+ this.m_sprFriend = (base.transform.Find("Bg/btns/Friend").GetComponent("XUISprite") as IXUISprite);
+ this.m_chxAutoVoice = (base.transform.Find("Bg/btns/AutoVoice/CheckBox").GetComponent("XUICheckBox") as IXUICheckBox);
+ this.m_lblAutoVoice = (base.transform.Find("Bg/btns/AutoVoice/Text").GetComponent("XUILabel") as IXUILabel);
+ this.m_btns = base.transform.Find("Bg/btns").gameObject;
+ }
+ }
+}