private void Setup()
 {
     isVisible        = false;
     isInteractive    = false;
     name             = "AdvancedDistrictOptionsAllowedDistrictsPanelWrapper";
     padding          = new RectOffset(10, 10, 4, 4);
     relativePosition = new Vector3(AdvancedDistrictOptionsMod.Settings.AllowedDistrictsPanelY,
                                    AdvancedDistrictOptionsMod.Settings.AllowedDistrictsPanelY);
     backgroundSprite       = "MenuPanel";
     _titleBar              = AddUIComponent <UiAllowedTitleBar>();
     _allowedDistrictsPanel = AddUIComponent <AllowedDistrictsPanel>();
 }
 public override void Start()
 {
     base.Start();
     Instance = this;
     try
     {
         Setup();
     }
     catch (Exception e)
     {
         DebugHelper.Log($"{e.Message} - {e.StackTrace}");
     }
 }