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