/* moved to Task_view abstract class * public void DisplayPanel(bool _val) //show or hide the concept panel * { * CanvasGroup cg = gameObject.GetComponent<CanvasGroup>(); * cg.alpha = _val?1:0; * cg.interactable = _val; * cg.blocksRaycasts = _val; * }*/ private void HandleNewConcept(object _sender, AddPanelEvent _args) { Debug.Log("inside HandleNewConcept"); FileReader.Instance.OpenFile(FilePathHandler); m_idNewConcept = _args.ButtonId; m_newConcept = m_panelBoard.GetPanel(m_idNewConcept).transform.Find("MainButton").GetComponent <Button>();// _args.ButtonConcept.GetComponent<Button>(); }
void HandleAddNewButton(object _sender, AddPanelEvent _eventArgs) { Debug.Log("click on add panel in controller"); //spread the signal to the rest of the application _eventArgs.ButtonId = CreateNewPanel(); addPanelEvent(this, _eventArgs); }
private void HandleAddSubtask(object _sender, AddPanelEvent _args) { m_lastPanel = _args.ButtonId; Debug.Log("Add subtask : " + m_lastPanel); DisplaySubtaskForm(true); }