Exemple #1
0
 public PlayerWindow(Rect aStartPos, GUIContent aContent, GUIStyle aStyle, params GUILayoutOption[] aOptions)
     : base(aStartPos, aContent, aStyle, aOptions)
 {
     playerWindowAppearance = new PlayerWindowAppearance(aStartPos,
                                                         new GUIContent(TC.get("NPC.LookPanelTitle")), "Window");
     playerWindowDialogConfiguration = new PlayerWindowDialogConfiguration(aStartPos,
                                                                           new GUIContent(TC.get("NPC.DialogPanelTitle")), "Window");
     playerWindowDocumentation = new PlayerWindowDocumentation(aStartPos,
                                                               new GUIContent(TC.get("NPC.Documentation")), "Window");
     selectedButtonSkin = (GUISkin)Resources.Load("Editor/ButtonSelected", typeof(GUISkin));
 }
Exemple #2
0
        public PlayerWindow(Rect aStartPos, GUIStyle aStyle, params GUILayoutOption[] aOptions)
            : base(aStartPos, new GUIContent(TC.get("Element.Name26")), aStyle, aOptions)
        {
            var c = new GUIContent();

            c.image       = (Texture2D)Resources.Load("EAdventureData/img/icons/player", typeof(Texture2D));
            c.text        = TC.get("Element.Name26");
            ButtonContent = c;

            playerWindowAppearance = new PlayerWindowAppearance(aStartPos,
                                                                new GUIContent(TC.get("NPC.LookPanelTitle")), "Window");
            playerWindowDialogConfiguration = new PlayerWindowDialogConfiguration(aStartPos,
                                                                                  new GUIContent(TC.get("NPC.DialogPanelTitle")), "Window");
            playerWindowDocumentation = new PlayerWindowDocumentation(aStartPos,
                                                                      new GUIContent(TC.get("NPC.Documentation")), "Window");
            selectedButtonSkin = (GUISkin)Resources.Load("Editor/ButtonSelected", typeof(GUISkin));
        }