Пример #1
0
        public void ApplySkin()
        {
            UIManagerClass uiManager = UIManagerClass.UIManager;
            SkinStyleClass style;

            //Screen Background
            style          = uiManager.Skin.GetSkinStyle("MainScreenFeatsEditScreenBackgroundColor");
            this.BackColor = style.Color1;

            //Panel Backgrounds
            style = uiManager.Skin.GetSkinStyle("MainScreenFeatsEditScreenPanelBackgroundColor");
            panelAvailableFeats.BackColor = style.Color1;
            panelDesiredFeats.BackColor   = style.Color1;
            panelChosenFeats.BackColor    = style.Color1;

            //Panel Headers
            style = uiManager.Skin.GetSkinStyle("MainScreenFeatsEditScreenPanelHeader");
            labelAvailableFeats.BackColor = style.Color2;
            labelAvailableFeats.ForeColor = style.Color1;
            labelAvailableFeats.Font      = style.Font;
            labelChosenFeats.BackColor    = style.Color2;
            labelChosenFeats.ForeColor    = style.Color1;
            labelChosenFeats.Font         = style.Font;
            labelDesiredFeats.BackColor   = style.Color2;
            labelDesiredFeats.ForeColor   = style.Color1;
            labelDesiredFeats.Font        = style.Font;
        }
Пример #2
0
        public static void RegisterSkinGroups()
        {
            UIManagerClass uiManager = UIManagerClass.UIManager;

            uiManager.Skin.RegisterSkinGroup("MainScreenClassEditScreenBackgroundColor", SkinSettings.FactoryName.ScreenBackgroundColor);
            uiManager.Skin.RegisterSkinGroup("MainScreenClassEditScreenLabel", SkinSettings.FactoryName.StandardLabel);
        }
Пример #3
0
        /// <summary>
        /// Creates the Skin Group associations with factory settings
        /// </summary>
        public static void RegisterSkinGroups()
        {
            UIManagerClass uiManager = UIManagerClass.UIManager;

            uiManager.Skin.RegisterSkinGroup("MainScreenAdditionalStatPanelBackgroundColor", SkinSettings.FactoryName.PanelBackgroundColor);
            uiManager.Skin.RegisterSkinGroup("MainScreenAdditionalStatPanelHeaderColor", SkinSettings.FactoryName.PanelHeaderColor);
            uiManager.Skin.RegisterSkinGroup("MainScreenAdditionalStatPanelGeneralFont", SkinSettings.FactoryName.StandardFont);
            uiManager.Skin.RegisterSkinGroup("MainScreenAdditionalStatPanelHeaderLabel", SkinSettings.FactoryName.PanelHeaderFont);
        }
Пример #4
0
        public void ApplySkin()
        {
            SkinStyleClass style;
            string         controlName;
            Button         controlButton;

            UIManagerClass uiManager = UIManagerClass.UIManager;

            style          = uiManager.Skin.GetSkinStyle("MainScreenBackgroundColor");
            this.BackColor = style.Color1;

            style = uiManager.Skin.GetSkinStyle("MainScreenNormalLabelFont");
            AlignmentLabel.Font      = style.Font;
            AlignmentLabel.ForeColor = style.Color1;
            AlignmentLabel.BackColor = style.Color2;
            RaceLabel.Font           = style.Font;
            RaceLabel.ForeColor      = style.Color1;
            RaceLabel.BackColor      = style.Color2;
            //just testing, making sure skin sytles are working....
            style                = uiManager.Skin.GetSkinStyle("MainScreenGrayFont");
            NameLabel.Font       = style.Font;
            NameLabel.ForeColor  = style.Color1;
            NameLabel.BackColor  = style.Color2;
            ClassLabel.Font      = style.Font;
            ClassLabel.ForeColor = style.Color1;
            ClassLabel.BackColor = style.Color2;

            //apply the panel skins
            mainScreenAbilitiesPanel1.ApplySkin();
            mainScreenAdditionStatsPanel1.ApplySkin();
            mainScreenFeatsPanel1.ApplySkin();

            //apply the level button styles
            ButtonSelectedStyle    = uiManager.Skin.GetSkinStyle("MainScreenLevelButtonSelected");
            ButtonNotSelectedStyle = uiManager.Skin.GetSkinStyle("MainScreenLevelButton");

            for (int i = 1; i < 31; i++)
            {
                controlName   = "LevelButton" + i;
                controlButton = (Button)this.Controls[controlName];

                if (i == SelectedLevel)
                {
                    style = ButtonSelectedStyle;
                }
                else
                {
                    style = ButtonNotSelectedStyle;
                }

                controlButton.BackColor = style.Color2;
                controlButton.ForeColor = style.Color1;
                controlButton.Font      = style.Font;
            }
        }
Пример #5
0
        public static void RegisterSkinGroups()
        {
            UIManagerClass uiManager = UIManagerClass.UIManager;

            uiManager.Skin.RegisterSkinGroup("SkillTomePanelScreenBackGroundColor", SkinSettings.FactoryName.ScreenBackgroundColor);
            uiManager.Skin.RegisterSkinGroup("SkillTomePanelScreenPanelBackgroundColor", SkinSettings.FactoryName.PanelBackgroundColor);
            uiManager.Skin.RegisterSkinGroup("SkillTomePanelScreenPanelHeaderColor", SkinSettings.FactoryName.PanelHeaderColor);
            uiManager.Skin.RegisterSkinGroup("SkillTomePanelScreenLabel", SkinSettings.FactoryName.StandardLabel);
            uiManager.Skin.RegisterSkinGroup("SkillTomePanelScreenSummary", SkinSettings.FactoryName.StandardBoldFont);
            uiManager.Skin.RegisterSkinGroup("SkillTomePanelScreenHeaderLabel", SkinSettings.FactoryName.PanelHeaderFont);
            uiManager.Skin.RegisterSkinGroup("SkillTomePanelScreenLabelLarge", SkinSettings.FactoryName.GoldBoldFont);
        }
        private void TextBoxChange(object sender, InputType type)
        {
            string         newStringValue;
            UIManagerClass uiManager = UIManagerClass.UIManager;

            switch (type)
            {
            case InputType.Name:
            {
                newStringValue = TreeNameTextBox.Text;
                if (newStringValue != TreeModel.Name)
                {
                    if (newStringValue == DatabaseName)
                    {
                        TreeModel.Name = newStringValue;
//								TreeNameTextBox.BackColor = uiManager.Skin.ControlBackgroundColor;
                        break;
                    }
                    if (CheckForUniqueness(newStringValue, InputType.Name) == true)
                    {
                        TreeModel.Name = newStringValue;
                        RecordChanged  = true;
//								TreeNameTextBox.BackColor = uiManager.Skin.ControlBackgroundColor;
                    }
                    else
                    {
                        AllowChangeEvents         = false;
                        TreeNameTextBox.Text      = TreeModel.Name;
                        TreeNameTextBox.BackColor = Color.OrangeRed;
                        AllowChangeEvents         = true;
                        TreeNameTextBox.Focus();
                    }

                    EnhancementTreeControl.TreeText = TreeNameTextBox.Text;
                }
                break;
            }

            case InputType.Background:
            {
                newStringValue = TreeBackgoundTextBox.Text;
                if (newStringValue != TreeModel.Background)
                {
                    TreeModel.Background = newStringValue;
                    RecordChanged        = true;
                    //Lets set the EnhancementTree Background image
                    EnhancementTreeControl.BackgroundImage = Image.FromFile(Application.StartupPath + "\\Graphics\\Interface\\" + newStringValue + ".png");
                }
                break;
            }
            }
        }
Пример #7
0
        public static void RegisterSkinGroups()
        {
            UIManagerClass uiManager = UIManagerClass.UIManager;

            uiManager.Skin.RegisterSkinGroup("MainScreenAlignmentEditScreenBackgroundColor", SkinSettings.FactoryName.ScreenBackgroundColor);
            uiManager.Skin.RegisterSkinGroup("MainScreenAlignmentEditScreenNormalLabelFont", SkinSettings.FactoryName.StandardFont);
            uiManager.Skin.RegisterSkinGroup("MainScreenAlignmentEditScreenGrayFont", SkinSettings.FactoryName.ReadOnlyFont);
            uiManager.Skin.RegisterSkinGroup("MainScreenAlignmentEditScreenButton", SkinSettings.FactoryName.StandardButton);

            uiManager.Skin.RegisterSkinGroup("MainScreenAlignmentEditScreenPanelBackgroundColor", SkinSettings.FactoryName.PanelBackgroundColor);
            uiManager.Skin.RegisterSkinGroup("MainScreenAlignmentEditScreenPanelHeaderColor", SkinSettings.FactoryName.PanelHeaderColor);
            uiManager.Skin.RegisterSkinGroup("MainScreenAlignmentEditScreenPanelPanelHeaderLabel", SkinSettings.FactoryName.PanelHeaderFont);
            uiManager.Skin.RegisterSkinGroup("MainScreenAlignmentEditLabelLarge", SkinSettings.FactoryName.GoldBoldFont);
        }
Пример #8
0
        public static void RegisterSkinGroups()
        {
            UIManagerClass uiManager = UIManagerClass.UIManager;

            uiManager.Skin.RegisterSkinGroup("MainScreenSkillEditScreenBackgroundColor", SkinSettings.FactoryName.ScreenBackgroundColor);
            uiManager.Skin.RegisterSkinGroup("MainScreenSkillEditScreenPanelBackgroundColor", SkinSettings.FactoryName.PanelBackgroundColor);
            uiManager.Skin.RegisterSkinGroup("MainScreenSkillEditScreenPanelHeaderColor", SkinSettings.FactoryName.PanelHeaderColor);
            uiManager.Skin.RegisterSkinGroup("MainScreenSkillEditScreenLabel", SkinSettings.FactoryName.StandardLabel);
            uiManager.Skin.RegisterSkinGroup("MainScreenSkillEditPanelSummary", SkinSettings.FactoryName.StandardBoldFont);
            uiManager.Skin.RegisterSkinGroup("MainScreenSkillEditScreenPanelHeaderLabel", SkinSettings.FactoryName.PanelHeaderFont);
            uiManager.Skin.RegisterSkinGroup("MainScreenSkillEditScreenSkillLabelLarge", SkinSettings.FactoryName.GoldBoldFont);
            uiManager.Skin.RegisterSkinGroup("MainScreenSkillEditScreenSkillLabelSmall", SkinSettings.FactoryName.TinyFont);
            uiManager.Skin.RegisterSkinGroup("MainScreenSkillEditScreenSkillButton", SkinSettings.FactoryName.PanelHeaderButton);
            uiManager.Skin.RegisterSkinGroup("MainScreenSkillEditScreenSkillButtonScreen", SkinSettings.FactoryName.StandardButton);
        }
        private void OnNewTreeButtonClick(object sender, EventArgs e)
        {
            UIManagerClass uiManager = UIManagerClass.UIManager;

            if (DataHasChangedWarning() == false)
            {
                return;
            }
            AllowChangeEvents = false;
            NewRecord         = true;
//			NewTreeButton.BackColor = uiManager.Skin.PanelHeaderColor;
            PopulateFields("_New Enhancement Tree_");
            TreeNameTextBox.Focus();
            AllowChangeEvents = true;
        }
