private IEnumerator Start() { Instance = this; ModSpecificTabs = new List <dfScrollPanel>(); UI.PrepareCustomOptions(); var comps = TabGameplay.GetComponents <MonoBehaviour>(); for (int i = 0; i < comps.Length; i++) { Console.WriteLine($"COMP {comps[i].GetType().FullName}"); } var compsx = GameUIRoot.Instance.Manager.GetComponents <Component>(); for (int i = 0; i < compsx.Length; i++) { Console.WriteLine($"COMPX {compsx[i].GetType().FullName}"); } yield return(null); TabMods = (dfScrollPanel)UI.CreateScrollPanel(); AddSemiLabelButton(); yield return(orig_Start()); }
public void ToggleToPanel(dfScrollPanel targetPanel, bool doFocus = false) { TabMods.IsVisible = (targetPanel == TabMods); for (var i = 0; i < ModSpecificTabs.Count; i++) { if (ModSpecificTabs[i].IsVisible = (targetPanel == ModSpecificTabs[i])) { IsInModOptions = true; } } orig_ToggleToPanel(targetPanel, doFocus); }
public extern void orig_ToggleToPanel(dfScrollPanel targetPanel, bool doFocus = false);