コード例 #1
0
        public void ShowItemWindowView(int o)
        {
            isConcreteItemVisible = true;
            GameRources.GetInstance().selectedCutsceneIndex = o;

            // Reload windows for newly selected scene
            cutscenesWindowAppearance       = new CutscenesWindowAppearance(thisRect, new GUIContent(TC.get("Cutscene.App")), "Window");
            cutscenesWindowDocumentation    = new CutscenesWindowDocumentation(thisRect, new GUIContent(TC.get("Cutscene.Doc")), "Window");
            cutscenesWindowEndConfiguration = new CutscenesWindowEndConfiguration(thisRect, new GUIContent(TC.get("Cutscene.CutsceneEnd")), "Window");
        }
コード例 #2
0
        public CutscenesWindow(Rect aStartPos, GUIStyle aStyle, params GUILayoutOption[] aOptions)
            : base(aStartPos, new GUIContent(TC.get("Element.Name9")), aStyle, aOptions)
        {
            // Button
            ButtonContent = new GUIContent()
            {
                image = Resources.Load <Texture2D>("EAdventureData/img/icons/cutscenes"),
                text  = "Element.Name9"
            };

            cutscenesWindowAppearance = new CutscenesWindowAppearance(aStartPos, new GUIContent(TC.get("Cutscene.App")), "Window");
            var cutscenesWindowDocumentation    = new CutscenesWindowDocumentation(aStartPos, new GUIContent(TC.get("Cutscene.Doc")), "Window");
            var cutscenesWindowEndConfiguration = new CutscenesWindowEndConfiguration(aStartPos, new GUIContent(TC.get("Cutscene.CutsceneEnd")), "Window");

            AddTab(TC.get("Cutscene.App"), CutscenesWindowType.Appearance, cutscenesWindowAppearance);
            AddTab(TC.get("Cutscene.Doc"), CutscenesWindowType.Documentation, cutscenesWindowDocumentation);
            AddTab(TC.get("Cutscene.CutsceneEnd"), CutscenesWindowType.EndConfiguration, cutscenesWindowEndConfiguration);
        }
コード例 #3
0
        public CutscenesWindow(Rect aStartPos, GUIStyle aStyle, params GUILayoutOption[] aOptions)
            : base(aStartPos, new GUIContent(TC.get("Element.Name9")), aStyle, aOptions)
        {
            GUIContent content = new GUIContent();

            // Button
            content.image = (Texture2D)Resources.Load("EAdventureData/img/icons/cutscenes", typeof(Texture2D));
            content.text  = TC.get("Element.Name9");
            ButtonContent = content;

            cutscenesWindowAppearance       = new CutscenesWindowAppearance(aStartPos, new GUIContent(TC.get("Cutscene.App")), "Window");
            cutscenesWindowDocumentation    = new CutscenesWindowDocumentation(aStartPos, new GUIContent(TC.get("Cutscene.Doc")), "Window");
            cutscenesWindowEndConfiguration = new CutscenesWindowEndConfiguration(aStartPos, new GUIContent(TC.get("Cutscene.CutsceneEnd")), "Window");


            thisRect           = aStartPos;
            selectedButtonSkin = (GUISkin)Resources.Load("Editor/ButtonSelected", typeof(GUISkin));
        }