public void ShowItemWindowView(int o) { isConcreteItemVisible = true; GameRources.GetInstance().selectedBookIndex = o; // Reload windows for newly selected book booksWindowAppearance = new BooksWindowAppearance(m_Rect, new GUIContent(TC.get("Book.App")), "Window"); booksWindowContents = new BooksWindowContents(m_Rect, new GUIContent(TC.get("Book.Contents")), "Window"); booksWindowDocumentation = new BooksWindowDocumentation(m_Rect, new GUIContent(TC.get("Book.Documentation")), "Window"); }
public BooksWindow(Rect aStartPos, GUIStyle aStyle, params GUILayoutOption[] aOptions) : base(aStartPos, new GUIContent(TC.get("Element.Name11")), aStyle, aOptions) { var c = new GUIContent(); c = new GUIContent(); c.image = (Texture2D)Resources.Load("EAdventureData/img/icons/books", typeof(Texture2D));; c.text = TC.get("Element.Name11"); ButtonContent = c; booksWindowAppearance = new BooksWindowAppearance(aStartPos, new GUIContent(TC.get("Book.App")), "Window"); booksWindowContents = new BooksWindowContents(aStartPos, new GUIContent(TC.get("Book.Contents")), "Window"); booksWindowDocumentation = new BooksWindowDocumentation(aStartPos, new GUIContent(TC.get("Book.Documentation")), "Window"); selectedButtonSkin = (GUISkin)Resources.Load("Editor/ButtonSelected", typeof(GUISkin)); }
public BooksWindow(Rect aStartPos, GUIStyle aStyle, params GUILayoutOption[] aOptions) : base(aStartPos, new GUIContent(TC.get("Element.Name11")), aStyle, aOptions) { ButtonContent = new GUIContent() { image = Resources.Load <Texture2D>("EAdventureData/img/icons/books"), text = "Element.Name11" }; var booksWindowAppearance = new BooksWindowAppearance(aStartPos, new GUIContent(TC.get("Book.App")), "Window"); booksWindowContents = new BooksWindowContents(aStartPos, new GUIContent(TC.get("Book.Contents")), "Window"); var booksWindowDocumentation = new BooksWindowDocumentation(aStartPos, new GUIContent(TC.get("Book.Documentation")), "Window"); AddTab(TC.get("Book.App"), BookWindowType.Appearance, booksWindowAppearance); AddTab(TC.get("Book.Contents"), BookWindowType.Content, booksWindowContents); AddTab(TC.get("Book.Documentation"), BookWindowType.Documentation, booksWindowDocumentation); }