Esempio n. 1
0
        public void SetCell(AddHookCell cell, int index)
        {
            if (index >= this.filteredEligableMethods.Count)
            {
                cell.Disable();
                return;
            }

            cell.CurrentDisplayedIndex = index;
            var method = this.filteredEligableMethods[index];

            cell.MethodNameLabel.text = SignatureHighlighter.HighlightMethod(method);

            var sig = method.FullDescription();

            if (hookedSignatures.Contains(sig))
            {
                cell.HookButton.Component.gameObject.SetActive(false);
                cell.HookedLabel.gameObject.SetActive(true);
            }
            else
            {
                cell.HookButton.Component.gameObject.SetActive(true);
                cell.HookedLabel.gameObject.SetActive(false);
            }
        }
Esempio n. 2
0
        // Set eligable method cell

        public void OnCellBorrowed(AddHookCell cell)
        {
        }