예제 #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>();
 }
 public override void Start()
 {
     base.Start();
     Instance = this;
     try
     {
         Setup();
     }
     catch (Exception e)
     {
         DebugHelper.Log($"Failed to Setup District Options Panel. {e.Message} - {e.StackTrace}");
     }
 }