复盘回访按钮修改
This commit is contained in:
parent
bb1dc8f2da
commit
846768e49e
|
@ -13,6 +13,7 @@ public class GameMain : MonoBehaviour {
|
|||
|
||||
public static bool model =false;
|
||||
public static bool tiao =true;
|
||||
public static bool visit = false;
|
||||
private void Start()
|
||||
{
|
||||
GameObject.Find("UIRoot1").SetActive(false);
|
||||
|
|
|
@ -31,6 +31,7 @@ public class Judgmentstate : MonoBehaviour
|
|||
fanhui1.onClick.AddListener(() =>
|
||||
{
|
||||
GameMain.tiao = false;
|
||||
GameMain.visit = true;
|
||||
//SceneManager.LoadScene("SampleScene");
|
||||
OnLeaveRoom();
|
||||
});
|
||||
|
|
|
@ -8,7 +8,7 @@ using XFrame.Core.UI;
|
|||
|
||||
public class Main_interface_Panel : XUIPanel
|
||||
{
|
||||
public Button fanhui_btn;//返回初始界面
|
||||
public static Button fanhui_btn;//返回初始界面
|
||||
public Button train;
|
||||
public Button replay;
|
||||
public Button appQuet;
|
||||
|
|
|
@ -44,6 +44,7 @@ public class Taskpanel : MonoBehaviour
|
|||
fanhui.onClick.AddListener(() =>
|
||||
{
|
||||
GameMain.tiao = false;
|
||||
GameMain.visit = true;
|
||||
OnLeaveRoom();
|
||||
});
|
||||
two_dimensional.onClick.AddListener(() =>
|
||||
|
|
|
@ -90,7 +90,9 @@ public class View_Panel2 : XUIPanel
|
|||
public Button entering_key_btn;//进入导调按钮
|
||||
public Button scenario_btn;//想定编辑
|
||||
public Button refresh_btn;//刷新房间按钮
|
||||
|
||||
public Button playback_btn;//复盘回访按钮
|
||||
|
||||
|
||||
public View_Panel2() : base(UIType.Normal, UIMode.HideOther, UICollider.Normal)
|
||||
{
|
||||
uiPath = "UIPanel/View_Panel2";
|
||||
|
@ -114,7 +116,7 @@ public class View_Panel2 : XUIPanel
|
|||
off3_btn = GameObject.Find("View_Panel2(Clone)").transform.GetChild(4).transform.GetChild(1).GetComponent<Button>();
|
||||
place = GameObject.Find("View_Panel2(Clone)").transform.GetChild(1).transform.GetChild(0).transform.GetChild(0).GetComponent<Transform>();
|
||||
//Storm_and_capture_panl
|
||||
|
||||
playback_btn = GameObject.Find("Main_interface_Panel(Clone)/UPBG/double_quotation_btn").GetComponent<Button>();
|
||||
Storm_and_capture_panl = this.transform.Find("Storm_and_capture_panl").gameObject;
|
||||
submitView = Storm_and_capture_panl.transform.Find("SubmitView").gameObject;
|
||||
submitInstruct = submitView.transform.Find("Bg/Instruct").GetComponent<Text>();
|
||||
|
@ -156,8 +158,7 @@ public class View_Panel2 : XUIPanel
|
|||
jobInputField = selector_panl.transform.Find("JobInputField").GetComponent<InputField>();
|
||||
userItem = userConent.GetChild(0).gameObject;
|
||||
thinkingDropdown.options.Clear();
|
||||
|
||||
|
||||
|
||||
tijiao_btn.onClick.AddListener(() =>
|
||||
{
|
||||
if (!string.IsNullOrEmpty(currentAccount))
|
||||
|
@ -236,12 +237,15 @@ public class View_Panel2 : XUIPanel
|
|||
break;
|
||||
case "02":
|
||||
start_training_btn.gameObject.SetActive(false);
|
||||
playback_btn.gameObject.SetActive(false);
|
||||
break;
|
||||
case "03":
|
||||
start_training_btn.gameObject.SetActive(false);
|
||||
playback_btn.gameObject.SetActive(false);
|
||||
break;
|
||||
case "04":
|
||||
case "05":
|
||||
playback_btn.gameObject.SetActive(false);
|
||||
entering_key_btn.gameObject.SetActive(false);
|
||||
//append_btn.interactable = false;
|
||||
append_btn.gameObject.SetActive(false);
|
||||
|
@ -249,6 +253,10 @@ public class View_Panel2 : XUIPanel
|
|||
scenario_btn.gameObject.SetActive(false);
|
||||
break;
|
||||
}
|
||||
if (GameMain.visit)
|
||||
{
|
||||
playback_btn.gameObject.SetActive(true);
|
||||
}
|
||||
OnRegisterFunction();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue