Question about Snip-its. menu

User Tag List

Results 1 to 3 of 3
  1. #1
    lordvane's Avatar Member
    Reputation
    1
    Join Date
    Aug 2019
    Posts
    20
    Thanks G/R
    9/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.

    Question about Snip-its.
  2. #2
    User5981's Avatar First Dev On The Internet
    Reputation
    379
    Join Date
    Aug 2017
    Posts
    765
    Thanks G/R
    30/358
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The customisation code applies when you start TurboHUD, you cannot change a parameter "on the fly".
    Supported version for all Resu plugins

  3. #3
    lordvane's Avatar Member
    Reputation
    1
    Join Date
    Aug 2019
    Posts
    20
    Thanks G/R
    9/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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 01:48 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search