Пример #10
0
        /// <summary>
        /// Will remove some un-necessary tags that the HTMLEditor placed that isn't needed in our database
        /// This should be called before sending the description to the model for database manipulation.
        /// </summary>
        /// <param name="htmldescription"></param>
        /// <returns></returns>
        public static string RemoveHTMLFromDescription(string htmldescription)
        {
            UIManagerClass uiManager      = UIManagerClass.UIManager;
            string         newDescription = "";
            string         headerToRemove;
            string         footerToRemove;

            newDescription = htmldescription;

            //headerToRemove = "<P><FONT style=\"BACKGROUND-COLOR: " + ColorTranslator.ToHtml(uiManager.Skin.BackgroundColor).ToLower() + "\">";
            footerToRemove = "</FONT></P>";

//            newDescription = newDescription.Replace(headerToRemove, "");
            newDescription = newDescription.Replace(footerToRemove, "");

            return(newDescription);
        }
        /// <summary>
        /// Creates the Skin Group associations with factory settings
        /// </summary>
        public static void RegisterSkinGroups()
        {
            UIManagerClass uiManager = UIManagerClass.UIManager;

            uiManager.Skin.RegisterSkinGroup("MainScreenAbilityPanelBackgroundColor", SkinSettings.FactoryName.PanelBackgroundColor);
            uiManager.Skin.RegisterSkinGroup("MainScreenAbilityPanelHeaderColor", SkinSettings.FactoryName.PanelHeaderColor);
            uiManager.Skin.RegisterSkinGroup("MainScreenAbilityPanelHeaderButton", SkinSettings.FactoryName.PanelHeaderButton);
            uiManager.Skin.RegisterSkinGroup("MainScreenAbilityPanelColumnLabelFont", SkinSettings.FactoryName.SmallFont);
            uiManager.Skin.RegisterSkinGroup("MainScreenAbilityPanelColumnNumbersFont", SkinSettings.FactoryName.StandardFont);
            uiManager.Skin.RegisterSkinGroup("MainScreenAbilityPanelAbilityLabelSmall", SkinSettings.FactoryName.TinyFont);
            uiManager.Skin.RegisterSkinGroup("MainScreenAbilityPanelAbilityLabelLarge", SkinSettings.FactoryName.GoldBoldFont);
            uiManager.Skin.RegisterSkinGroup("MainScreenAbilityPanelSecondaryLabel", SkinSettings.FactoryName.ReadOnlyFont);
            uiManager.Skin.RegisterSkinGroup("MainScreenAbilityPanelHeaderLabel", SkinSettings.FactoryName.PanelHeaderFont);
            uiManager.Skin.RegisterSkinGroup("MainScreenAbilityPanelTotalsLabel", SkinSettings.FactoryName.StandardBoldFont);

            AbilityEditPanel.RegisterSkinGroups();
        }
Пример #12
0
        public void ApplySkin()
        {
            UIManagerClass uiManager = UIManagerClass.UIManager;
            SkinStyleClass style;
            string         controlName;
            Label          labelBox;

            //Screen Background
            style          = uiManager.Skin.GetSkinStyle("MainScreenClassEditScreenBackgroundColor");
            this.BackColor = style.Color1;

            //Level Labels
            style = uiManager.Skin.GetSkinStyle("MainScreenClassEditScreenLabel");
            for (int i = 1; i < 21; i++)
            {
                controlName        = "labelLevel" + i;
                labelBox           = (Label)this.Controls[controlName];
                labelBox.BackColor = style.Color2;
                labelBox.ForeColor = style.Color1;
                labelBox.Font      = style.Font;
            }

            //Chosen Class Labels
            for (int i = 1; i < 4; i++)
            {
                controlName        = "labelChosenClass" + i;
                labelBox           = (Label)this.Controls[controlName];
                labelBox.BackColor = style.Color2;
                labelBox.ForeColor = style.Color1;
                labelBox.Font      = style.Font;
            }

            labelClassSplit.BackColor          = style.Color2;
            labelClassSplit.ForeColor          = style.Color1;
            labelClassSplit.Font               = style.Font;
            labelClassSplitBreakdown.BackColor = style.Color2;
            labelClassSplitBreakdown.ForeColor = style.Color1;
            labelClassSplitBreakdown.Font      = style.Font;
            labelSelectClasses.BackColor       = style.Color2;
            labelSelectClasses.ForeColor       = style.Color1;
            labelSelectClasses.Font            = style.Font;
            labelSelectRace.BackColor          = style.Color2;
            labelSelectRace.ForeColor          = style.Color1;
            labelSelectRace.Font               = style.Font;
        }
Пример #13
0
        public void ApplySkin()
        {
            //TODO: We need better names for these labels....
            UIManagerClass uiManager = UIManagerClass.UIManager;
            SkinStyleClass style;

            //background
            style          = uiManager.Skin.GetSkinStyle("MainScreenAdditionalStatPanelBackgroundColor");
            this.BackColor = style.Color1;

            //header
            style            = uiManager.Skin.GetSkinStyle("MainScreenAbilityPanelHeaderColor");
            panel1.BackColor = style.Color1;
            style            = uiManager.Skin.GetSkinStyle("MainScreenAbilityPanelHeaderLabel");
            label7.ForeColor = style.Color1;
            label7.BackColor = style.Color2;
            label7.Font      = style.Font;
        }
Пример #14
0
        /// <summary>
        /// Wrap the description with some html tags to be used in the HTMLEditor control
        /// </summary>
        /// <param name="description"></param>
        /// <returns></returns>
        public static string BuildHTMLDescripton(string description)
        {
            UIManagerClass uiManager       = UIManagerClass.UIManager;
            string         fullDescription = "";

            //Add the html and body tags
            fullDescription = "<html><style>body {background-color: ";
//			fullDescription += ColorTranslator.ToHtml(uiManager.Skin.BackgroundColor);
            fullDescription += "; color: ";
//			fullDescription += ColorTranslator.ToHtml(uiManager.Skin.StandardFontColor);
            fullDescription += ";}</style><body contentEditable='true'>";
            //now lets add in our actual description
            fullDescription += description;
            //now to add the closing body and html tags
            fullDescription += "</body></html>";

            return(fullDescription);
        }
