public void SetSection(string key) { init(); currentSection = sectionsHash[key]; scrollViewPos = Vector2.zero; focusHack(); }
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"); } }
public void AddSection(SRHelpSection section) { sections.Add(section); }