Compare commits

..

No commits in common. "4766fa4d0675ace72cccf08368c69669d776c309" and "7eecd1f0110e0aaa7cf86ad8d69e069f35a4244e" have entirely different histories.

5 changed files with 27 additions and 26 deletions

View File

@ -1,12 +1,16 @@
using UnityEngine; using UnityEngine;
public class UI_TipsForPracticePanel : BasePanel public class TipsForPracticePanel : BasePanel
{ {
public void Init() public void Init()
{
}
void Start()
{ {
}
public override void ShowMe() }
public override void ShowMe()
{ {
} }
@ -16,7 +20,7 @@ public class UI_TipsForPracticePanel : BasePanel
} }
protected override void OnClick(string btnName) protected override void OnClick(string btnName)
{ {
switch (btnName) switch (btnName)

View File

@ -18,15 +18,11 @@ public class UI_CustomSessionPanel : BasePanel
{ {
this.triggerID = triggerID; this.triggerID = triggerID;
callBack += _callBack; callBack += _callBack;
GetControl<TextMeshProUGUI>("ClientText_DialogBox").text = ""; //GetControl<TextMeshProUGUI>("ClientText_DialogBox").text = clientTalk /*"好的"*/;
//UItext = GetControl<TextMeshProUGUI>("ClientText_DialogBox"); //UItext = GetControl<TextMeshProUGUI>("ClientText_DialogBox");
StartTypewriterEffect(clientTalk); StartTypewriterEffect(clientTalk);
} }
public override void HideMe()
{
base.HideMe();
}
//} //}
/// <summary> /// <summary>
/// 按钮点击 /// 按钮点击
@ -37,6 +33,7 @@ public class UI_CustomSessionPanel : BasePanel
switch (btnName) switch (btnName)
{ {
case "ClientContinueBtn": case "ClientContinueBtn":
//GameManager.UIMgr.HidePanel<UI_CustomSessionPanel>();
callBack?.Invoke(triggerID); callBack?.Invoke(triggerID);
break; break;
} }

View File

@ -127,6 +127,17 @@ public class UI_MenuBar : BasePanel
notifyBtn.gameObject.SetActive(type == E_SceneType.Site); notifyBtn.gameObject.SetActive(type == E_SceneType.Site);
} }
private void OpenMenu()
{
GetControl<Image>("CloseDefaultBtn").sprite = ExpandSprite;
GetControl<Image>("MenuBar").rectTransform.DOAnchorPosX(0, 0.5f);
}
private void CloseMenu()
{
GetControl<Image>("MenuBar").rectTransform.DOAnchorPosX(110, 0.5f);
GetControl<Image>("CloseDefaultBtn").sprite = CollapseSprite;
}
/// <summary> /// <summary>
/// 倒计时 /// 倒计时
@ -144,17 +155,6 @@ public class UI_MenuBar : BasePanel
CloseMenu(); CloseMenu();
} }
} }
private void OpenMenu()
{
GetControl<Image>("CloseDefaultBtn").sprite = CollapseSprite;
GetControl<Image>("MenuBar").rectTransform.DOAnchorPosX(0, 0.2f);
}
private void CloseMenu()
{
GetControl<Image>("CloseDefaultBtn").sprite = ExpandSprite;
GetControl<Image>("MenuBar").rectTransform.DOAnchorPosX(110, 0.2f);
}
protected override void OnClick(string btnName) protected override void OnClick(string btnName)
{ {
switch (btnName) switch (btnName)

View File

@ -14,8 +14,8 @@ public class UI_ReceiveTaskPanel : BasePanel
Vector3 uiPos = Vector3.zero; Vector3 uiPos = Vector3.zero;
RectTransformUtility.ScreenPointToWorldPointInRectangle(rPanel, pos, null, out uiPos); RectTransformUtility.ScreenPointToWorldPointInRectangle(rPanel, pos, null, out uiPos);
rPanel.position = uiPos; rPanel.position = uiPos;
rPanel.DOLocalMove(new Vector3(588, 0, 0), 1f); rPanel.DOLocalMove(new Vector3(588, 0, 0), 1.5f);
rPanel.DOScale(new Vector3(1, 1, 1), 1f); rPanel.DOScale(new Vector3(1, 1, 1), 1.5f);
this.triggerName = triggerName; this.triggerName = triggerName;
} }
protected override void OnClick(string btnName) protected override void OnClick(string btnName)