Пример #15
0
        public static void RegisterSkinGroups()
        {
            UIManagerClass uiManager = UIManagerClass.UIManager;

            uiManager.Skin.RegisterSkinGroup("MainScreenBackgroundColor", SkinSettings.FactoryName.ScreenBackgroundColor);
            uiManager.Skin.RegisterSkinGroup("MainScreenNormalLabelFont", SkinSettings.FactoryName.StandardFont);
            uiManager.Skin.RegisterSkinGroup("MainScreenGrayFont", SkinSettings.FactoryName.ReadOnlyFont);
            uiManager.Skin.RegisterSkinGroup("MainScreenLevelButton", SkinSettings.FactoryName.StandardButton);
            uiManager.Skin.RegisterSkinGroup("MainScreenLevelButtonSelected", SkinSettings.FactoryName.StandardButtonSelected);

            MainScreenAbilitiesPanel.RegisterSkinGroups();
            MainScreenAdditionStatsPanel.RegisterSkinGroups();
            MainScreenFeatsPanel.RegisterSkinGroups();

            ClassEditScreen.RegisterSkinGroups();
            FeatsEditScreen.RegisterSkinGroups();
            SkillEditScreen.RegisterSkinGroups();
            SkillTomePanel.RegisterSkinGroups();
            AlignmentEditForm.RegisterSkinGroups();
        }
        public void ApplySkin()
        {
            UIManagerClass uiManager = UIManagerClass.UIManager;

/*			//form
 *          this.BackColor = uiManager.Skin.BackgroundColor;
 *          //TreeListBox
 *          this.EnhancementTreeListBoxLabel.ForeColor = uiManager.Skin.PanelHeaderFontColor;
 *          this.EnhancementTreeListBoxLabel.BackColor = uiManager.Skin.PanelHeaderColor;
 *          this.EnhancementTreeListBox.BackColor = uiManager.Skin.BackgroundColor;
 *          this.EnhancementTreeListBox.ForeColor = uiManager.Skin.StandardFontColor;
 *          //TreePanel
 *          this.EnhancementTreePanel.BackColor = uiManager.Skin.BackgroundColor;
 *          this.EnhancementTreeLabel.BackColor = uiManager.Skin.PanelHeaderColor;
 *          this.EnhancementTreeLabel.ForeColor = uiManager.Skin.PanelHeaderFontColor;
 *          this.TreeBackgroundLabel.ForeColor = uiManager.Skin.StandardFontColor;
 *          this.TreeNameLabel.ForeColor = uiManager.Skin.StandardFontColor;
 *          this.TreeNameTextBox.BackColor = uiManager.Skin.ControlBackgroundColor;
 *          this.TreeNameTextBox.ForeColor = uiManager.Skin.ControlForeColor;
 *          this.TreeBackgoundTextBox.BackColor = uiManager.Skin.ControlBackgroundColor;
 *          this.TreeBackgoundTextBox.ForeColor = uiManager.Skin.ControlForeColor;
 */
        }
Пример #17
0
        static void Main(string[] args)
        {
            DataManagerClass dataManager = DataManagerClass.DataManager;
            UIManagerClass   uiManager   = UIManagerClass.UIManager;
            RegistryKey      installedVersions;

            string[] versionNames;
            double   framework;

            //do a check on the installed version of .NET (if <4.0 display an error)
            installedVersions = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\NET Framework Setup\NDP");
            versionNames      = installedVersions.GetSubKeyNames();
            //version names start with 'v', eg, 'v3.5' which needs to be trimmed off before conversion
            framework = Convert.ToDouble(versionNames[versionNames.Length - 1].Remove(0, 1), CultureInfo.InvariantCulture);
            if (framework < 4.0)
            {
                MessageBox.Show("The DDO Character Planner requires .NET Framework 4.0 or higher. Please visit http://www.microsoft.com/en-us/download/details.aspx?id=17851 to obtain the required .NET Version", "Critical Error", MessageBoxButtons.OK);
                return;
            }

            //Temporary call to fix Feat Descriptions, should comment out once done
            //UtilityClass.FixFeatDescriptions();

            //skin group registrations
            uiManager.RegisterSkinGroups();

            //grab any data we need for display on the main screen
            dataManager.InitializeDataDictionaries();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //create the skin factory settings
            uiManager.CreateSkinFactorySettings();
            //Create the main screen
            uiManager.InitializeMainScreen();
            Application.Run(uiManager.MainScreen);
        }
