public void Initialize(CalcManager cm) { calcManager = cm; keyboard = GetComponent <FlexMenu>(); responder = new KeyboardInputResponder(this); keyboard.RegisterResponder(responder); }
public void Initialize(PtManager2D pm) { ptManager2D = pm; 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); } }
public void Awake() { FlexMenu keyboard = GetComponent <FlexMenu>(); KeyboardInputResponder responder = new KeyboardInputResponder(this); keyboard.RegisterResponder(responder); paramSurface = FindObjectOfType <CustomParametrizedSurface>(); }
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>(); }
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>(); }
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>(); }
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; }
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; }
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); }
public void SetMenu(FlexMenu menu) { this.menu = menu; }
internal AccountMenuResponder(MyAccountMenu accountMenu, FlexMenu menu) { this.menu = menu; this.accountMenu = accountMenu; }
internal KeyboardInputResponder(TournamentMenu tournamentMenu, FlexMenu menu) { this.menu = menu; this.tournamentMenu = tournamentMenu; }
internal SubmissionButtonResponder(MySubmissionsMenu submissionsMenu, FlexMenu menu) { this.menu = menu; this.submissionsMenu = submissionsMenu; }
internal CommitButtonResponder(MyCommitsMenu myCommits, FlexMenu menu) { this.menu = menu; this.myCommitsMenu = myCommits; }
internal TournamentButtonResponder(TournamentsMenu tournamentMenu, FlexMenu menu) { this.menu = menu; this.tournamentMenu = tournamentMenu; }