Ejemplo n.º 1
0
        public void ShowItemWindowView(int o)
        {
            isConcreteItemVisible = true;
            GameRources.GetInstance().selectedSetItemIndex = o;

            setItemsWindowApperance     = new SetItemsWindowApperance(m_Rect, new GUIContent(TC.get("Atrezzo.LookPanelTitle")), "Window");
            setItemsWindowDocumentation = new SetItemsWindowDocumentation(m_Rect, new GUIContent(TC.get("Atrezzo.DocPanelTitle")), "Window");
        }
Ejemplo n.º 2
0
        public SetItemsWindow(Rect aStartPos, GUIStyle aStyle, params GUILayoutOption[] aOptions)
            : base(aStartPos, new GUIContent(TC.get("Element.Name59")), aStyle, aOptions)
        {
            var c = new GUIContent();

            c.image       = (Texture2D)Resources.Load("EAdventureData/img/icons/Atrezzo-List-1", typeof(Texture2D));
            c.text        = TC.get("Element.Name59");
            ButtonContent = c;

            setItemsWindowApperance     = new SetItemsWindowApperance(aStartPos, new GUIContent(TC.get("Atrezzo.LookPanelTitle")), "Window");
            setItemsWindowDocumentation = new SetItemsWindowDocumentation(aStartPos, new GUIContent(TC.get("Atrezzo.DocPanelTitle")), "Window");

            selectedButtonSkin = (GUISkin)Resources.Load("Editor/ButtonSelected", typeof(GUISkin));
        }
        public SetItemsWindow(Rect aStartPos, GUIStyle aStyle, params GUILayoutOption[] aOptions)
            : base(aStartPos, new GUIContent(TC.get("Element.Name59")), aStyle, aOptions)
        {
            ButtonContent = new GUIContent()
            {
                image = Resources.Load <Texture2D>("EAdventureData/img/icons/Atrezzo-List-1"),
                text  = "Element.Name59"
            };

            setItemsWindowApperance     = new SetItemsWindowApperance(aStartPos, new GUIContent(TC.get("Atrezzo.LookPanelTitle")), "Window");
            setItemsWindowDocumentation = new SetItemsWindowDocumentation(aStartPos, new GUIContent(TC.get("Atrezzo.DocPanelTitle")), "Window");

            AddTab(TC.get("Atrezzo.LookPanelTitle"), SetItemsWindowType.Appearance, setItemsWindowApperance);
            AddTab(TC.get("Atrezzo.DocPanelTitle"), SetItemsWindowType.Documentation, setItemsWindowDocumentation);
        }