Пример #18
0
        public void ApplySkin()
        {
            SkinStyleClass style;
            SkinStyleClass style1;
            RadioButton    controlButton;

            UIManagerClass uiManager = UIManagerClass.UIManager;

            style          = uiManager.Skin.GetSkinStyle("MainScreenAlignmentEditScreenBackgroundColor");
            this.BackColor = style.Color1;

            style = uiManager.Skin.GetSkinStyle("MainScreenAlignmentEditScreenPanelBackgroundColor");
            AlignmentPanel.BackColor = style.Color1;


            style            = uiManager.Skin.GetSkinStyle("MainScreenAlignmentEditScreenPanelHeaderColor");
            Header.BackColor = style.Color1;

            style                 = uiManager.Skin.GetSkinStyle("MainScreenAlignmentEditScreenPanelPanelHeaderLabel");
            HeaderLabel.Font      = style.Font;
            HeaderLabel.ForeColor = style.Color1;
            HeaderLabel.BackColor = style.Color2;

            style = uiManager.Skin.GetSkinStyle("MainScreenAlignmentEditScreenButton");

            //apply style to the Radio buttons
            style  = uiManager.Skin.GetSkinStyle("MainScreenAlignmentEditLabelLarge");
            style1 = uiManager.Skin.GetSkinStyle("MainScreenAlignmentEditScreenPanelBackgroundColor");
            for (int i = 0; i < AlignmentPanelEntry.AlignmentControl.Count(); i++)
            {
                controlButton           = (RadioButton)AlignmentPanelEntry.AlignmentControl[i];
                controlButton.BackColor = style1.Color1;
                controlButton.Font      = style.Font;
                controlButton.ForeColor = style.Color1;
            }
        }
        /// <summary>
        /// Applies the Skin Groups to individual controls
        /// </summary>
        public void ApplySkin()
        {
            //TODO: We need better names for these labels....
            UIManagerClass uiManager = UIManagerClass.UIManager;
            SkinStyleClass style;

            //background
            style          = uiManager.Skin.GetSkinStyle("MainScreenAbilityPanelBackgroundColor");
            this.BackColor = style.Color1;

            //column labels
            style        = uiManager.Skin.GetSkinStyle("MainScreenAbilityPanelColumnLabelFont");
            label14.Font = style.Font;
            label15.Font = style.Font;
            label16.Font = style.Font;
            label17.Font = style.Font;
            label18.Font = style.Font;
            label19.Font = style.Font;
            label20.Font = style.Font;
            label21.Font = style.Font;
            label22.Font = style.Font;

            //ability labels (small)
            style             = uiManager.Skin.GetSkinStyle("MainScreenAbilityPanelAbilityLabelSmall");
            label8.ForeColor  = style.Color1;
            label9.ForeColor  = style.Color1;
            label10.ForeColor = style.Color1;
            label11.ForeColor = style.Color1;
            label12.ForeColor = style.Color1;
            label13.ForeColor = style.Color1;
            label8.BackColor  = style.Color2;
            label9.BackColor  = style.Color2;
            label10.BackColor = style.Color2;
            label11.BackColor = style.Color2;
            label12.BackColor = style.Color2;
            label13.BackColor = style.Color2;
            label8.Font       = style.Font;
            label9.Font       = style.Font;
            label10.Font      = style.Font;
            label11.Font      = style.Font;
            label12.Font      = style.Font;
            label13.Font      = style.Font;

            //ability labels (large)
            style            = uiManager.Skin.GetSkinStyle("MainScreenAbilityPanelAbilityLabelLarge");
            label1.ForeColor = style.Color1;
            label2.ForeColor = style.Color1;
            label3.ForeColor = style.Color1;
            label4.ForeColor = style.Color1;
            label5.ForeColor = style.Color1;
            label6.ForeColor = style.Color1;
            label1.BackColor = style.Color2;
            label2.BackColor = style.Color2;
            label3.BackColor = style.Color2;
            label4.BackColor = style.Color2;
            label5.BackColor = style.Color2;
            label6.BackColor = style.Color2;
            label1.Font      = style.Font;
            label2.Font      = style.Font;
            label3.Font      = style.Font;
            label4.Font      = style.Font;
            label5.Font      = style.Font;
            label6.Font      = style.Font;

            //the "+" labels
            style              = uiManager.Skin.GetSkinStyle("MainScreenAbilityPanelSecondaryLabel");
            label77.ForeColor  = style.Color1;
            label78.ForeColor  = style.Color1;
            label79.ForeColor  = style.Color1;
            label80.ForeColor  = style.Color1;
            label81.ForeColor  = style.Color1;
            label82.ForeColor  = style.Color1;
            label83.ForeColor  = style.Color1;
            label84.ForeColor  = style.Color1;
            label85.ForeColor  = style.Color1;
            label86.ForeColor  = style.Color1;
            label87.ForeColor  = style.Color1;
            label88.ForeColor  = style.Color1;
            label89.ForeColor  = style.Color1;
            label90.ForeColor  = style.Color1;
            label91.ForeColor  = style.Color1;
            label92.ForeColor  = style.Color1;
            label93.ForeColor  = style.Color1;
            label94.ForeColor  = style.Color1;
            label95.ForeColor  = style.Color1;
            label96.ForeColor  = style.Color1;
            label97.ForeColor  = style.Color1;
            label98.ForeColor  = style.Color1;
            label99.ForeColor  = style.Color1;
            label100.ForeColor = style.Color1;
            label101.ForeColor = style.Color1;
            label102.ForeColor = style.Color1;
            label103.ForeColor = style.Color1;
            label104.ForeColor = style.Color1;
            label105.ForeColor = style.Color1;
            label106.ForeColor = style.Color1;
            label107.ForeColor = style.Color1;
            label108.ForeColor = style.Color1;
            label109.ForeColor = style.Color1;
            label110.ForeColor = style.Color1;
            label111.ForeColor = style.Color1;
            label112.ForeColor = style.Color1;
            label77.BackColor  = style.Color2;
            label78.BackColor  = style.Color2;
            label79.BackColor  = style.Color2;
            label80.BackColor  = style.Color2;
            label81.BackColor  = style.Color2;
            label82.BackColor  = style.Color2;
            label83.BackColor  = style.Color2;
            label84.BackColor  = style.Color2;
            label85.BackColor  = style.Color2;
            label86.BackColor  = style.Color2;
            label87.BackColor  = style.Color2;
            label88.BackColor  = style.Color2;
            label89.BackColor  = style.Color2;
            label90.BackColor  = style.Color2;
            label91.BackColor  = style.Color2;
            label92.BackColor  = style.Color2;
            label93.BackColor  = style.Color2;
            label94.BackColor  = style.Color2;
            label95.BackColor  = style.Color2;
            label96.BackColor  = style.Color2;
            label97.BackColor  = style.Color2;
            label98.BackColor  = style.Color2;
            label99.BackColor  = style.Color2;
            label100.BackColor = style.Color2;
            label101.BackColor = style.Color2;
            label102.BackColor = style.Color2;
            label103.BackColor = style.Color2;
            label104.BackColor = style.Color2;
            label105.BackColor = style.Color2;
            label106.BackColor = style.Color2;
            label107.BackColor = style.Color2;
            label108.BackColor = style.Color2;
            label109.BackColor = style.Color2;
            label110.BackColor = style.Color2;
            label111.BackColor = style.Color2;
            label112.BackColor = style.Color2;
            label77.Font       = style.Font;
            label78.Font       = style.Font;
            label79.Font       = style.Font;
            label80.Font       = style.Font;
            label81.Font       = style.Font;
            label82.Font       = style.Font;
            label83.Font       = style.Font;
            label84.Font       = style.Font;
            label85.Font       = style.Font;
            label86.Font       = style.Font;
            label87.Font       = style.Font;
            label88.Font       = style.Font;
            label89.Font       = style.Font;
            label90.Font       = style.Font;
            label91.Font       = style.Font;
            label92.Font       = style.Font;
            label93.Font       = style.Font;
            label94.Font       = style.Font;
            label95.Font       = style.Font;
            label96.Font       = style.Font;
            label97.Font       = style.Font;
            label98.Font       = style.Font;
            label99.Font       = style.Font;
            label100.Font      = style.Font;
            label101.Font      = style.Font;
            label102.Font      = style.Font;
            label103.Font      = style.Font;
            label104.Font      = style.Font;
            label105.Font      = style.Font;
            label106.Font      = style.Font;
            label107.Font      = style.Font;
            label108.Font      = style.Font;
            label109.Font      = style.Font;
            label110.Font      = style.Font;
            label111.Font      = style.Font;
            label112.Font      = style.Font;
            //the "=" labels
            label119.ForeColor = style.Color1;
            label120.ForeColor = style.Color1;
            label121.ForeColor = style.Color1;
            label122.ForeColor = style.Color1;
            label123.ForeColor = style.Color1;
            label124.ForeColor = style.Color1;
            label119.BackColor = style.Color2;
            label120.BackColor = style.Color2;
            label121.BackColor = style.Color2;
            label122.BackColor = style.Color2;
            label123.BackColor = style.Color2;
            label124.BackColor = style.Color2;
            label119.Font      = style.Font;
            label120.Font      = style.Font;
            label121.Font      = style.Font;
            label122.Font      = style.Font;
            label123.Font      = style.Font;
            label124.Font      = style.Font;

            //header
            style            = uiManager.Skin.GetSkinStyle("MainScreenAbilityPanelHeaderColor");
            panel1.BackColor = style.Color1;
            style            = uiManager.Skin.GetSkinStyle("MainScreenAbilityPanelHeaderLabel");
            label7.ForeColor = style.Color1;
            label7.BackColor = style.Color2;
            label7.Font      = style.Font;
            style            = uiManager.Skin.GetSkinStyle("MainScreenAbilityPanelHeaderButton");
            AbilityPanelEditButton.ForeColor = style.Color1;
            AbilityPanelEditButton.BackColor = style.Color2;
            AbilityPanelEditButton.Font      = style.Font;

            //totals labels
            style = uiManager.Skin.GetSkinStyle("MainScreenAbilityPanelTotalsLabel");
            TotalChaLabel.ForeColor = style.Color1;
            TotalWisLabel.ForeColor = style.Color1;
            TotalIntLabel.ForeColor = style.Color1;
            TotalConLabel.ForeColor = style.Color1;
            TotalDexLabel.ForeColor = style.Color1;
            TotalStrLabel.ForeColor = style.Color1;
            TotalChaLabel.BackColor = style.Color2;
            TotalWisLabel.BackColor = style.Color2;
            TotalIntLabel.BackColor = style.Color2;
            TotalConLabel.BackColor = style.Color2;
            TotalDexLabel.BackColor = style.Color2;
            TotalStrLabel.BackColor = style.Color2;
            TotalChaLabel.Font      = style.Font;
            TotalWisLabel.Font      = style.Font;
            TotalIntLabel.Font      = style.Font;
            TotalConLabel.Font      = style.Font;
            TotalDexLabel.Font      = style.Font;
            TotalStrLabel.Font      = style.Font;

            //the number labels
            style = uiManager.Skin.GetSkinStyle("MainScreenAbilityPanelColumnNumbersFont");
            BaseStrLabel.ForeColor  = style.Color1;
            BaseDexLabel.ForeColor  = style.Color1;
            BaseConLabel.ForeColor  = style.Color1;
            BaseIntLabel.ForeColor  = style.Color1;
            BaseWisLabel.ForeColor  = style.Color1;
            BaseChaLabel.ForeColor  = style.Color1;
            LevelStrLabel.ForeColor = style.Color1;
            LevelDexLabel.ForeColor = style.Color1;
            LevelConLabel.ForeColor = style.Color1;
            LevelIntLabel.ForeColor = style.Color1;
            LevelWisLabel.ForeColor = style.Color1;
            LevelChaLabel.ForeColor = style.Color1;
            TomeStrLabel.ForeColor  = style.Color1;
            TomeDexLabel.ForeColor  = style.Color1;
            TomeConLabel.ForeColor  = style.Color1;
            TomeIntLabel.ForeColor  = style.Color1;
            TomeWisLabel.ForeColor  = style.Color1;
            TomeChaLabel.ForeColor  = style.Color1;
            label41.ForeColor       = style.Color1;
            label42.ForeColor       = style.Color1;
            label43.ForeColor       = style.Color1;
            label44.ForeColor       = style.Color1;
            label45.ForeColor       = style.Color1;
            label46.ForeColor       = style.Color1;
            label47.ForeColor       = style.Color1;
            label48.ForeColor       = style.Color1;
            label49.ForeColor       = style.Color1;
            label50.ForeColor       = style.Color1;
            label51.ForeColor       = style.Color1;
            label52.ForeColor       = style.Color1;
            label53.ForeColor       = style.Color1;
            label54.ForeColor       = style.Color1;
            label55.ForeColor       = style.Color1;
            label56.ForeColor       = style.Color1;
            label57.ForeColor       = style.Color1;
            label58.ForeColor       = style.Color1;
            label59.ForeColor       = style.Color1;
            label60.ForeColor       = style.Color1;
            label61.ForeColor       = style.Color1;
            label62.ForeColor       = style.Color1;
            label63.ForeColor       = style.Color1;
            label64.ForeColor       = style.Color1;
            ModChaLabel.ForeColor   = style.Color1;
            ModWisLabel.ForeColor   = style.Color1;
            ModIntLabel.ForeColor   = style.Color1;
            ModConLabel.ForeColor   = style.Color1;
            ModDexLabel.ForeColor   = style.Color1;
            ModStrLabel.ForeColor   = style.Color1;
            BaseStrLabel.BackColor  = style.Color2;
            BaseDexLabel.BackColor  = style.Color2;
            BaseConLabel.BackColor  = style.Color2;
            BaseIntLabel.BackColor  = style.Color2;
            BaseWisLabel.BackColor  = style.Color2;
            BaseChaLabel.BackColor  = style.Color2;
            LevelStrLabel.BackColor = style.Color2;
            LevelDexLabel.BackColor = style.Color2;
            LevelConLabel.BackColor = style.Color2;
            LevelIntLabel.BackColor = style.Color2;
            LevelWisLabel.BackColor = style.Color2;
            LevelChaLabel.BackColor = style.Color2;
            TomeStrLabel.BackColor  = style.Color2;
            TomeDexLabel.BackColor  = style.Color2;
            TomeConLabel.BackColor  = style.Color2;
            TomeIntLabel.BackColor  = style.Color2;
            TomeWisLabel.BackColor  = style.Color2;
            TomeChaLabel.BackColor  = style.Color2;
            label41.BackColor       = style.Color2;
            label42.BackColor       = style.Color2;
            label43.BackColor       = style.Color2;
            label44.BackColor       = style.Color2;
            label45.BackColor       = style.Color2;
            label46.BackColor       = style.Color2;
            label47.BackColor       = style.Color2;
            label48.BackColor       = style.Color2;
            label49.BackColor       = style.Color2;
            label50.BackColor       = style.Color2;
            label51.BackColor       = style.Color2;
            label52.BackColor       = style.Color2;
            label53.BackColor       = style.Color2;
            label54.BackColor       = style.Color2;
            label55.BackColor       = style.Color2;
            label56.BackColor       = style.Color2;
            label57.BackColor       = style.Color2;
            label58.BackColor       = style.Color2;
            label59.BackColor       = style.Color2;
            label60.BackColor       = style.Color2;
            label61.BackColor       = style.Color2;
            label62.BackColor       = style.Color2;
            label63.BackColor       = style.Color2;
            label64.BackColor       = style.Color2;
            ModChaLabel.BackColor   = style.Color2;
            ModWisLabel.BackColor   = style.Color2;
            ModIntLabel.BackColor   = style.Color2;
            ModConLabel.BackColor   = style.Color2;
            ModDexLabel.BackColor   = style.Color2;
            ModStrLabel.BackColor   = style.Color2;
            BaseStrLabel.Font       = style.Font;
            BaseDexLabel.Font       = style.Font;
            BaseConLabel.Font       = style.Font;
            BaseIntLabel.Font       = style.Font;
            BaseWisLabel.Font       = style.Font;
            BaseChaLabel.Font       = style.Font;
            LevelStrLabel.Font      = style.Font;
            LevelDexLabel.Font      = style.Font;
            LevelConLabel.Font      = style.Font;
            LevelIntLabel.Font      = style.Font;
            LevelWisLabel.Font      = style.Font;
            LevelChaLabel.Font      = style.Font;
            TomeStrLabel.Font       = style.Font;
            TomeDexLabel.Font       = style.Font;
            TomeConLabel.Font       = style.Font;
            TomeIntLabel.Font       = style.Font;
            TomeWisLabel.Font       = style.Font;
            TomeChaLabel.Font       = style.Font;
            label41.Font            = style.Font;
            label42.Font            = style.Font;
            label43.Font            = style.Font;
            label44.Font            = style.Font;
            label45.Font            = style.Font;
            label46.Font            = style.Font;
            label47.Font            = style.Font;
            label48.Font            = style.Font;
            label49.Font            = style.Font;
            label50.Font            = style.Font;
            label51.Font            = style.Font;
            label52.Font            = style.Font;
            label53.Font            = style.Font;
            label54.Font            = style.Font;
            label55.Font            = style.Font;
            label56.Font            = style.Font;
            label57.Font            = style.Font;
            label58.Font            = style.Font;
            label59.Font            = style.Font;
            label60.Font            = style.Font;
            label61.Font            = style.Font;
            label62.Font            = style.Font;
            label63.Font            = style.Font;
            label64.Font            = style.Font;
            ModChaLabel.Font        = style.Font;
            ModWisLabel.Font        = style.Font;
            ModIntLabel.Font        = style.Font;
            ModConLabel.Font        = style.Font;
            ModDexLabel.Font        = style.Font;
            ModStrLabel.Font        = style.Font;
        }
