Changing ShowTimeLeft to ShowColldown??? menu

User Tag List

Results 1 to 1 of 1
  1. #1
    Markus Schloffer's Avatar Member
    Reputation
    1
    Join Date
    Nov 2014
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Changing ShowTimeLeft to ShowColldown???

    Hey guys, my code looks like this, showing LOTD/Similacrum Time Remaining, but i wanna see the Colldown actually, how is that possible ?:d

    using Turbo.Plugins.Default; //important to add
    namespace Turbo.Plugins.User //change Default to User
    {
    public class NecroBuffListPlugin : BasePlugin, IInGameTopPainter
    {
    public BuffPainter BuffPainter { get; set; }
    public BuffRuleCalculator RuleCalculator { get; private set; }
    public float PositionOffset { get; set; } = 0.04f;

    public NecroBuffListPlugin() //NEWNAME
    {
    Enabled = true;
    }

    public override void Load(IController hud)
    {
    base.Load(hud);

    BuffPainter = new BuffPainter(Hud, true)
    {
    Opacity = 0.75f,
    ShowTimeLeftNumbers = false,
    ShowTooltips = false,
    TimeLeftFont = Hud.Render.CreateFont("tahoma", 7, 255, 255, 255, 255, false, false, 255, 0, 0, 0, true),
    StackFont = Hud.Render.CreateFont("tahoma", 6, 255, 255, 255, 255, false, false, 255, 0, 0, 0, true),
    };

    RuleCalculator = new BuffRuleCalculator(Hud)
    {
    SizeMultiplier = 0.75f
    };

    BuffPainter.ShowTimeLeftNumbers = true;

    // 465350 - Simulacrum
    RuleCalculator.Rules.Add(new BuffRule(465350)
    {
    IconIndex = 1,
    MinimumIconCount = 1,
    ShowTimeLeft = true,
    IconSizeMultiplier = 1.0f,
    });

    // 465839 - Land of the Dead
    RuleCalculator.Rules.Add(new BuffRule(465839)
    {
    IconIndex = 0,
    MinimumIconCount = 1,
    ShowTimeLeft = true,
    IconSizeMultiplier = 1.0f,
    });
    }

    public void PaintTopInGame(ClipState clipState)
    {
    if (Hud.Render.UiHidden)
    return;
    if (clipState != ClipState.BeforeClip)
    return;

    RuleCalculator.CalculatePaintInfo(Hud.Game.Me);
    if (RuleCalculator.PaintInfoList.Count == 0)
    return;

    //x position relative to the center of screen, buffbar centered around this point.
    var y = Hud.Window.Size.Height * 0.5f; //center of screen
    var x = Hud.Window.Size.Width * 0.0f; //center of screen
    BuffPainter.PaintHorizontalCenter(RuleCalculator.PaintInfoList, x, y, Hud.Window.Size.Width, RuleCalculator.StandardIconSize, RuleCalculator.StandardIconSpacing); BuffPainter.PaintHorizontalCenter(RuleCalculator.PaintInfoList, 0, y, Hud.Window.Size.Width, RuleCalculator.StandardIconSize, RuleCalculator.StandardIconSpacing);
    }
    }
    }

    cheers, and thanks for help in advance <3
    Last edited by Markus Schloffer; 03-17-2020 at 01:59 PM.

    Changing ShowTimeLeft to ShowColldown???

Similar Threads

  1. Model Change only to your own character
    By Lidnillek in forum WoW ME Questions and Requests
    Replies: 4
    Last Post: 04-12-2007, 09:51 PM
  2. Change [CODE] to display BBCode
    By lag in forum Suggestions
    Replies: 0
    Last Post: 04-08-2007, 09:17 PM
  3. A hint to changing character to creature textured
    By joshuawn in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 01-05-2007, 07:27 PM
  4. Changing cords to where a ZEp sends you?
    By Piratewolf in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 08-22-2006, 03:35 PM
  5. Find a way to change items to creatures
    By xlAnonym0uslx in forum World of Warcraft Model Editing
    Replies: 18
    Last Post: 08-18-2006, 01:09 PM
All times are GMT -5. The time now is 05:22 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search