Question about Snip-its. menu

These ads disappear when you log in.

Results 1 to 3 of 3
  1. #1
    lordvane's Avatar Member
    Reputation
    1
    Join Date
    Aug 2019
    Posts
    17
    Thanks G/R
    5/0
    Trade Feedback
    0 (0%)

    Question about Snip-its.

    Hello,

    I have the following code in my PluginEnablerOrDisablerPlugin.cs file

    PHP Code:
                // ground circle for rift and gr progression globes
                
    Hud.RunOnPlugin<GlobePlugin>(plugin => 
                {
                    
    plugin.RiftOrbDecorator.Add(new GroundCircleDecorator(Hud)
                    {
                        
    Brush Hud.Render.CreateBrush(2550003),
                        
    Radius 1.5f
                    
    });
                }); 
    So the code places a small black circle around rift orbs and greater rift orbs.

    My question is: Is it possible to put some kind of if statement to change the color of the circle depending if I am in a regular rift or a greater rift?

    I tried putting this but it gives me exceptions:

    PHP Code:
                // ground circle for rift and gr progression globes
                
    Hud.RunOnPlugin<GlobePlugin>(plugin => 
                {
                    
    plugin.RiftOrbDecorator.Add(new GroundCircleDecorator(Hud)
                    {
                        if (
    Hud.Game.Me.InGreaterRift)
                        {
                            
    Brush Hud.Render.CreateBrush(255122351743),
                            
    Radius 1.5f
                        
    }
                        else
                        {
                            
    Brush Hud.Render.CreateBrush(25525512203),
                            
    Radius 1.5f
                        
    }
                    });
                }); 
    So, would I have to create an actual plugin in order to run the if statement?

    Thanks.

  2. #2
    User5981's Avatar First Dev On The Internet CoreCoins User
    Reputation
    350
    Join Date
    Aug 2017
    Posts
    705
    Thanks G/R
    28/331
    Trade Feedback
    0 (0%)
    The customisation code applies when you start TurboHUD, you cannot change a parameter "on the fly".
    Supported version for all Resu plugins
    My plugins for Razorfish's RunStatsPlugin

  3. #3
    lordvane's Avatar Member
    Reputation
    1
    Join Date
    Aug 2019
    Posts
    17
    Thanks G/R
    5/0
    Trade Feedback
    0 (0%)
    Originally Posted by User5981 View Post
    The customisation code applies when you start TurboHUD, you cannot change a parameter "on the fly".
    Okay. So I guess that means I would have to make a full plugin. Sorry, I'm new to this. I didn't realize you can't place if statements in the customization.

    *Edit: Thank you.

    *2nd Edit: I now realize what you meant by that. lmao - only took a day xD
    Last edited by lordvane; 08-08-2019 at 10:51 PM. Reason: added a thank you

Similar Threads

  1. [Trading] QUESTION about is it a SCAM or its REALLY WORK
    By Dextyh in forum World of Warcraft Buy Sell Trade
    Replies: 1
    Last Post: 10-18-2018, 12:50 PM
  2. Getting back into model editing. Quick questions about how it currently works?
    By sloth85 in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 03-31-2012, 05:31 PM
  3. Anthrax's 1-70 task file - Question about selling it
    By pixie12 in forum Community Chat
    Replies: 1
    Last Post: 05-25-2008, 07:40 AM
  4. [Question] About Nogg-it
    By Magichick in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 02-11-2008, 06:10 PM
  5. A little easy question about auto-it
    By warsheep in forum Community Chat
    Replies: 0
    Last Post: 05-05-2007, 12:14 PM
All times are GMT -5. The time now is 04:28 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved. Digital Point modules: Sphinx-based search