public void NappyOnClick() { panel_Input.SetActive(true); panel_Input.transform.Find("Wee_Button").gameObject.SetActive(true); panel_Input.transform.Find("Poo_Button").gameObject.SetActive(true); panel_Input.transform.Find("Both_Button").gameObject.SetActive(true); Panel_Input pI = panel_Input.GetComponent <Panel_Input>(); pI.sourceButton = gameObject; pI.inputField_2.gameObject.SetActive(false); }
public void OnClick() { panel_Input.SetActive(true); pI = panel_Input.GetComponent <Panel_Input>(); pI.sourceButton = sourceButton; pI.sourceButtonType = sourceButtonType;//把召喚此頁面的button Type傳入panel input中 pI.inputField_1.gameObject.SetActive(true); pI.inputField_1.Select(); SetManualInputPanel(sourceButtonType); recordsPanel.GetComponent <Records_Panel>().CloseRecordsPanel(); //關閉record面板好讓推出輸入時record界面更新最新加入的record }
public void FoodOnClick() { panel_Input.SetActive(true); //imageNotTiming.SetActive(true); Panel_Input pI = panel_Input.GetComponent <Panel_Input>(); pI.sourceButton = gameObject; pI.manualInputDateTime = false; pI.inputField_2.Select(); pI.text_Title_2.text = "Input solids type"; pI.text_Placeholder_2.text = "for example : blueberry "; pI.inputField_2.GetComponent <InputField>().contentType = InputField.ContentType.Standard; pI.inputField_2.GetComponent <InputField>().characterLimit = 30; }
public void CounterOnClick() { panel_Input.SetActive(true); //imageNotTiming.SetActive(true); Panel_Input pI = panel_Input.GetComponent <Panel_Input>(); pI.sourceButton = gameObject; pI.manualInputDateTime = false; pI.inputField_2.Select(); pI.text_Title_2.text = "Input number"; pI.text_Placeholder_2.text = "unit: " + unit; pI.inputField_2.GetComponent <InputField>().characterLimit = 3; pI.inputField_2.GetComponent <InputField>().contentType = InputField.ContentType.IntegerNumber; }