public void RemoveTab(TabView tab) { if (_tabs.Remove(tab)) { RefreshTabNames(); } }
public IAPToggleEditor(TabBar tabBar) { bool enabled = HMSMainEditorSettings.Instance.Settings.GetBool(IAPKitEnabled); _tabView = HMSIAPTabFactory.CreateTab("IAP"); _tabBar = tabBar; _toggle = new Toggle.Toggle("IAP", enabled, OnStateChanged, true); }
public static TabView CreateTab(string title) { var tabView = new TabView(title); tabView.AddDrawer(new HMSCloudDBSettingsDrawer()); return(tabView); }
public GameServiceToggleEditor(TabBar tabBar, IDependentToggle dependentToggle) { bool enabled = HMSMainEditorSettings.Instance.Settings.GetBool(GameServiceEnabled); _dependentToggle = dependentToggle; _tabView = HMSGameServiceTabFactory.CreateTab("Game Service"); _tabBar = tabBar; _toggle = new Toggle.Toggle("Game Service*", enabled, OnStateChanged, true).SetTooltip("Game Service is dependent on AccountKit."); }
public RemoteConfigToggleEditor(TabBar tabBar, IDependentToggle analyticsToggle) { bool enabled = HMSMainEditorSettings.Instance.Settings.GetBool(RemoteConfigEnabled); _dependentToggle = analyticsToggle; _tabView = HMSRemoteConfigTabFactory.CreateTab("Remote Config"); _tabBar = tabBar; _toggle = new Toggle.Toggle("Remote Config*", enabled, OnStateChanged, true).SetTooltip("Remote Config is dependent on Analytics Kit."); }
public CloudDBToggleEditor(TabBar tabBar, IDependentToggle dependentToggle) { _dependentToggle = dependentToggle; _tabView = HMSCloudDBTabFactory.CreateTab("Cloud DB"); _tabBar = tabBar; bool enabled = HMSMainEditorSettings.Instance.Settings.GetBool(CloudDBEnabled); _toggle = new Toggle.Toggle("Cloud DB*", enabled, OnStateChanged, true).SetTooltip("CloudDB is dependent on Auth Service."); }
private string[] tabNames; // used for caching as tabs count doesn't change after creation public void AddTab(TabView tab) { _tabs.Add(tab); RefreshTabNames(); }