Пример #20
0
        public void ApplySkin()
        {
            UIManagerClass uiManager = UIManagerClass.UIManager;
            SkinStyleClass style;
            SkinStyleClass style1;

            //screen background
            style          = uiManager.Skin.GetSkinStyle("MainScreenSkillEditScreenBackgroundColor");
            this.BackColor = style.Color1;

            //panel backgrounds
            style = uiManager.Skin.GetSkinStyle("MainScreenSkillEditScreenPanelBackgroundColor");
            SkillPanel.BackColor    = style.Color1;
            SkillSubPanel.BackColor = style.Color1;
            AutoSetPanel.BackColor  = style.Color1;

            //Headers
            style = uiManager.Skin.GetSkinStyle("MainScreenSkillEditScreenPanelHeaderColor");
            SkillHeader.BackColor   = style.Color1;
            AutoSetHeader.BackColor = style.Color1;
            style = uiManager.Skin.GetSkinStyle("MainScreenSkillEditScreenPanelHeaderLabel");
            SkillPanelLabel.ForeColor = style.Color1;
            SkillPanelLabel.BackColor = style.Color2;
            SkillPanelLabel.Font      = style.Font;
            AutoSetLabel.ForeColor    = style.Color1;
            AutoSetLabel.BackColor    = style.Color2;
            AutoSetLabel.Font         = style.Font;


            //Labels
            style  = uiManager.Skin.GetSkinStyle("MainScreenSkillEditPanelSummary");
            style1 = uiManager.Skin.GetSkinStyle("MainScreenSkillEditScreenSkillLabelLarge");
            for (int i = 0; i < NumSkills; ++i)
            {
                SkillPanelEntry.SkillRank[i].ForeColor = style.Color1;
                SkillPanelEntry.SkillRank[i].BackColor = style.Color2;
                SkillPanelEntry.SkillRank[i].Font      = style.Font;

                SkillPanelEntry.SkillAbility[i].ForeColor = style.Color1;
                SkillPanelEntry.SkillAbility[i].BackColor = style.Color2;
                SkillPanelEntry.SkillAbility[i].Font      = style.Font;

                SkillPanelEntry.SkillLabel[i].ForeColor = style1.Color1;
                SkillPanelEntry.SkillLabel[i].BackColor = style1.Color2;
                SkillPanelEntry.SkillLabel[i].Font      = style1.Font;

                SkillPanelEntry.SkillTome[i].ForeColor = style.Color1;
                SkillPanelEntry.SkillTome[i].BackColor = style.Color2;
                SkillPanelEntry.SkillTome[i].Font      = style.Font;

                SkillPanelEntry.SkillTotal[i].ForeColor = style.Color1;
                SkillPanelEntry.SkillTotal[i].BackColor = style.Color2;
                SkillPanelEntry.SkillTotal[i].Font      = style.Font;

                SkillPanelEntry.SkillFeat[i].ForeColor = style.Color1;
                SkillPanelEntry.SkillFeat[i].BackColor = style.Color2;
                SkillPanelEntry.SkillFeat[i].Font      = style.Font;

                SkillAutoPanel.RestictLabel[i].ForeColor = style1.Color1;
                SkillAutoPanel.RestictLabel[i].BackColor = style1.Color2;
                SkillAutoPanel.RestictLabel[i].Font      = style1.Font;
            }
            for (int i = 0; i < NumLevel; ++i)
            {
                SkillSubPanelEntry.Level[i].ForeColor = style1.Color1;
                SkillSubPanelEntry.Level[i].BackColor = style1.Color2;
                SkillSubPanelEntry.Level[i].Font      = style1.Font;

                SkillSubPanelEntry.SkillRemaining[i].ForeColor = style.Color1;
                SkillSubPanelEntry.SkillRemaining[i].BackColor = style.Color2;
                SkillSubPanelEntry.SkillRemaining[i].Font      = style.Font;
            }


            style            = uiManager.Skin.GetSkinStyle("MainScreenSkillEditScreenLabel");
            label1.ForeColor = style.Color1;
            label1.BackColor = style.Color2;
            label1.Font      = style.Font;

            label2.ForeColor   = style.Color1;
            label2.BackColor   = style.Color2;
            label2.Font        = style.Font;
            label3.ForeColor   = style.Color1;
            label3.BackColor   = style.Color2;
            label4.Font        = style.Font;
            label4.ForeColor   = style.Color1;
            label4.BackColor   = style.Color2;
            label3.Font        = style.Font;
            Label5.ForeColor   = style.Color1;
            Label5.BackColor   = style.Color2;
            Label5.Font        = style.Font;
            Label6.ForeColor   = style.Color1;
            Label6.BackColor   = style.Color2;
            Label6.Font        = style.Font;
            label7.ForeColor   = style.Color1;
            label7.BackColor   = style.Color2;
            label7.Font        = style.Font;
            label8.ForeColor   = style.Color1;
            label8.BackColor   = style.Color2;
            label8.Font        = style.Font;
            label9.ForeColor   = style.Color1;
            label9.BackColor   = style.Color2;
            label9.Font        = style.Font;
            label10.ForeColor  = style.Color1;
            label10.BackColor  = style.Color2;
            label10.Font       = style.Font;
            label11.ForeColor  = style.Color1;
            label11.BackColor  = style.Color2;
            label11.Font       = style.Font;
            useclass.ForeColor = style.Color1;
            useclass.BackColor = style.Color2;
            useclass.Font      = style.Font;


            //headerbuttons
            style             = uiManager.Skin.GetSkinStyle("MainScreenSkillEditScreenSkillButton");
            update.BackColor  = style.Color2;
            update.Font       = style.Font;
            update.ForeColor  = style.Color1;
            button2.BackColor = style.Color2;
            button2.Font      = style.Font;
            button2.ForeColor = style.Color1;

            //Screen Button
            style             = uiManager.Skin.GetSkinStyle("MainScreenSkillEditScreenSkillButtonScreen");
            button1.BackColor = style.Color2;
            button1.Font      = style.Font;
            button1.ForeColor = style.Color1;

            style = uiManager.Skin.GetSkinStyle("MainScreenSkillEditScreenLabel");

            for (int i = 0; i < NumSkills; ++i)
            {
                for (int z = 0; z < NumLevel; ++z)
                {
                    SkillSubPanelEntry.SkillPoints[i, z].ForeColor = style.Color1;
                    SkillSubPanelEntry.SkillPoints[i, z].BackColor = style.Color2;
                    SkillSubPanelEntry.SkillPoints[i, z].Font      = style.Font;
                }
            }
        }
