void frmMMPowers_Load(object sender, EventArgs e) { BackColor = _myParent.BackColor; PopInfo.ForeColor = BackColor; ListLabelV2 llLeft = this.llLeft; UpdateLlColours(ref llLeft); this.llLeft = llLeft; ListLabelV2 llRight = this.llRight; UpdateLlColours(ref llRight); this.llRight = llRight; ibClose.IA = _myParent.Drawing.pImageAttributes; ibClose.ImageOff = _myParent.Drawing.bxPower[2].Bitmap; ibClose.ImageOn = _myParent.Drawing.bxPower[3].Bitmap; PopUp.PopupData iPopup = new PopUp.PopupData(); int index = iPopup.Add(); iPopup.Sections[index].Add("Click powers to enable/disable them.", PopUp.Colors.Title, 1f, FontStyle.Bold, 0); iPopup.Sections[index].Add("Powers in gray (or your custom 'power disabled' color) cannot be included in your stats.", PopUp.Colors.Text, 0.9f, FontStyle.Bold, 0); PopInfo.SetPopup(iPopup); //ChangedScrollFrameContents(); UpdatePetPowersCombo(PetPowers); UpdatePetsListCombo(); //FillLists(); }
static void UpdateLlColours(ref ListLabelV2 iList) { iList.UpdateTextColors(ListLabelV2.LLItemState.Enabled, MidsContext.Config.RtFont.ColorPowerAvailable); iList.UpdateTextColors(ListLabelV2.LLItemState.Disabled, MidsContext.Config.RtFont.ColorPowerDisabled); iList.UpdateTextColors(ListLabelV2.LLItemState.Selected, MidsContext.Config.RtFont.ColorPowerTaken); iList.UpdateTextColors(ListLabelV2.LLItemState.SelectedDisabled, MidsContext.Config.RtFont.ColorPowerTakenDark); iList.UpdateTextColors(ListLabelV2.LLItemState.Invalid, Color.FromArgb(byte.MaxValue, 0, 0)); iList.HoverColor = MidsContext.Config.RtFont.ColorPowerHighlight; iList.Font = new Font(iList.Font.FontFamily, MidsContext.Config.RtFont.PairedBase, FontStyle.Bold, GraphicsUnit.Point); }
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 (ImageButton button in buttonArray) { button.IA = myParent.Drawing.pImageAttributes; button.ImageOff = myParent.Drawing.bxPower[2].Bitmap; button.ImageOn = myParent.Drawing.bxPower[3].Bitmap; } BackColor = myParent.BackColor; PopInfo.ForeColor = BackColor; ListLabelV2 llLeft = LLLeft; UpdateLLColours(ref llLeft); LLLeft = llLeft; ListLabelV2 llRight = LLRight; UpdateLLColours(ref llRight); LLRight = llRight; ibClose.IA = myParent.Drawing.pImageAttributes; ibClose.ImageOff = myParent.Drawing.bxPower[2].Bitmap; ibClose.ImageOn = myParent.Drawing.bxPower[3].Bitmap; PopUp.PopupData iPopup = new PopUp.PopupData(); int index = iPopup.Add(); iPopup.Sections[index].Add("Click powers to enable/disable them.", PopUp.Colors.Title, 1f, FontStyle.Bold, 0); iPopup.Sections[index].Add("Powers in gray (or your custom 'power disabled' color) cannot be included in your stats.", PopUp.Colors.Text, 0.9f, FontStyle.Bold, 0); PopInfo.SetPopup(iPopup); ChangedScrollFrameContents(); FillLists(); }
void frmIncarnate_Load(object sender, EventArgs e) { this.buttonArray[0] = this.alphaBtn; this.buttonArray[1] = this.destinyBtn; this.buttonArray[2] = this.hybridBtn; this.buttonArray[3] = this.interfaceBtn; this.buttonArray[4] = this.judgementBtn; this.buttonArray[5] = this.loreBtn; this.buttonArray[6] = this.GenesisButton; this.buttonArray[7] = this.StanceButton; this.buttonArray[8] = this.VitaeButton; this.buttonArray[9] = this.OmegaButton; foreach (ImageButton button in this.buttonArray) { button.IA = this.myParent.Drawing.pImageAttributes; button.ImageOff = this.myParent.Drawing.bxPower[2].Bitmap; button.ImageOn = this.myParent.Drawing.bxPower[3].Bitmap; } this.BackColor = this.myParent.BackColor; this.PopInfo.ForeColor = this.BackColor; ListLabelV2 llRight = this.llLeft; this.UpdateLLColours(ref llRight); this.llLeft = llRight; llRight = this.llRight; this.UpdateLLColours(ref llRight); this.llRight = llRight; this.ibClose.IA = this.myParent.Drawing.pImageAttributes; this.ibClose.ImageOff = this.myParent.Drawing.bxPower[2].Bitmap; this.ibClose.ImageOn = this.myParent.Drawing.bxPower[3].Bitmap; PopUp.PopupData iPopup = default(PopUp.PopupData); int index = iPopup.Add(null); iPopup.Sections[index].Add("Click powers to enable/disable them.", PopUp.Colors.Title, 1f, FontStyle.Bold, 0); iPopup.Sections[index].Add("Powers in gray (or your custom 'power disabled' color) cannot be included in your stats.", PopUp.Colors.Text, 0.9f, FontStyle.Bold, 0); this.PopInfo.SetPopup(iPopup); this.ChangedScrollFrameContents(); this.FillLists(); }
void frmAccolade_Load(object sender, EventArgs e) { this.BackColor = this._myParent.BackColor; this.PopInfo.ForeColor = this.BackColor; ListLabelV2 llRight = this.llLeft; frmAccolade.UpdateLlColours(ref llRight); this.llLeft = llRight; llRight = this.llRight; frmAccolade.UpdateLlColours(ref llRight); this.llRight = llRight; this.ibClose.IA = this._myParent.Drawing.pImageAttributes; this.ibClose.ImageOff = this._myParent.Drawing.bxPower[2].Bitmap; this.ibClose.ImageOn = this._myParent.Drawing.bxPower[3].Bitmap; PopUp.PopupData iPopup = default(PopUp.PopupData); int index = iPopup.Add(null); iPopup.Sections[index].Add("Click powers to enable/disable them.", PopUp.Colors.Title, 1f, FontStyle.Bold, 0); iPopup.Sections[index].Add("Powers in gray (or your custom 'power disabled' color) cannot be included in your stats.", PopUp.Colors.Text, 0.9f, FontStyle.Bold, 0); this.PopInfo.SetPopup(iPopup); this.ChangedScrollFrameContents(); this.FillLists(); }