|
@@ -228,10 +228,27 @@ namespace MetaClient
|
|
}
|
|
}
|
|
public void TiaoSeViewRefesh() {
|
|
public void TiaoSeViewRefesh() {
|
|
GameObject _obj = tiaoSeBanView.transform.GetChild(0).GetChild(0).gameObject;
|
|
GameObject _obj = tiaoSeBanView.transform.GetChild(0).GetChild(0).gameObject;
|
|
|
|
+ RemoveAllChildren(_obj, 1);
|
|
}
|
|
}
|
|
|
|
+ public void TiaoSeAddItem(GameObject _par) {
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
+ if (GameEntry.Setting.HasSetting("savecolor" + eCustomStyple + "/" + id + "/" + 3))
|
|
|
|
+ {
|
|
|
|
+ }
|
|
|
|
+ GameObject _clone = GameObject.Instantiate(colItem);
|
|
|
|
+ _clone.transform.SetParent(_par.transform);
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ public bool HasCustomColor(int _index)
|
|
|
|
+ {
|
|
|
|
+ bool _has = GameEntry.Setting.HasSetting("savecolor" + eCustomStyple + "/" + id + "/" + _index+"");
|
|
|
|
+ return _has;
|
|
|
|
+ }
|
|
|
|
+ //public UIColorData GetUIColorData(int _index) {
|
|
|
|
+ // String _str= GameEntry.Setting.GetString("savecolor" + eCustomStyple + "/" + id + "/" + _index+"");
|
|
|
|
+ // return
|
|
|
|
+ //}
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// 设置是否已在缓动
|
|
/// 设置是否已在缓动
|
|
@@ -257,7 +274,19 @@ namespace MetaClient
|
|
public void ScrollValueChange()
|
|
public void ScrollValueChange()
|
|
{
|
|
{
|
|
//Debug.Log(scrollbar.value);
|
|
//Debug.Log(scrollbar.value);
|
|
- GameEntry.Event.Fire(this, CustomRoleBodyEventArgs.Create(part, new Vector3(scrollbar.value, 0, 0)));
|
|
|
|
|
|
+ switch (eCustomStyple)
|
|
|
|
+ {
|
|
|
|
+ case ECustomStyple.None:
|
|
|
|
+ break;
|
|
|
|
+ case ECustomStyple.Body:
|
|
|
|
+ GameEntry.Event.Fire(this, CustomRoleBodyEventArgs.Create(part, new Vector3(scrollbar.value, 0, 0)));
|
|
|
|
+ break;
|
|
|
|
+ case ECustomStyple.NieLian:
|
|
|
|
+ break;
|
|
|
|
+ case ECustomStyple.Cloth:
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ // GameEntry.Event.Fire(this, CustomRoleBodyEventArgs.Create(part, new Vector3(scrollbar.value, 0, 0)));
|
|
}
|
|
}
|
|
|
|
|
|
public void BackBtn_Fun()
|
|
public void BackBtn_Fun()
|
|
@@ -547,10 +576,10 @@ namespace MetaClient
|
|
// return null;
|
|
// return null;
|
|
//}
|
|
//}
|
|
|
|
|
|
- private void RemoveAllChildren(GameObject parent)
|
|
|
|
|
|
+ private void RemoveAllChildren(GameObject parent,int _index=0)
|
|
{
|
|
{
|
|
Transform transform;
|
|
Transform transform;
|
|
- for (int i = 0; i < parent.transform.childCount; i++)
|
|
|
|
|
|
+ for (int i = _index; i < parent.transform.childCount; i++)
|
|
{
|
|
{
|
|
transform = parent.transform.GetChild(i);
|
|
transform = parent.transform.GetChild(i);
|
|
GameObject.Destroy(transform.gameObject);
|
|
GameObject.Destroy(transform.gameObject);
|