Beispiel #1
0
 private void Setup()
 {
     isVisible        = false;
     isInteractive    = false;
     name             = "AdvancedDistrictOptionsPanelWrapper";
     padding          = new RectOffset(10, 10, 4, 4);
     relativePosition = new Vector3(AdvancedDistrictOptionsMod.Settings.PanelX,
                                    AdvancedDistrictOptionsMod.Settings.PanelY);
     backgroundSprite      = "MenuPanel";
     _titleBar             = AddUIComponent <UiTitleBar>();
     _districtOptionsPanel = AddUIComponent <DistrictOptionsPanel>();
 }
Beispiel #2
0
 public override void Start()
 {
     base.Start();
     Instance = this;
     SetupControls();
 }