Exemple #1
0
        private void DoWindowTitle()
        {
            ucGeneral eGeneral = PluginManager.GetPlugin(typeof(ucGeneral)) as ucGeneral;

            if (eGeneral != null)
            {
                eGeneral.DoWindowTitle();
            }
        }
        public WillowTreeMain()
        {
            GlobalSettings.Load();

            if (Directory.Exists(db.DataPath) == false)
            {
                MessageBox.Show("Couldn't find the 'Data' folder! Please make sure that WillowTree# and its data folder are in the same directory.");
                Application.Exit();
                return;
            }

            if (File.Exists(db.DataPath + "default.xml") == false)
            {
                File.WriteAllText(db.DataPath + "default.xml", "<?xml version=\"1.0\" encoding=\"us-ascii\"?>\r\n<INI></INI>\r\n");
            }

            InitializeComponent();

            db.InitializeNameLookup();

            Save.Enabled         = false;
            SaveAs.Enabled       = false;
            SelectFormat.Enabled = false;
            ucGeneral general = new ucGeneral();

            generalTab = general;
            CreatePluginAsTab("General", general);
            CreatePluginAsTab("Weapons", new ucGears());
            CreatePluginAsTab("Items", new ucGears());
            CreatePluginAsTab("Skills", new ucSkills());
            CreatePluginAsTab("Quest", new ucQuests());
            CreatePluginAsTab("Ammo Pools", new ucAmmo());
            CreatePluginAsTab("Echo Logs", new ucEchoes());
            CreatePluginAsTab("Bank", new ucGears());
            CreatePluginAsTab("Locker", new ucLocker());
#if DEBUG
            CreatePluginAsTab("Debug", new ucDebug());
#endif
            CreatePluginAsTab("About", new ucAbout());

            try
            {
                tabControl1.SelectTab("ucAbout");
            }
            catch { }

            SetUITreeStyles(GlobalSettings.UseColor);
        }
Exemple #3
0
        private void InitAllPropertyPages()
        {
            m_ucVideoSource               = new ucVideoSource();
            m_ucAnalogueCameraSettings    = new ucAnalogueCameraSettings();
            m_ucIntegratingCameraSettings = new ucIntegratingCameraSettings();
            m_ucGamma   = new ucGamma();
            m_ucGain    = new ucGain();
            m_ucGeneral = new ucGeneral(this);

            m_PropertyPages.Add(0, m_ucGeneral);
            m_PropertyPages.Add(1, m_ucVideoSource);
            m_PropertyPages.Add(2, m_ucAnalogueCameraSettings);
            m_PropertyPages.Add(3, m_ucIntegratingCameraSettings);
            m_PropertyPages.Add(4, m_ucGamma);
            m_PropertyPages.Add(5, m_ucGain);
        }