示例#1
0
 public void SetSection(string key)
 {
     init();
     currentSection = sectionsHash[key];
     scrollViewPos  = Vector2.zero;
     focusHack();
 }
示例#2
0
 void init()
 {
     if (sectionsHash.Count == 0)
     {
         icon = (Texture2D)SRWindow.findObject("psr_icon");
         foreach (SRHelpSection section in sections)
         {
             sectionsHash.Add(section.key, section);
             if (currentSection != null && section.key == currentSection.key)
             {
                 currentSection = section;
             }
         }
         titleContent = SRLoc.GUI("help.window.title");
     }
 }
示例#3
0
 public void AddSection(SRHelpSection section)
 {
     sections.Add(section);
 }