Exemplo n.º 1
0
 public void NoStatusBtn()
 {
     AlertBox.SetActive(false);
     AlertTxt.SetActive(false);
     YesBtn.SetActive(false);
     NoBtn.SetActive(false);
 }
Exemplo n.º 2
0
 void Start()
 {
     AlertBox.SetActive(false);
     AlertTxt.SetActive(false);
     YesBtn.SetActive(false);
     NoBtn.SetActive(false);
 }
Exemplo n.º 3
0
        public void AppendBoldText(string s)
        {
            int ss = AlertTxt.TextLength;

            AlertTxt.AppendText(s);
            int sl = AlertTxt.SelectionStart - ss + 1;

            Font bold = new Font(AlertTxt.Font, FontStyle.Bold);

            AlertTxt.Select(ss, sl);
            AlertTxt.SelectionFont = bold;
        }
Exemplo n.º 4
0
    // void Update(){
    //     //Invoke("YesDelBtn", 2);
    //     AlertBox.SetActive(false);
    //     YesBtn.SetActive(false);
    //     NoBtn.SetActive(false);
    // }

    public void UpdateSchoolBtn()
    {
        if (SchoolID.text == "")
        {
            msgTxt.text = "<color=red>Please input a School ID</color>";
            Debug.Log("<color=red>" + msgTxt.text + "</color>");
        }

        else
        {
            AlertBox.SetActive(true);
            AlertTxt.SetActive(true);
            YesBtn.SetActive(true);
            NoBtn.SetActive(true);
        }
    }
Exemplo n.º 5
0
    public void YesStatusBtn()
    {
        if (schoolStatus.options[schoolStatus.value].text == "Deactivate")
        {
            StartCoroutine(DeactivateSchool());
        }

        else
        {
            StartCoroutine(ActivateSchool());
        }

        AlertBox.SetActive(false);
        AlertTxt.SetActive(false);
        YesBtn.SetActive(false);
        NoBtn.SetActive(false);
    }