コード例 #1
0
    public ScenesWindow(Rect aStartPos, GUIContent aContent, GUIStyle aStyle, params GUILayoutOption[] aOptions)
        : base(aStartPos, aContent, aStyle, aOptions)
    {
        thisRect = aStartPos;
        scenesWindowActiveAreas = new ScenesWindowActiveAreas(aStartPos,
                                                              new GUIContent(TC.get("ActiveAreasList.Title")), "Window");
        scenesWindowAppearance = new ScenesWindowAppearance(aStartPos, new GUIContent(TC.get("Scene.LookPanelTitle")),
                                                            "Window");
        scenesWindowDocumentation = new ScenesWindowDocumentation(aStartPos,
                                                                  new GUIContent(TC.get("Scene.DocPanelTitle")), "Window");
        scenesWindowElementReference = new ScenesWindowElementReference(aStartPos,
                                                                        new GUIContent(TC.get("ItemReferencesList.Title")), "Window");
        scenesWindowExits = new ScenesWindowExits(aStartPos, new GUIContent(TC.get("Element.Name3")), "Window");

        scenesWindowBarriers       = new ScenesWindowBarriers(aStartPos, new GUIContent(TC.get("BarriersList.Title")), "Window");
        scenesWindowPlayerMovement = new ScenesWindowPlayerMovement(aStartPos, new GUIContent(TC.get("Trajectory.Title")), "Window");


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

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

        GenerateToggleList();
    }
コード例 #2
0
    public void ShowItemWindowView(int s)
    {
        GameRources.GetInstance().selectedSceneIndex = s;
        isConcreteItemVisible = true;
        // Generate new toogle list - maybe user already created new scenes?
        GenerateToggleList();

        // Reload windows for newly selected scene
        scenesWindowActiveAreas = new ScenesWindowActiveAreas(thisRect, new GUIContent(TC.get("ActiveAreasList.Title")),
                                                              "Window");
        scenesWindowAppearance = new ScenesWindowAppearance(thisRect, new GUIContent(TC.get("Scene.LookPanelTitle")),
                                                            "Window");
        scenesWindowDocumentation = new ScenesWindowDocumentation(thisRect,
                                                                  new GUIContent(TC.get("Scene.DocPanelTitle")), "Window");
        scenesWindowElementReference = new ScenesWindowElementReference(thisRect,
                                                                        new GUIContent(TC.get("ItemReferencesList.Title")), "Window");
        scenesWindowExits = new ScenesWindowExits(thisRect, new GUIContent(TC.get("Element.Name3")), "Window");

        // Only visible for 3rd person
        if (Controller.getInstance().playerMode() == DescriptorData.MODE_PLAYER_3RDPERSON)
        {
            scenesWindowBarriers       = new ScenesWindowBarriers(thisRect, new GUIContent(TC.get("BarriersList.Title")), "Window");
            scenesWindowPlayerMovement = new ScenesWindowPlayerMovement(thisRect, new GUIContent(TC.get("Trajectory.Title")), "Window");
        }
    }