Esempio n. 1
0
        private void frmMMPowers_Load(object sender, EventArgs e)
        {
            BackColor         = _myParent.BackColor;
            PopInfo.ForeColor = BackColor;
            var llLeft = this.llLeft;

            UpdateLlColours(ref llLeft);
            this.llLeft = llLeft;
            var llRight = this.llRight;

            UpdateLlColours(ref llRight);
            this.llRight     = llRight;
            ibClose.IA       = _myParent.Drawing.pImageAttributes;
            ibClose.ImageOff = MidsContext.Character.IsHero()
                ? _myParent.Drawing.bxPower[2].Bitmap
                : _myParent.Drawing.bxPower[4].Bitmap;
            ibClose.ImageOn = MidsContext.Character.IsHero()
                ? _myParent.Drawing.bxPower[3].Bitmap
                : _myParent.Drawing.bxPower[5].Bitmap;
            var iPopup = new PopUp.PopupData();
            var index  = iPopup.Add();

            iPopup.Sections[index].Add("Click powers to enable/disable them.", PopUp.Colors.Title);
            iPopup.Sections[index]
            .Add("Powers in gray (or your custom 'power disabled' color) cannot be included in your stats.",
                 PopUp.Colors.Text, 0.9f);
            PopInfo.SetPopup(iPopup);
            //ChangedScrollFrameContents();
            UpdatePetPowersCombo(PetPowers);
            UpdatePetsListCombo();
            //FillLists();
        }
Esempio n. 2
0
 private static void UpdateLlColours(ref ListLabelV3 iList)
 {
     iList.UpdateTextColors(ListLabelV3.LLItemState.Enabled,
                            MidsContext.Config.RtFont.ColorPowerAvailable);
     iList.UpdateTextColors(ListLabelV3.LLItemState.Disabled,
                            MidsContext.Config.RtFont.ColorPowerDisabled);
     iList.UpdateTextColors(ListLabelV3.LLItemState.Invalid, Color.FromArgb(byte.MaxValue, 0, 0));
     iList.ScrollBarColor = MidsContext.Character.IsHero()
         ? MidsContext.Config.RtFont.ColorPowerTakenHero
         : MidsContext.Config.RtFont.ColorPowerTakenVillain;
     iList.ScrollButtonColor = MidsContext.Character.IsHero()
         ? MidsContext.Config.RtFont.ColorPowerTakenDarkHero
         : MidsContext.Config.RtFont.ColorPowerTakenDarkVillain;
     iList.UpdateTextColors(ListLabelV3.LLItemState.Selected,
                            MidsContext.Character.IsHero()
             ? MidsContext.Config.RtFont.ColorPowerTakenHero
             : MidsContext.Config.RtFont.ColorPowerTakenVillain);
     iList.UpdateTextColors(ListLabelV3.LLItemState.SelectedDisabled,
                            MidsContext.Character.IsHero()
             ? MidsContext.Config.RtFont.ColorPowerTakenDarkHero
             : MidsContext.Config.RtFont.ColorPowerTakenDarkVillain);
     iList.HoverColor = MidsContext.Character.IsHero()
         ? MidsContext.Config.RtFont.ColorPowerHighlightHero
         : MidsContext.Config.RtFont.ColorPowerHighlightVillain;
     iList.Font = new Font(iList.Font.FontFamily, MidsContext.Config.RtFont.PairedBase,
                           FontStyle.Bold, GraphicsUnit.Point);
 }
Esempio n. 3
0
        private void frmIncarnate_Load(object sender, EventArgs e)

        {
            buttonArray[0] = alphaBtn;
            buttonArray[1] = destinyBtn;
            buttonArray[2] = hybridBtn;
            buttonArray[3] = interfaceBtn;
            buttonArray[4] = judgementBtn;
            buttonArray[5] = loreBtn;
            buttonArray[6] = GenesisButton;
            buttonArray[7] = StanceButton;
            buttonArray[8] = VitaeButton;
            buttonArray[9] = OmegaButton;
            foreach (var button in buttonArray)
            {
                if (button.Enabled)
                {
                    button.IA       = myParent.Drawing.pImageAttributes;
                    button.ImageOff = MidsContext.Character.IsHero()
                        ? myParent.Drawing.bxPower[2].Bitmap
                        : myParent.Drawing.bxPower[4].Bitmap;
                    button.ImageOn = MidsContext.Character.IsHero()
                        ? myParent.Drawing.bxPower[3].Bitmap
                        : myParent.Drawing.bxPower[5].Bitmap;
                }
                else
                {
                    button.IA       = myParent.Drawing.pImageAttributes;
                    button.ImageOff = myParent.Drawing.bxPower[1].Bitmap;
                    button.ImageOn  = myParent.Drawing.bxPower[1].Bitmap;
                }
            }

            BackColor         = myParent.BackColor;
            PopInfo.ForeColor = BackColor;
            var llLeft = LLLeft;

            UpdateLLColours(ref llLeft);
            LLLeft = llLeft;
            var llRight = LLRight;

            UpdateLLColours(ref llRight);
            LLRight          = llRight;
            ibClose.IA       = myParent.Drawing.pImageAttributes;
            ibClose.ImageOff = MidsContext.Character.IsHero() ? myParent.Drawing.bxPower[2].Bitmap : myParent.Drawing.bxPower[4].Bitmap;
            ibClose.ImageOn  = MidsContext.Character.IsHero() ? myParent.Drawing.bxPower[3].Bitmap : myParent.Drawing.bxPower[5].Bitmap;
            var iPopup = new PopUp.PopupData();
            var index  = iPopup.Add();

            iPopup.Sections[index].Add("Click powers to enable/disable them.", PopUp.Colors.Title);
            iPopup.Sections[index]
            .Add("Powers in gray (or your custom 'power disabled' color) cannot be included in your stats.",
                 PopUp.Colors.Text, 0.9f);
            PopInfo.SetPopup(iPopup);
            ChangedScrollFrameContents();
            FillLists("Alpha");
        }