public override void OnActivate()
        {
            const int x = 570;
            const int y = 275;

            IconFlash = new UIImage(FargowiltasSouls.UserInterfaceManager.SoulTogglerButton_MouseOverTexture);
            IconFlash.Left.Set(x - 2, 0);
            IconFlash.Top.Set(y - 2, 0);
            Append(IconFlash);

            Icon = new UIImage(FargowiltasSouls.UserInterfaceManager.SoulTogglerButtonTexture);
            Icon.Left.Set(x, 0); //26
            Icon.Top.Set(y, 0);  //300
            Append(Icon);

            IconHighlight = new UIHoverTextImageButton(FargowiltasSouls.UserInterfaceManager.SoulTogglerButton_MouseOverTexture, "Configure Accessory Effects");
            IconHighlight.Left.Set(-2, 0);
            IconHighlight.Top.Set(-2, 0);
            IconHighlight.SetVisibility(1f, 0);
            IconHighlight.OnClick += IconHighlight_OnClick;
            Icon.Append(IconHighlight);

            OncomingMutant = new UIOncomingMutant(FargowiltasSouls.UserInterfaceManager.OncomingMutantTexture.Value, FargowiltasSouls.UserInterfaceManager.OncomingMutantAuraTexture.Value, "Eternity Mode is enabled", "M*******t Mode is enabled");
            OncomingMutant.Left.Set(610, 0);
            OncomingMutant.Top.Set(250, 0);
            Append(OncomingMutant);

            base.OnActivate();
        }
Ejemplo n.º 2
0
        public override void OnActivate()
        {
            Icon = new UIImage(Fargowiltas.UserInterfaceManager.SoulTogglerButtonTexture);
            Icon.Left.Set(26, 0f);
            Icon.Top.Set(300, 0f);
            Append(Icon);

            IconHighlight = new UIHoverTextImageButton(Fargowiltas.UserInterfaceManager.SoulTogglerButton_MouseOverTexture, "Configure Accessory Effects");
            IconHighlight.Left.Set(-2, 0f);
            IconHighlight.Top.Set(-2, 0f);
            IconHighlight.SetVisibility(1f, 0f);
            IconHighlight.OnClick += IconHighlight_OnClick;
            Icon.Append(IconHighlight);

            base.OnActivate();
        }