예제 #1
0
        public FezSettings()
        {
            InitializeComponent();
            this.lblVersion.Text     = "v" + Assembly.GetExecutingAssembly().GetName().Version.ToString(3);
            this.treeView1.DrawMode  = TreeViewDrawMode.OwnerDrawAll;
            this.treeView1.DrawNode += new DrawTreeNodeEventHandler(treeView1.tree_DrawNode);

            AutoStartTimer = false;
            AutoSelectFile = false;
            AutoReset      = false;

            CheckedSplits = new InfoList();

            foreach (var _split in DefaultInfo.BaseSplits)
            {
                CheckedSplits.Add(new Info(_split.Name, false));
            }
        }
예제 #2
0
        public void Initialize(FezSettings settings)
        {
            CurrentLevel = 0;
            NextLevel    = 0;
            isLoading    = false;
            inDoor       = false;

            //set splits
            splits = new InfoList();
            splits.AddRange(DefaultInfo.BaseSplits);

            foreach (var _setting in settings.CheckedSplits)
            {
                if (!_setting.isEnabled)
                {
                    splits.Remove(splits[_setting.Name]);
                }
            }
        }