Esempio n. 1
0
    public void ShowItemWindowView(int o)
    {
        isConcreteItemVisible = true;
        GameRources.GetInstance().selectedCharacterIndex = o;

        charactersWindowActions             = new CharactersWindowActions(thisRect, new GUIContent(TC.get("NPC.ActionsPanelTitle")), "Window");
        charactersWindowAppearance          = new CharactersWindowAppearance(thisRect, new GUIContent(TC.get("NPC.LookPanelTitle")), "Window");
        charactersWindowDialogConfiguration = new CharactersWindowDialogConfiguration(thisRect, new GUIContent(TC.get("NPC.DialogPanelTitle")), "Window");
        charactersWindowDocumentation       = new CharactersWindowDocumentation(thisRect, new GUIContent(TC.get("NPC.Documentation")), "Window");
    }
Esempio n. 2
0
    public CharactersWindow(Rect aStartPos, GUIContent aContent, GUIStyle aStyle, params GUILayoutOption[] aOptions)
        : base(aStartPos, aContent, aStyle, aOptions)
    {
        charactersWindowActions             = new CharactersWindowActions(aStartPos, new GUIContent(TC.get("NPC.ActionsPanelTitle")), "Window");
        charactersWindowAppearance          = new CharactersWindowAppearance(aStartPos, new GUIContent(TC.get("NPC.LookPanelTitle")), "Window");
        charactersWindowDialogConfiguration = new CharactersWindowDialogConfiguration(aStartPos, new GUIContent(TC.get("NPC.DialogPanelTitle")), "Window");
        charactersWindowDocumentation       = new CharactersWindowDocumentation(aStartPos, new GUIContent(TC.get("NPC.Documentation")), "Window");

        windowWidth  = aStartPos.width;
        windowHeight = aStartPos.height;

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