// Use this for initialization
    void Start()
    {
        responder = new DoubleIntegralInputResponder(zInputbox, uMinInput, uMaxInput, vMinInput, vMaxInput);
        keyboard.RegisterResponder(responder);

        responder.initialize();
    }
Exemple #2
0
    // Use this for initialization
    void Start()
    {
        responder = new TripleIntegralInputResponder(uMinInput, uMaxInput, vMinInput, vMaxInput, wMinInput, wMaxInput);
        keyboard.RegisterResponder(responder);

        responder.initialize();
    }
Exemple #3
0
 public void Initialize(PtManager2D pm)
 {
     ptManager2D = pm;
     keyboard    = GetComponent <FlexMenu>();
     responder   = new KeyboardInputResponder(this);
     keyboard.RegisterResponder(responder);
 }
Exemple #4
0
 public void Initialize(CalcManager cm)
 {
     calcManager = cm;
     keyboard    = GetComponent <FlexMenu>();
     responder   = new KeyboardInputResponder(this);
     keyboard.RegisterResponder(responder);
 }
    private void Initialize()
    {
        if (!initialized)
        {
            initialized = true;
            Instance    = this;

            ManageTournamentMenuResponder responder = new ManageTournamentMenuResponder(this);
            flexMenu  = GetComponent <FlexMenu>();
            mainPanel = GetComponentInChildren <FlexPanelComponent>();
            var btns = GetComponentsInChildren <FlexButtonComponent>(true);
            foreach (var button in btns)
            {
                mainPanel.AddAction(button);
                buttons.Add(button.gameObject.name, button);
            }
            var txts = GetComponentsInChildren <TMPro.TextMeshPro>(true);
            foreach (var txt in txts)
            {
                if (!text.ContainsKey(txt.gameObject.name))
                {
                    text.Add(txt.gameObject.name, txt);
                }
            }

            flexMenu.RegisterResponder(responder);
        }
    }
    // Use this for initialization
    void Start()
    {
        print("START");
        responder = new VectorKeyboardInputResponder(xInputbox, yInputbox, zInputbox, tminInput, tmaxInput);
        keyboard.RegisterResponder(responder);

        responder.initialize();
        print(responder);
    }
    public void Awake()
    {
        FlexMenu keyboard = GetComponent <FlexMenu>();
        KeyboardInputResponder responder = new KeyboardInputResponder(this);

        keyboard.RegisterResponder(responder);

        paramSurface = FindObjectOfType <CustomParametrizedSurface>();
    }
Exemple #8
0
        public void Initialize(PtManager pm)
        {
            KeyboardInputResponder responder = new KeyboardInputResponder(this);

            menu.RegisterResponder(responder);

            ptManager  = pm;
            saveButton = transform.Find("ControlPanel/Save").GetComponent <FlexActionableComponent>();
        }
    public void Initialize()
    {
        scroll   = GetComponentInChildren <Scroll>(true);
        flexMenu = GetComponent <FlexMenu>();
        CommitButtonResponder responder = new CommitButtonResponder(this, flexMenu);

        flexMenu.RegisterResponder(responder);
        commitsPanel       = GetComponentInChildren <MultiSelectFlexPanel>().Initialize();
        joyStickAggregator = scroll.GetComponent <JoyStickAggregator>();
    }
Exemple #10
0
    public void Initialize(CalcManager cm)
    {
        KeyboardInputResponder responder = new KeyboardInputResponder(this);

        menu.RegisterResponder(responder);

        calcManager  = cm;
        saveButton   = transform.Find("ControlPanel/Save").GetComponent <FlexActionableComponent>();
        exportButton = transform.Find("ControlPanel/GenerateMesh").GetComponent <FlexActionableComponent>();
    }
Exemple #11
0
    public void Initialize(SurfaceTessellation st)
    {
        KeyboardInputResponder responder = new KeyboardInputResponder(this);

        menu.RegisterResponder(responder);

        tessel    = st;
        objButton = transform.Find("ControlPanel/ExportObj").GetComponent <FlexActionableComponent>();
        stlButton = transform.Find("ControlPanel/ExportStl").GetComponent <FlexActionableComponent>();
    }
    public void Initialize(CalcManager calcManager)
    {
        scroll   = GetComponentInChildren <Scroll>(true);
        flexMenu = GetComponent <FlexMenu>();
        SubmissionButtonResponder responder = new SubmissionButtonResponder(this, flexMenu);

        flexMenu.RegisterResponder(responder);
        submissionsPanel   = GetComponentInChildren <MultiSelectFlexPanel>().Initialize();
        joyStickAggregator = scroll.GetComponent <JoyStickAggregator>();
    }
Exemple #13
0
    public void Initialize(CalcManager cm)
    {
        scroll             = GetComponentInChildren <Scroll>(true);
        joyStickAggregator = scroll.GetComponent <JoyStickAggregator>();
        calcManager        = cm;
        HandleInput(defaultFunction);
        KeyboardInputResponder responder = new KeyboardInputResponder(this);

        menu.RegisterResponder(responder);
        initializePresetButtons();
    }
