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>();
 }
Esempio n. 2
0
 public override void Start()
 {
     base.Start();
     Instance = this;
     SetupControls();
 }