This commit is contained in:
2020-07-04 14:41:25 +08:00
parent 70c346d2c1
commit a8f02e4da5
3748 changed files with 587372 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
using UnityEngine;
using System.Collections;
public class PanelChatTest : MonoBehaviour {
public TweenPosition twPosFaceList;
public UIInput input;
public UIRichText4Chat richText;
public UIRichText4Chat labelContent;
public void onClickSend(GameObject go) {
if (string.IsNullOrEmpty (input.value))
return;
labelContent.value += "\n" + input.value;
input.value = "";
}
public void onClick4ShowFaceList(GameObject go) {
twPosFaceList.Play (true);
}
public void onSelectedFace(GameObject go) {
twPosFaceList.Play (false);
UISprite sp = go.GetComponent<UISprite> ();
string[] strs = sp.spriteName.Split ('_');
string faceName = "";
if (strs.Length > 1) {
faceName = "#" + strs[1] + "#";
} else {
faceName = "#" + sp.spriteName + "#";
}
input.Insert (faceName);
}
}