private void FillSection(PreciseManeuverConfig.ModuleType type, bool state, UI.DraggableWindow window, Action <GameObject> createControls, bool initial = false) { int num = (int)type; if (state) { if (panels[num] == null) { panels[num] = window.CreateInnerContentPanel(num); if (!initial) { var fader = panels[num].GetComponent <UI.CanvasGroupFader> (); fader.SetTransparent(); fader.FadeIn(); } createControls(panels[num]); } else { if (panels[num].GetComponent <UI.CanvasGroupFader> ().IsFadingOut) { panels[num].GetComponent <UI.CanvasGroupFader> ().FadeIn(); } } } else { if (panels[num] != null) { panels[num].GetComponent <UI.CanvasGroupFader> ().FadeClose(); } } }
internal SectionModule(PreciseManeuverConfig.ModuleType type) { _type = type; }
private void FillSection(PreciseManeuverConfig.ModuleType type, UI.DraggableWindow window, Action <GameObject> createControls, bool initial = false) { FillSection(type, Config.GetModuleState(type), window, createControls, initial); }