Exemple #14
0
    public void Initialize(CalcManager calcManager)
    {
        this.calcManager = calcManager;

        scroll   = GetComponentInChildren <Scroll>(true);
        flexMenu = GetComponent <FlexMenu>();
        KeyboardInputResponder responder = new KeyboardInputResponder(this, flexMenu);

        flexMenu.RegisterResponder(responder);
        tournamentsPanel   = GetComponentInChildren <MultiSelectFlexPanel>().Initialize();
        joyStickAggregator = scroll.GetComponent <JoyStickAggregator>();
    }
Exemple #15
0
    public void Initialize(CalcManager cm)
    {
        KeyboardInputResponder responder = new KeyboardInputResponder(this);

        menu.RegisterResponder(responder);

        calcManager  = cm;
        saveButton   = transform.Find("ControlPanel/Save").GetComponent <FlexActionableComponent>();
        exportButton = transform.Find("ControlPanel/GenerateMesh").GetComponent <FlexActionableComponent>();
        if (UnityEngine.SceneManagement.SceneManager.GetActiveScene().name.Equals("3 - FreeParametrization"))
        {
            calcManager.inputHandler += LookupCommitStateByExpressionSet;
        }
    }
Exemple #16
0
    public void Initialize(CalcManager calcManager)
    {
        this.calcManager = calcManager;

        scroll   = GetComponentInChildren <Scroll>(true);
        flexMenu = GetComponent <FlexMenu>();
        KeyboardInputResponder responder = new KeyboardInputResponder(this);

        flexMenu.RegisterResponder(responder);
        selectPanel        = GetComponentInChildren <MultiSelectFlexPanel>().Initialize();
        joyStickAggregator = scroll.GetComponent <JoyStickAggregator>();

        LoadFiles();
        loader.fileLoadedEvent += LoadNewFile;
    }
Exemple #17
0
    public void Initialize()
    {
        if (Instance == null)
        {
            Instance = this;
        }

        scroll   = GetComponentInChildren <Scroll>(true);
        flexMenu = GetComponent <FlexMenu>();
        AccountMenuResponder responder = new AccountMenuResponder(this, flexMenu);

        flexMenu.RegisterResponder(responder);
        accountsPanel = GetComponentInChildren <MultiSelectFlexPanel>(true);
        accountsPanel.Initialize();
        joyStickAggregator = scroll.GetComponent <JoyStickAggregator>();

        initialized = true;
    }
Exemple #18
0
    // Use this for initialization
    void Start()
    {
        spherical.SetActive(false);
        cylindrical.SetActive(false);

        leftMenu.RegisterResponder(this);

        vector_list      = new List <MathBox_Vector>();
        usercreated_list = new List <MathBox_Vector>();
        selected_vectors = new List <MathBox_Vector>();

        controllers.LeftPadTouched   += OpenLeftSelector;
        controllers.LeftPadTouching  += UpdateLeftSelector;
        controllers.LeftPadUntouched += CloseLeftSelector;
        controllers.LeftPadPressed   += SelectOnLeftMenu;

        controllers.LeftTriggerPressed    += CreateVector;
        controllers.LeftTriggerHolding    += DragVector;
        controllers.LeftTriggerUnpressed  += FinalizeVector;
        controllers.RightTriggerPressed   += CreateVector;
        controllers.RightTriggerHolding   += DragVector;
        controllers.RightTriggerUnpressed += FinalizeVector;
    }
Exemple #19
0
    public void Initialize(CalcManager calcManager)
    {
        this.calcManager = calcManager;

        scroll   = GetComponentInChildren <Scroll>(true);
        flexMenu = GetComponent <FlexMenu>();
        TournamentMenuResponder responder = new TournamentMenuResponder(this);

        submissionsPanel = GetComponentInChildren <MultiSelectFlexPanel>().Initialize();
        submissionsPanel.selectedUnselectedColor = QuickButton.TOGGLE_OFF;
        submissionsPanel.selectedSelectedColor   = QuickButton.TOGGLE_ON;
        submissionsPanel.hoverUnselectedColor    = QuickButton.LIGHT_HOVERING;
        submissionsPanel.hoverSelectedColor      = QuickButton.DARK_HOVERING;
        submissionsPanel.passiveUnselectedColor  = Color.white;
        submissionsPanel.passiveSelectedColor    = QuickButton.DARK_PASSIVE;

        joyStickAggregator = scroll.GetComponent <JoyStickAggregator>();

        mainPanel.AddAction(previousRoundButton);
        mainPanel.AddAction(nextRoundButton);
        flexMenu.AddPanel(mainPanel);
        flexMenu.RegisterResponder(responder);
    }
Exemple #20
0
 // Use this for initialization
 void Start()
 {
     rightMenu.RegisterResponder(this);
     leftMenu.RegisterResponder(this);
 }
Exemple #21
0
 // Use this for initialization
 void Start()
 {
     responder = new SettingsInputResponder();
     keyboard.RegisterResponder(responder);
 }