/// <summary>
    /// Creates the window manager menu.
    /// </summary>
    public void CreateWindowManagerMenu()
    {
        CC_Manager.CCState[] renderStates = { CC_Manager.CCState.Default, CC_Manager.CCState.Selecting };
        CC_Menu menu = CC_Manager._instance.CreateNewCC_Menu(renderStates, "WindowManagerMenu");

        menu.AddButton(() => SaveWindow(), "Save Window");
        menu.AddButton(() => LoadWindow(), "Load Window");
    }
    /// <summary>
    /// Creates the creation menu menu.
    /// </summary>
    void CreateCreationMenu()
    {
        CCState[] renderStates = { CCState.Default };
        CC_Menu   menu         = CreateNewCC_Menu(menuPanelPrefab, renderStates, "CreationMenu");

        menu.AddButton(menuButtonPrefab, () => CreateButton(), "Create Button");
        menu.AddButton(menuButtonPrefab, () => CreateImage(), "Create Image");
        menu.AddButton(menuButtonPrefab, () => CreateText(), "Create Text");
    }
    /// <summary>
    /// Creates the CC default menu
    /// </summary>
    void CreateCCMenu()
    {
        CCState[] renderStates = { CCState.Default, CCState.Selecting };
        CC_Menu   menu         = CreateNewCC_Menu(menuPanelPrefab, renderStates, "CCMenu");

        menu.AddButton(menuButtonPrefab, () => StopEditMode(), "Stop Editting");
        menu.AddButton(menuButtonPrefab, () => OpenUIElementCreationMenu(), "Creation Menu");
        menu.AddButton(menuButtonPrefab, () => CallBackground(), "Background Color Menu");
        menu.AddButton(menuButtonPrefab, () => ToggleWindowManager(), "Save/Load");
        menu.SetEnabled(true);
    }
示例#4
0
    /// <summary>
    /// Creates the selection menu for the CC_Manager
    /// </summary>
    void CreateSelectionMenu()
    {
        CC_Manager.CCState[] renderStates = { CC_Manager.CCState.Selecting };
        //CC_Menu menu = CC_Manager._instance.CreateNewCC_Menu(renderStates, "SelectionMenu");
        menu = CC_Manager._instance.CreateNewCC_Menu(renderStates, "SelectionMenu");

        menu.AddButton(() => SetMoveMode(), "Move");
        menu.AddButton(() => SetRotateMode(), "Rotate");
        menu.AddButton(() => SetScaleMode(), "Scale");
        menu.AddSpace(25);
        menu.AddButton(() => DeleteObject(), "Delete");
        menu.AddSpace(25);
        menu.AddButton(() => CallImgHandler(), "Image Handler");
        menu.AddButton(() => CallingURLHandler(), "Url Handler");
        menu.AddButton(() => CallTransitionHandler(), "Button Settings");
    }
    /// <summary>
    /// Creates the selection menu for the CC_Manager
    /// </summary>
    void CreateSelectionMenu()
    {
        CC_Manager.CCState[] renderStates = { CC_Manager.CCState.Selecting };
        //CC_Menu menu = CC_Manager._instance.CreateNewCC_Menu(renderStates, "SelectionMenu");
        menu = CC_Manager._instance.CreateNewCC_Menu(renderStates, "SelectionMenu");

        menu.AddButton(() => SetMoveMode(), "Move");
        menu.AddButton(() => SetRotateMode(), "Rotate");
        menu.AddButton(() => SetScaleMode(), "Scale");
        menu.AddSpace(25);
        menu.AddButton(() => DeleteObject(), "Delete");
        menu.AddSpace(25);
        menu.AddButton(() => CallImgHandler(), "Image Handler");
        menu.AddButton(() => CallingURLHandler(), "Url Handler");
        menu.AddButton(() => CallTransitionHandler(), "Button Settings");
    }