示例#1
0
 private void Awake()
 {
     if (this.ButtonSections != null)
     {
         foreach (Component buttonSection in this.ButtonSections)
         {
             BookmarkToggleButton component = (BookmarkToggleButton)buttonSection.get_gameObject().GetComponent <BookmarkToggleButton>();
             if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component, (UnityEngine.Object)null))
             {
                 component.Activate(false);
             }
         }
     }
     if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.ItemTemplate, (UnityEngine.Object)null))
     {
         this.ItemTemplate.SetActive(false);
     }
     if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.ButtonBookmarkBeginEdit, (UnityEngine.Object)null))
     {
         this.ButtonBookmarkBeginEdit.AddListener(new SRPG_Button.ButtonClickEvent(this.OnBookmarkBeginEditButtonClick));
         ((Component)this.ButtonBookmarkBeginEdit).get_gameObject().SetActive(true);
     }
     if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.ButtonBookmarkEndEdit, (UnityEngine.Object)null))
     {
         this.ButtonBookmarkEndEdit.AddListener(new SRPG_Button.ButtonClickEvent(this.OnBookmarkEndEditButtonClick));
         ((Component)this.ButtonBookmarkEndEdit).get_gameObject().SetActive(false);
     }
     this.ResetScrollPosition();
     this.RequestQuestBookmark();
 }
示例#2
0
 private void ToggleSectionButton(int index)
 {
     for (int index1 = 0; index1 < this.ButtonSections.Length; ++index1)
     {
         BookmarkToggleButton component = (BookmarkToggleButton)((Component)this.ButtonSections[index1]).GetComponent <BookmarkToggleButton>();
         if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component, (UnityEngine.Object)null))
         {
             component.Activate(index1 == index);
         }
     }
 }