void Awake() { this._PageSwapper = GameObject.FindWithTag("Pageswapper").GetComponent <Pageswapper> (); this.AchText = this.transform.FindChild("Text").GetComponent <Text> (); this.ButtonComponent = this.transform.GetComponent <Button> (); this.AchText = transform.FindChild("Text").GetComponent <Text> (); }
void Awake() { //Debug.Log ("im awake"); this.ThisPage = transform.gameObject; this.ContentPanel = transform.FindChild("Scroll View").FindChild("Viewport").FindChild("Content").transform; //Debug.Log ("this is the contentpanel" + this.ContentPanel); this.ButtonObjectPool = transform.FindChild("ButtonObjectPool").gameObject.GetComponent <SimpleObjectPool>(); this.AddTaskButton = transform.FindChild("AddTasksButton").gameObject.GetComponent <AddTaskButtonScript> (); this.PageSwapperReference = GameObject.Find("Page Swapper").gameObject.GetComponent <Pageswapper> (); }
void Awake() { this._pageSwapper = GameObject.FindWithTag("Pageswapper").GetComponent <Pageswapper>(); this.ButtonGroupPool = transform.FindChild("ButtonGroupPool").GetComponent <SimpleObjectPool> (); this.MainButtonPool = transform.FindChild("MainButtonPool").GetComponent <SimpleObjectPool> (); this.SubButtonPool = transform.FindChild("SubButtonPool").GetComponent <SimpleObjectPool> (); this.SubMenuGroupPool = transform.FindChild("SubMenuGroupPool").GetComponent <SimpleObjectPool> (); this.group = transform.FindChild("Group").transform; CreateStandardMenus(); }
public void Setup(Task currentTask, TaskScrollList currentScrollList, Pageswapper pageswapper) { TaskButton.onClick.AddListener(HandleClick); _pageswap = pageswapper; _task = currentTask; TaskLabel.text = _task.Title + " [" + _task.Id + "]"; XpLabel.text = _task.TotalXp.ToString() + "xp"; _scrollList = currentScrollList; TaskToggle.Setup(this); }
// Setup for sub button prefab. Takes a sub menu object that contains the information and the script of the parent sub menu group. public void Setup(SubMenu sbMenu, SubMenuGroupPref parent) { this.TextField.text = sbMenu.Title; this._parentGroup = parent; this._pageswapper = GameObject.FindWithTag("Pageswapper").GetComponent <Pageswapper>(); this._Button = transform.GetComponent <Button> (); this._Button.onClick.RemoveAllListeners(); if (sbMenu.Target != null) { sbMenu.setButton(this._Button); } }
public Notification(NotificationType notiType, string message) { _pageswapper = GameObject.FindWithTag("Pageswapper").GetComponent <Pageswapper>(); if ((int)notiType < 5) // First 5 notification types are alarms, the rest are ordinary notifications { AlarmParams(Titles [(int)notiType], message); } else { NotificationParams(Titles [(int)notiType], message); } this.Send(); CreatePopUp(message, notiType); }
void Awake() { _startupRoutinePopupView = PopUpContentPanel.transform.FindChild("StartupPopupView").gameObject; _generalPopupView = PopUpContentPanel.transform.FindChild("GeneralPopupView").gameObject; _subTaskInformationPopupView = PopUpContentPanel.transform.FindChild("SubTaskInformationPopupView").gameObject; _popupTopPanel = transform.FindChild("Background").FindChild("Top Panel").gameObject; _pageswapper = GameObject.Find("Page Swapper").GetComponent <Pageswapper> (); this._popUpPanelText = _popupTopPanel.transform.FindChild("Title").GetComponent <Text> (); // exit button this._exitButton = _popupTopPanel.transform.FindChild("ExitButton").GetComponent <Button> (); _exitButton.onClick.AddListener(_pageswapper.LeavePopup); _standardColor = new Color32(0x38, 0x49, 0x67, 0xFF); _warningColor = new Color32(0xB2, 0x3F, 0x46, 0xFF); }
// Use this for initialization void Awake() { this._buttonGroup = this.transform.FindChild("ButtonGroup").gameObject; this._textField = this.transform.FindChild("Name").GetComponent <Text>(); this._regularToggle = this.transform.FindChild("Toggle").GetComponent <Toggle>(); this._bonusToggle = this.transform.FindChild("Toggle-Bonus").GetComponent <Toggle>(); this._warningButton = this._buttonGroup.transform.FindChild("Warning").GetComponent <Button> (); this._infoButton = this._buttonGroup.transform.FindChild("Info").GetComponent <Button> (); this._helpButton = this._buttonGroup.transform.FindChild("Help").GetComponent <Button> (); this._toolButton = this._buttonGroup.transform.FindChild("Tool").GetComponent <Button> (); this._page = GameObject.Find("Specific Task View").transform.GetComponent <SpecificTaskView> (); this._pageswapper = GameObject.FindWithTag("Pageswapper").GetComponent <Pageswapper>(); _regularToggle.onValueChanged.AddListener(_toggleListener); _bonusToggle.onValueChanged.AddListener(_toggleListener); // TODO: _warningButton.onClick.AddListener(_infoListener); _infoButton.onClick.AddListener(_infoListener); //_helpButton.onClick.AddListener (_pageSwapper.dostuff); //_toolButton.onClick.AddListener (_pageSwapper.dostuff); }
void Awake() { _pageswapper = GameObject.Find("Page Swapper").GetComponent <Pageswapper> (); }
void Awake() { this._PageSwapper = GameObject.FindWithTag("Pageswapper").GetComponent <Pageswapper> (); this.ButtonComponent = transform.GetComponent <Button> (); this.BadgeIcon = transform.GetComponent <Image> (); }