Example #1
0
#pragma warning restore CS0649

        ////////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////////////////////////////////////////////

        /// <summary>
        /// On view creation
        /// </summary>
        protected override sealed void OnViewCreation()
        {
            foreach (var l_Module in Plugin.Instance.Modules.Where(x => x.Type == SDK.IModuleBaseType.Integrated))
            {
                var l_Button = SDK.UI.Button.Create(m_ButtonGrid.transform, l_Module.Name, () => {
                    var l_Items = l_Module.GetSettingsUI();
                    MainViewFlowCoordinator.Instance().ChangeView(l_Items.Item1, l_Items.Item2, l_Items.Item3);
                }, l_Module.Description, 35f, 10f);
                m_ModulesButton.Add(l_Module, l_Button);
            }
        }
Example #2
0
 private void OnSettingsPressed()
 {
     MainViewFlowCoordinator.Instance().SwitchToSettingsView();
 }