Пример #21
0
        //Skin Panel
        public void SkillTomePanelSkin()
        {
            UIManagerClass uiManager = UIManagerClass.UIManager;
            SkinStyleClass style;
            SkinStyleClass style1;

            //screen background
            style          = uiManager.Skin.GetSkinStyle("SkillTomePanelScreenBackGroundColor");
            this.BackColor = style.Color1;

            //panel backgrounds
            style = uiManager.Skin.GetSkinStyle("SkillTomePanelScreenPanelBackgroundColor");
            Skilltome.BackColor = style.Color1;

            //Headers
            style            = uiManager.Skin.GetSkinStyle("SkillTomePanelScreenPanelHeaderColor");
            panel2.BackColor = style.Color1;

            style            = uiManager.Skin.GetSkinStyle("SkillTomePanelScreenHeaderLabel");
            Header.ForeColor = style.Color1;
            Header.BackColor = style.Color2;
            Header.Font      = style.Font;

            //Labels
            style = uiManager.Skin.GetSkinStyle("SkillTomePanelScreenLabelLarge");

            label2.ForeColor = style.Color1;
            label2.BackColor = style.Color2;
            label2.Font      = style.Font;

            label3.ForeColor = style.Color1;
            label3.BackColor = style.Color2;
            label3.Font      = style.Font;

            label4.ForeColor = style.Color1;
            label4.BackColor = style.Color2;
            label4.Font      = style.Font;

            label5.ForeColor = style.Color1;
            label5.BackColor = style.Color2;
            label5.Font      = style.Font;

            label6.ForeColor = style.Color1;
            label6.BackColor = style.Color2;
            label6.Font      = style.Font;

            label7.ForeColor = style.Color1;
            label7.BackColor = style.Color2;
            label7.Font      = style.Font;

            label8.ForeColor = style.Color1;
            label8.BackColor = style.Color2;
            label8.Font      = style.Font;



            style1 = uiManager.Skin.GetSkinStyle("SkillTomePanelScreenSummary");
            for (int i = 0; i < NumSkills; ++i)
            {
                SkillTomePanelEntry.SkillLabel[i].ForeColor = style.Color1;
                SkillTomePanelEntry.SkillLabel[i].BackColor = style.Color2;
                SkillTomePanelEntry.SkillLabel[i].Font      = style.Font;

                SkillTomePanelEntry.PastLifeTome[i].ForeColor = style1.Color1;
                SkillTomePanelEntry.PastLifeTome[i].BackColor = style1.Color2;
                SkillTomePanelEntry.PastLifeTome[i].Font      = style1.Font;
            }
        }