Esempio n. 1
0
        public static void Init(MainButtonsRoot instance)
        {
            Settings.Validate();

            DesignationCategoryConfig.Init();

            _buttonOrder = Traverse.Create(instance).Field("allButtonsInOrder");

            CheckDefStates();

            _orderer = new OrderGUI <MainButtonDef>(() => Settings.MainButtonStates, ApplyChanges, Reset);

            IsReady = true;
        }
        public static void Init()
        {
            CheckDefStates();

            _orderer = new OrderGUI <DesignationCategoryDef>(() => Settings.DesignationCategoryStates, ApplyChanges, Reset);
        }